Skip to content

Commit

Permalink
主页二维码不显示
Browse files Browse the repository at this point in the history
fixed2
  • Loading branch information
jeeinn authored Dec 16, 2019
1 parent 72d05b9 commit f14a9e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions templates/site-card.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>

<?php
if($link_url=="") $link_url = get_permalink($post->ID);
$qrurl = $link_url;
$is_html = '';
if(get_post_meta($post->ID, '_wechat_qr', true)){
$qrurl="<img src='" . get_post_meta(get_the_ID(), '_wechat_qr', true) . "' width='128'>";
$is_html = 'true';
} else if($link_url=="") {
// $qrurl = '无二维码!';
$link_url = get_permalink($post->ID);
$qrurl = "<img src='https://my.tv.sohu.com/user/a/wvideo/getQRCode.do?width=128&height=128&text=" . $link_url . "' width='128'>";
$is_html = 'true';
$qrurl = '地址错误!';
} else if(io_get_option('is_qr')) {
$qrurl = "<img src='https://my.tv.sohu.com/user/a/wvideo/getQRCode.do?width=128&height=128&text=" . $link_url . "' width='128'>";
$is_html = 'true';
Expand Down

0 comments on commit f14a9e7

Please sign in to comment.