forked from alecctv/iDowns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
162 lines (155 loc) · 5.15 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<footer class="footer">
<div class="container">
<div class="footer-widgets">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_bottom')) : endif; ?>
</div>
</div>
<div class="copyright-area bg-7">
<div class="container">
<!-- Contact address left -->
<?php if( _DGA('footer_iconbox') ){ ?>
<div class="row">
<div class="conct-border two">
<div class="col-md-3 col-sm-6">
<div class="single-address">
<div class="media">
<div class="media-left">
<?php echo _DGA('footer_icon1');?>
</div>
<div class="media-body text-center">
<?php echo _DGA('footer_text1');?>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="single-address">
<div class="media">
<div class="media-left">
<?php echo _DGA('footer_icon2');?>
</div>
<div class="media-body text-center">
<?php echo _DGA('footer_text2');?>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="single-address">
<div class="media">
<div class="media-left">
<?php echo _DGA('footer_icon3');?>
</div>
<div class="media-body text-center">
<?php echo _DGA('footer_text3');?>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="single-address">
<div class="media">
<div class="media-left">
<?php echo _DGA('footer_icon4');?>
</div>
<div class="media-body text-center">
<?php echo _DGA('footer_text4');?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
<!-- Contact address left -->
<!-- Copyright right -->
<div class="row">
<div class="col-md-12">
<div class="copyright-area text-center">
<!-- Copyright social -->
<div class="contact-social text-center pt-70 pb-35">
<?php if((is_home() || is_single()) && _DGA('friendlink')){?>
<div class="footer-links">
<ul><li>友情链接:</li><?php wp_list_bookmarks('title_li=&categorize=0&show_images=0'); ?></ul>
</div>
<?php }?>
</div>
<!-- Copyright social -->
<div class="copyright-text">
<p><?php echo _DGA('copyright');?></p>
</div>
<!-- Copyright text -->
</div>
</div>
</div>
<!-- Copyright right -->
</div>
</div>
</footer>
<div id="globalSearch" class="js-search search-form search-form-modal fadeZoomIn" role="dialog" aria-hidden="true" >
<form method="get" action="<?php echo esc_url( home_url() ) ?>" role="search">
<div class="search-form-inner">
<div class="search-form-box">
<input class="form-search" type="text" name="s" placeholder="键入关键词">
</div>
</div>
</form>
</div>
<?php if (_DGA('all_page_tips')) { ?>
<div class="site-tips">
<?php echo _DGA('all_page_tips'); ?>
<a href="javascript:;" class="close"><i class="dripicons dripicons-cross"></i></a>
</div>
<?php } ?>
<div class="rollbar">
<ul>
<?php if( _DGA('nav_search') ){ ?>
<li><a href="javascript:void(0)" data-toggle="modal" data-target="#globalSearch" data-backdrop="1"><span class="nav-search-btn"><i class="fa"></i></span></a></li>
<?php } ?>
<?php if (_DGA('footer_qq')) { ?>
<li><a target="_bank" href="https://wpa.qq.com/msgrd?v=3&uin=<?php echo _DGA('footer_qqhao') ?>&site=qq&menu=yes" class="qq"><i class="dripicons dripicons-message"></i></a></li>
<?php } ?>
<li><a href="javascript:;" class="totop"><i class="dripicons dripicons-chevron-up"></i></a></li>
</ul>
</div>
<?php if (!is_user_logged_in() && _DGA('isloginpop')) {
get_template_part('module/login');
}
?>
<?php wp_footer();?>
<script>IDOWNS.init({ias: <?php echo _DGA('ajax_list_load')?'1':'0';?>, lazy: <?php echo _DGA('lazyload')?'1':'0';?>, water: <?php echo _DGA('waterfall')?'1':'0';?>});</script>
<?php echo _DGA('js');?>
<?php if (is_single() && _DGA('xiongzhang')) {?>
<script type="application/ld+json">
{
"@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld",
"@id": "<?php the_permalink(); ?>",
"appid": "<?php echo _DGA('xiongzhang_appid');?>",
"title": "<?php the_title(); ?>",
"images": [
"<?php echo DGAThemes_thumbnail();?>"
],
"description":"<?php echo _get_excerpt($limit=234, $after='');?>",
"pubDate": "<?php the_time('Y-m-d');?>T<?php the_time('H:i:s');?>"
}
</script>
<?php }?>
<?php if (!wp_is_mobile() && _DGA('is_sidebar_top',true)) { ?>
<script type="text/javascript">
jQuery(document).ready(function() {
<?php if (is_single()) { ?>
jQuery('.content, .sidebar').theiaStickySidebar({
additionalMarginTop: 30
});
<?php } ?>
<?php if (is_page_template( 'template/page-left-menu.php' )) { ?>
jQuery('.single-content, .page-left-menu').theiaStickySidebar({
additionalMarginTop: 110
});
<?php } ?>
});
</script>
<?php } ?>
<div class="analysis"><?php echo _DGA('analysis');?></div>
</body>
</html>