-
Notifications
You must be signed in to change notification settings - Fork 1
/
footer-simple.php
90 lines (89 loc) · 3.67 KB
/
footer-simple.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
/**
* Main Template of Tinection WordPress Theme
*
* @package Tinection
* @version 1.1.6
* @date 2015.2.5
* @author Zhiyan <[email protected]>
* @site Zhiyanblog <www.zhiyanblog.com>
* @copyright Copyright (c) 2014-2015, Zhiyan
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
* @link http://www.zhiyanblog.com/tinection.html
**/
?>
<!-- Footer -->
<!-- Footer Nav Wrap -->
<footer id="footer-nav-wrap">
<div id="footer-nav" class="layout-wrap">
<div id="footer-nav-left">
<!-- Footer Nav -->
<?php wp_nav_menu(array('theme_location'=>'footbar','container_id'=>'footermenu','menu_class'=>'footermenu','menu_id' => 'footer-nav-links', 'depth'=> '1','fallback_cb'=> '')); ?>
<!-- /.Footer Nav -->
<!-- Copyright -->
<div id="footer-copyright">©<?php echo tin_copyright_year(); ?>
<?php if(ot_get_option('copyright')) echo ot_get_option('copyright'); ?> | Theme by
<a href="http://www.zhiyanblog.com/tinection.html" target="_blank">Tinection</a>.
<?php if(ot_get_option('statisticcode')) echo ' | '.ot_get_option('statisticcode'); ?>
<?php if(ot_get_option('beian')) echo ' | <a href="http://www.miitbeian.gov.cn/" target="_blank">'.ot_get_option('beian').'</a>'; ?>
<!--<?php echo get_num_queries();?> queries in <?php timer_stop(1); ?> seconds.-->
</div>
<!-- /.Copyright -->
</div>
<div id="footer-nav-right">
<?php get_template_part('includes/footer-user'); ?>
</div>
</div>
</footer>
<script type="text/javascript">
$('.site_loading').animate({'width':'90%'},50); //第四个节点
</script>
</div>
</section>
<?php get_template_part('includes/loginbox'); ?>
<?php get_template_part('includes/floatbutton'); ?>
<!-- /.Footer Nav Wrap -->
<?php $thelayout = the_layout(); if(is_home()&&$thelayout=='blocks'){ ?>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/jquery.masonry.js"></script>
<script type="text/javascript">
$(function(){
var $container = $('#fluid_blocks'),
$items = $('#fluid_blocks .masonry-box');
$items.imagesLoaded(function(){
$items.fadeIn();
$container.masonry({
itemSelector:'.masonry-box',
gutterWidth:0,
isAnimated:false
});
});
});
</script>
<?php } ?>
<script type="text/javascript">
/* <![CDATA[ */
var ajax_sign_object = <?php echo ajax_sign_object(); ?>;
/* ]]> */
</script>
<script src="<?php bloginfo('template_directory'); ?>/includes/js/function.js"></script>
<script type="text/javascript">var defaultEncoding = 0; var translateDelay = 100; var cookieDomain = "<?php echo get_bloginfo('url'); ?>";</script>
<!-- 百度分享 -->
<script type="text/javascript" id="bdshare_js" data="type=tools&mini=2"></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
//在这里定义bds_config
var bds_config = {'snsKey':{'tsina':"<?php echo ot_get_option('tin_open_weibo_key','2884429244'); ?>",'tqq':"<?php echo ot_get_option('tin_open_qq_id','101166664'); ?>"}};
document.getElementById('bdshell_js').src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000);
</script>
<!-- 引入用户自定义代码 -->
<?php if(ot_get_option('footercode')) echo ot_get_option('footercode'); ?>
<!-- 引入主题js -->
<?php wp_enqueue_script('tinection'); ?>
<?php wp_localize_script('tinection', 'tin', array('ajax_url' => admin_url('admin-ajax.php'),'tin_url' => get_bloginfo('template_directory'),'Tracker' => tin_tracker_param())); ?>
<?php wp_footer(); ?>
<!-- /.Footer -->
<script type="text/javascript">
$('.site_loading').animate({'width':'100%'},50); //第五个节点
</script>
</body>
</html>