mirror of https://github.com/vtrois/kratos
refactor: change option id
parent
7e97f6195a
commit
bf15cd960d
48
footer.php
48
footer.php
|
@ -1,30 +1,33 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* 主题页脚
|
||||
* @author Seaton Jiang <seatonjiang@vtrois.com>
|
||||
* @license MIT License
|
||||
* @version 2021.06.25
|
||||
* @version 2021.08.19
|
||||
*/
|
||||
?>
|
||||
<div class="k-footer">
|
||||
<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">
|
||||
<span class="kicon i-up"></span>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ( kratos_option('s_wechat', false) ){ ?>
|
||||
<div class="wechat">
|
||||
<span class="kicon i-wechat"></span>
|
||||
<div class="wechat-pic">
|
||||
<img src="<?php echo kratos_option('s_wechat_url', ASSET_PATH . '/assets/img/wechat.png'); ?>">
|
||||
<?php if (kratos_option('g_wechat', false)) { ?>
|
||||
<div class="wechat">
|
||||
<span class="kicon i-wechat"></span>
|
||||
<div class="wechat-pic">
|
||||
<img src="<?php echo kratos_option('g_wechat_url', ASSET_PATH . '/assets/img/wechat.png'); ?>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="search">
|
||||
<span class="kicon i-find"></span>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -32,26 +35,28 @@
|
|||
<div class="row">
|
||||
<div class="col-12 text-center">
|
||||
<p class="social">
|
||||
<?php
|
||||
<?php
|
||||
$social = array('s_sina', 's_bilibili', 's_douban', 's_coding', 's_gitee', 's_twitter', 's_telegram', 's_linkedin', 's_youtube', 's_github', 's_stackflow', 's_email');
|
||||
foreach ($social as $social) {
|
||||
if (kratos_option($social)) {
|
||||
echo '<a target="_blank" rel="nofollow" href="' . kratos_option($social . '_url') . '"><i class="kicon i-' . str_replace("s_", "", $social) . '"></i></a>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</p>
|
||||
<?php
|
||||
$sitename = get_bloginfo('name');
|
||||
echo '<p>' . kratos_option('s_copyright', 'COPYRIGHT © 2021 ' . $sitename . '. ALL RIGHTS RESERVED.') . '</p>';
|
||||
echo '<p>THEME <a href="https://github.com/vtrois/kratos" target="_blank" rel="nofollow">KRATOS</a> MADE BY <a href="https://www.vtrois.com/" target="_blank" rel="nofollow">VTROIS</a></p>';
|
||||
if (kratos_option('s_icp')) {
|
||||
echo '<p><a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow">' . kratos_option('s_icp') . '</a></p>';
|
||||
}
|
||||
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>';
|
||||
}
|
||||
if (kratos_option('seo_statistical')) {echo '<p>' . kratos_option('seo_statistical') . '</p>';}
|
||||
$sitename = get_bloginfo('name');
|
||||
echo '<p>' . kratos_option('s_copyright', 'COPYRIGHT © 2021 ' . $sitename . '. ALL RIGHTS RESERVED.') . '</p>';
|
||||
echo '<p>THEME <a href="https://github.com/vtrois/kratos" target="_blank" rel="nofollow">KRATOS</a> MADE BY <a href="https://www.vtrois.com/" target="_blank" rel="nofollow">VTROIS</a></p>';
|
||||
if (kratos_option('s_icp')) {
|
||||
echo '<p><a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow">' . kratos_option('s_icp') . '</a></p>';
|
||||
}
|
||||
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>';
|
||||
}
|
||||
if (kratos_option('seo_statistical')) {
|
||||
echo '<p>' . kratos_option('seo_statistical') . '</p>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -59,4 +64,5 @@
|
|||
</div>
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue