-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
221 lines (177 loc) · 5.88 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
219
220
221
<!-- 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_post = new WP_Query(array(
'posts_per_page' => 6,
'ignore_sticky_posts' => 1,
'orderby' => 'comment_count',
));
while ($philosophy_popular_post->have_posts()) {
$philosophy_popular_post->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');
}
?>
<ul class="about__social">
<?php
$options = get_option('philosophy_options');
$social_links = $options['social_link_group'];
if (is_array($social_links) || is_object($social_links)) {
foreach ($social_links as $social_icon_link) {
?>
<a href="<?php echo $social_icon_link['social_link']['url']; ?>"><i class="<?php echo $social_icon_link['social_link_icon']; ?>"></i></a>
<?php
}
}
?>
</ul> <!-- end header__social -->
</div> <!-- end about -->
</div> <!-- end row -->
<div class="row bottom tags-wrap">
<div class="col-full tags">
<?php
$philosophy_tags_heading = apply_filters('philosophy_tags_heading', __('Tags', 'philosophy'));
$philosophy_tags_items = apply_filters('philosophy_tags_items', get_tags());
?>
<h3><?php echo esc_html($philosophy_tags_heading); ?></h3>
<div class="tagcloud">
<?php
if (is_array($philosophy_tags_items)) {
foreach ($philosophy_tags_items as $pti) {
printf('<a href="%s">%s</a>', get_term_link($pti->term_id), $pti->name);
}
}
?>
<!-- --><?php
// $tags = get_tags();
// foreach ( $tags as $tag ) :
// $tag_link = get_tag_link( $tag->term_id );
//
?>
<!-- <a href='--><?php //echo wp_kses_post($tag_link);
?>
<!--' title='--><?php //echo wp_kses_post($tag->name);
?>
<!--' class='--><?php //echo wp_kses_post($tag->slug);
?>
<!--'>--><?php //echo wp_kses_post($tag->name);
?>
<!--</a>-->
<!-- --><?php
// endforeach;
//
?>
</div> <!-- end tagcloud -->
</div> <!-- end tags -->
</div> <!-- end tags-wrap -->
</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
$philosophy_menu = wp_nav_menu(array(
'theme_location' => 'footerleftmenu',
'menu_id' => 'footerleftmenu',
'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
$philosophy_menu = wp_nav_menu(array(
'theme_location' => 'footermiddletmenu',
'menu_id' => 'footermiddletmenu',
'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
$philosophy_menu = wp_nav_menu(array(
'theme_location' => 'footerrightmenu',
'menu_id' => 'footerrightmenu',
'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-mail')) {
dynamic_sidebar('footer-right-mail');
}
?>
<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>
</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-copyright')) {
dynamic_sidebar('footer-bottom-copyright');
}
?>
</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>