This repository has been archived by the owner on Mar 19, 2020. It is now read-only.
forked from seatonjiang/kratos
-
Notifications
You must be signed in to change notification settings - Fork 3
/
footer.php
61 lines (61 loc) · 3.94 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
<?php
/**
* The template for displaying the footer
*
* @author Vtrois <[email protected]>
* @license GPL-3.0
*/
?>
<footer>
<div id="footer">
<div class="cd-tool visible text-center">
<?php if ( kratos_option( 'cd_gb' ) && kratos_option( 'cd_weixin' ) ) { ?>
<a rel="nofollow" class="cd-gb-a visible-lg" href="<?php echo kratos_option('guestbook_links'); ?>"><span class="fa fa-book"></span></a>
<?php } elseif( kratos_option( 'cd_gb' ) && !kratos_option( 'cd_weixin' ) ){ ?>
<a rel="nofollow" class="cd-gb-b visible-lg" href="<?php echo kratos_option('guestbook_links'); ?>"><span class="fa fa-book"></span></a>
<?php } ?>
<?php if ( kratos_option( 'cd_weixin' ) ) : ?>
<a id="weixin-img" class="cd-weixin visible-lg"><span class="fa fa-weixin"></span><div id="weixin-pic"><img src="<?php echo kratos_option('weixin_image') ?>"></div></a>
<?php endif; ?>
<a class="cd-top cd-is-visible cd-fade-out"><span class="fa fa-chevron-up"></span></a>
</div>
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3 footer-list text-center">
<p class="kratos-social-icons">
<?php echo (!kratos_option('social_weibo')) ? '' : '<a target="_blank" rel="nofollow" href="' . kratos_option('social_weibo') . '"><i class="fa fa-weibo"></i></a>'; ?>
<?php echo (!kratos_option('social_tweibo')) ? '' : '<a target="_blank" rel="nofollow" href="' . kratos_option('social_tweibo') . '"><i class="fa fa-tencent-weibo"></i></a>'; ?>
<?php echo (!kratos_option('social_twitter')) ? '' : '<a target="_blank" rel="nofollow" href="' . kratos_option('social_twitter') . '"><i class="fa fa-twitter"></i></a>'; ?>
<?php echo (!kratos_option('social_facebook')) ? '' : '<a target="_blank" rel="nofollow" href="' . kratos_option('social_facebook') . '"><i class="fa fa-facebook-official"></i></a>'; ?>
<?php echo (!kratos_option('social_linkedin')) ? '' : '<a target="_blank" rel="nofollow" href="' . kratos_option('social_linkedin') . '"><i class="fa fa-linkedin-square"></i></a>'; ?>
<?php echo (!kratos_option('social_github')) ? '' : '<a target="_blank" rel="nofollow" href="' . kratos_option('social_github') . '"><i class="fa fa-github"></i></a>'; ?>
<?php echo (!kratos_option('social_telegram')) ? '' : '<a target="_blank" rel="nofollow" href="' . kratos_option('social_telegram') . '"><i class="fa fa-telegram"></i></a>'; ?>
</p>
<p>Copyright <?php echo date('Y'); ?> <a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a>. All Rights Reserved.<br>Theme <a href="https:/vtrois/kratos" target="_blank" rel="nofollow">Kratos</a> made by <a href="https://www.vtrois.com/" target="_blank" rel="nofollow">Vtrois</a><?php if(kratos_option('custom_footer')){ echo '<br>';echo kratos_option('custom_footer');} ?>
<?php if(kratos_option('icp_num')){?><br><a href="http://www.miitbeian.gov.cn/" rel="external nofollow" target="_blank"><?php echo kratos_option( 'icp_num' ); } ?></a><?php if(kratos_option('gov_num')){?><br><a href="<?php echo kratos_option( 'gov_link' ); ?>" rel="external nofollow" target="_blank"><i class="govimg"></i><?php echo kratos_option( 'gov_num' ); ?></a><?php }?></p><p><?php echo (!kratos_option('site_tongji')) ? '' : kratos_option('site_tongji'); ?></p>
</div>
</div>
</div>
</div>
</footer>
</div>
</div>
<?php wp_footer();?>
<?php if ( kratos_option('site_sa') ) : ?>
<script type="text/javascript">
if ($("#main").height() > $("#sidebar").height()) {
var footerHeight = 0;
if ($('#page-footer').length > 0) {
footerHeight = $('#page-footer').outerHeight(true);
}
$('#sidebar').affix({
offset: {
top: $('#sidebar').offset().top - 30,
bottom: $('#footer').outerHeight(true) + footerHeight + 6
}
});
}
</script>
<?php endif; ?>
</body>
</html>