-
Notifications
You must be signed in to change notification settings - Fork 12
/
footer.php
218 lines (165 loc) · 7 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!-- s-extra
================================================== -->
<section class="s-extra">
<div class="row top">
<div class="col-eight md-six tab-full popular">
<h3><?php _e( "Popular Posts", "philosophy" ); ?></h3>
<div class="block-1-2 block-m-full popular__posts">
<?php
$philosophy_popular_posts = new WP_Query( array(
'posts_per_page' => 6,
'ignore_sticky_posts' => 1,
'orderby' => "comment_count"
) );
while ( $philosophy_popular_posts->have_posts() ) {
$philosophy_popular_posts->the_post();
?>
<article class="col-block popular__post">
<a href="<?php the_permalink(); ?>" class="popular__thumb">
<?php the_post_thumbnail(); ?>
</a>
<h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
<section class="popular__meta">
<span class="popular__author"><span><?php _e( "By", "philosophy" ); ?></span> <a
href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ); ?>"> <?php the_author(); ?></a></span>
<span class="popular__date"><span><?php _e( "on", "philosophy" ); ?></span> <time
datetime="2017-12-19"><?php echo get_the_date(); ?></time></span>
</section>
</article>
<?php
}
wp_reset_query();
?>
</div> <!-- end popular_posts -->
</div> <!-- end popular -->
<div class="col-four md-six tab-full about">
<?php
if ( is_active_sidebar( "before-footer-right" ) ) {
dynamic_sidebar( "before-footer-right" );
}
?>
</div> <!-- end about -->
</div> <!-- end row -->
<?php
$philosophy_display_tags = cs_get_option('footer_tag');
if($philosophy_display_tags):
?>
<div class="row bottom tags-wrap">
<div class="col-full tags">
<?php
$philosophy_footer_tag_heading = apply_filters('philosophy_footer_tag_heading',__('Tags','philosophy'));
$philosophy_footer_tag_items = apply_filters('philosophy_footer_tag_items',get_tags());
?>
<h3>
<?php echo esc_html($philosophy_footer_tag_heading); ?>
</h3>
<div class="tagcloud">
<?php
if(is_array($philosophy_footer_tag_items)){
foreach($philosophy_footer_tag_items as $pti){
printf('<a href="%s">%s</a>',get_term_link($pti->term_id),$pti->name);
}
}
?>
</div> <!-- end tagcloud -->
</div> <!-- end tags -->
</div> <!-- end tags-wrap -->
<?php endif; ?>
</section> <!-- end s-extra -->
<!-- s-footer
================================================== -->
<footer class="s-footer">
<div class="s-footer__main">
<div class="row">
<div class="col-two md-four mob-full s-footer__sitelinks">
<h4><?php _e("Quick Links","philosophy"); ?></h4>
<?php
wp_nav_menu( array(
'theme_location' => 'footer-left',
'menu_id' => 'footerleft',
'menu_class' => 's-footer__linklist',
) );
?>
</div> <!-- end s-footer__sitelinks -->
<div class="col-two md-four mob-full s-footer__archives">
<h4><?php _e("Archives","philosophy"); ?></h4>
<?php
wp_nav_menu( array(
'theme_location' => 'footer-middle',
'menu_id' => 'footermiddle',
'menu_class' => 's-footer__linklist',
) );
?>
</div> <!-- end s-footer__archives -->
<div class="col-two md-four mob-full s-footer__social">
<h4><?php _e("Social","philosophy"); ?></h4>
<?php
wp_nav_menu( array(
'theme_location' => 'footer-right',
'menu_id' => 'footerright',
'menu_class' => 's-footer__linklist',
) );
?>
</div> <!-- end s-footer__social -->
<div class="col-five md-full end s-footer__subscribe">
<?php
if(is_active_sidebar('footer-right')){
dynamic_sidebar('footer-right');
}
?>
<div class="subscribe-form">
<form id="mc-form" class="group" novalidate="true">
<input type="email" value="" name="EMAIL" class="email" id="mc-email"
placeholder="Email Address" required="">
<input type="submit" name="subscribe" value="Send">
<label for="mc-email" class="subscribe-message"></label>
</form>
</div>
<?php
$philosophy_social_facebook = cs_get_option('social_facebook');
if($philosophy_social_facebook){
echo "<a target='_blank' href='".esc_url($philosophy_social_facebook)."'><i class='fa fa-facebook'></i></a>";
}
$philosophy_social_twitter = cs_get_option('social_twitter');
if($philosophy_social_twitter){
echo "<a target='_blank' href='".esc_url($philosophy_social_twitter)."'><i class='fa fa-twitter'></i></a>";
}
?>
</div> <!-- end s-footer__subscribe -->
</div>
</div> <!-- end s-footer__main -->
<div class="s-footer__bottom">
<div class="row">
<div class="col-full">
<div class="s-footer__copyright">
<?php
if(is_active_sidebar('footer-bottom')){
dynamic_sidebar('footer-bottom');
}
?>
</div>
<div class="go-top">
<a class="smoothscroll" title="Back to Top" href="#top"></a>
</div>
</div>
</div>
</div> <!-- end s-footer__bottom -->
</footer> <!-- end s-footer -->
<!-- preloader
================================================== -->
<div id="preloader">
<div id="loader">
<div class="line-scale">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
<!-- Java Script
================================================== -->
<?php wp_footer(); ?>
</body>
</html>