-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.php
74 lines (69 loc) · 3.09 KB
/
footer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* 主题页脚
* @author Seaton Jiang <[email protected]> (Modified by Virace)
* @site x-item.com
* @license GPL-3.0 License
* @software PhpStorm
* @version 2022.07.09
*/
?>
<footer class="k-footer">
<div class="f-toolbox">
<div class="gotop <?php echo kratos_option('g_wechat_fieldset')['g_wechat'] ? 'gotop-haswechat' : ''; ?>">
<div class="gotop-btn">
<span class="vicon i-up"></span>
</div>
</div>
<?php if (!empty(kratos_option('g_wechat_fieldset')['g_wechat'])) { ?>
<div class="wechat">
<span class="vicon i-wechat"></span>
<div class="wechat-pic">
<img src="<?php echo kratos_option('g_wechat_fieldset')['g_wechat_img']; ?>">
</div>
</div>
<?php } ?>
<div class="search">
<span class="vicon 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'); ?>"/>
</form>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-12 text-center">
<p class="social">
<?php
if (!empty(kratos_option('s_social_fieldset'))) {
foreach (kratos_option('s_social_fieldset') as $key => $value) {
if (kratos_option('s_social_fieldset')[$key]) {
echo '<a target="_blank" rel="nofollow" href="' . kratos_option('s_social_fieldset')[$key] . '"><i class="vicon i-' . str_replace(array("s_", "_url"), array('', ''), $key) . '"></i></a>';
}
}
}
?>
</p>
<?php
$sitename = get_bloginfo('name');
echo '<p>' . kratos_option('s_copyright', 'COPYRIGHT © ' . wp_date('Y') . ' ' . get_bloginfo('name') . '. ALL RIGHTS RESERVED.') . '</p>';
echo '<p>THEME <a href="https://github.com/Virace/kratos-pe" target="_blank" rel="nofollow">KRATOS-PE</a> MADE BY <a href="https://github.com/vtrois" target="_blank" rel="nofollow">VTROIS</a> (Modified by Virace)</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 '<script>';
// echo kratos_option('seo_statistical');
// echo '</script>';
// }
?>
</div>
</div>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>