Skip to content

Commit 3224781

Browse files
authored
Merge pull request #8 from jeeinn2012/master
二维码不显示问题
2 parents 41788ce + fbd3c6d commit 3224781

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

footer.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@
8282
<?php endif; ?>
8383
<?php wp_footer(); ?>
8484
<!-- 自定义代码 -->
85-
<script>
86-
<?php echo io_get_option('foot_code');?>
87-
</script>
85+
<?php echo io_get_option('code_2_footer');?>
8886
<!-- end 自定义代码 -->
8987
</body>
90-
</html>
88+
</html>

single-sites.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757

5858
<p><?php echo get_post_meta(get_the_ID(), '_sites_sescribe', true) ?></p>
5959
<?php
60-
$qrurl="https://my.tv.sohu.com/user/a/wvideo/getQRCode.do?width=150&height=150&text=". $m_link_url;
60+
$m_post_link_url = $m_link_url ?: get_permalink($post->ID);
61+
$qrurl="https://my.tv.sohu.com/user/a/wvideo/getQRCode.do?width=150&height=150&text=". $m_post_link_url;
6162
$qrname = "手机查看";
6263
if(get_post_meta(get_the_ID(), '_wechat_qr', true)){
6364
$qrurl=get_post_meta(get_the_ID(), '_wechat_qr', true);
@@ -141,4 +142,4 @@
141142
</div>
142143

143144
</div>
144-
<?php get_footer(); ?>
145+
<?php get_footer(); ?>

templates/site-card.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>
22

33
<?php
4+
if($link_url=="") $link_url = get_permalink($post->ID);
45
$qrurl = $link_url;
56
$is_html = '';
67
if(get_post_meta($post->ID, '_wechat_qr', true)){
@@ -45,4 +46,4 @@
4546
<p class="overflowClip_2"><?php echo get_post_meta($post->ID, '_sites_sescribe', true) ?></p>
4647
</div>
4748
</div>
48-
</a>
49+
</a>

0 commit comments

Comments
 (0)