fix: wechat option

pull/409/head^2
Seaton Jiang 2021-08-20 08:33:20 +08:00
parent 4b4c9a5ead
commit 835e67fe0b
No known key found for this signature in database
GPG Key ID: 0E05070D261ACFEA
1 changed files with 3 additions and 3 deletions

View File

@ -9,18 +9,18 @@
?> ?>
<div class="k-footer"> <div class="k-footer">
<div class="f-toolbox"> <div class="f-toolbox">
<div class="gotop <?php if (kratos_option('g_wechat', false)) { <div class="gotop <?php if (kratos_option('g_wechat', false, 'g_wechat')) {
echo 'gotop-haswechat'; echo 'gotop-haswechat';
} ?>"> } ?>">
<div class="gotop-btn"> <div class="gotop-btn">
<span class="kicon i-up"></span> <span class="kicon i-up"></span>
</div> </div>
</div> </div>
<?php if (kratos_option('g_wechat', false)) { ?> <?php if (kratos_option('g_wechat', false, 'g_wechat')) { ?>
<div class="wechat"> <div class="wechat">
<span class="kicon i-wechat"></span> <span class="kicon i-wechat"></span>
<div class="wechat-pic"> <div class="wechat-pic">
<img src="<?php echo kratos_option('g_wechat_url', ASSET_PATH . '/assets/img/wechat.png'); ?>"> <img src="<?php echo kratos_option('g_wechat_url', ASSET_PATH . '/assets/img/wechat.png', 'g_wechat'); ?>">
</div> </div>
</div> </div>
<?php } ?> <?php } ?>