refactor: change option id

pull/409/head^2
Seaton Jiang 2021-08-19 16:10:39 +08:00
parent 7e97f6195a
commit bf15cd960d
No known key found for this signature in database
GPG Key ID: 0E05070D261ACFEA
1 changed files with 28 additions and 22 deletions

View File

@ -1,30 +1,33 @@
<?php <?php
/** /**
* 主题页脚 * 主题页脚
* @author Seaton Jiang <seatonjiang@vtrois.com> * @author Seaton Jiang <seatonjiang@vtrois.com>
* @license MIT License * @license MIT License
* @version 2021.06.25 * @version 2021.08.19
*/ */
?> ?>
<div class="k-footer"> <div class="k-footer">
<div class="f-toolbox"> <div class="f-toolbox">
<div class="gotop <?php if ( kratos_option('s_wechat', false) ){ echo 'gotop-haswechat'; } ?>"> <div class="gotop <?php if (kratos_option('g_wechat', false)) {
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('s_wechat', false) ){ ?> <?php if (kratos_option('g_wechat', false)) { ?>
<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('s_wechat_url', ASSET_PATH . '/assets/img/wechat.png'); ?>"> <img src="<?php echo kratos_option('g_wechat_url', ASSET_PATH . '/assets/img/wechat.png'); ?>">
</div> </div>
</div> </div>
<?php } ?> <?php } ?>
<div class="search"> <div class="search">
<span class="kicon i-find"></span> <span class="kicon i-find"></span>
<form class="search-form" role="search" method="get" action="<?php echo home_url('/'); ?>"> <form class="search-form" role="search" method="get" action="<?php echo home_url('/'); ?>">
<input type="text" name="s" id="search-footer" placeholder="<?php _e('搜点什么呢?', 'kratos'); ?>" style="display:none"/> <input type="text" name="s" id="search-footer" placeholder="<?php _e('搜点什么呢?', 'kratos'); ?>" style="display:none" />
</form> </form>
</div> </div>
</div> </div>
@ -51,7 +54,9 @@
if (kratos_option('s_gov')) { if (kratos_option('s_gov')) {
echo '<p><a href="' . kratos_option('s_gov_link', '#') . '" target="_blank" rel="nofollow" ><i class="police-ico"></i>' . kratos_option('s_gov') . '</a></p>'; echo '<p><a href="' . kratos_option('s_gov_link', '#') . '" target="_blank" rel="nofollow" ><i class="police-ico"></i>' . kratos_option('s_gov') . '</a></p>';
} }
if (kratos_option('seo_statistical')) {echo '<p>' . kratos_option('seo_statistical') . '</p>';} if (kratos_option('seo_statistical')) {
echo '<p>' . kratos_option('seo_statistical') . '</p>';
}
?> ?>
</div> </div>
</div> </div>
@ -59,4 +64,5 @@
</div> </div>
<?php wp_footer(); ?> <?php wp_footer(); ?>
</body> </body>
</html> </html>