-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
135 lines (103 loc) · 4.36 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
<!-- 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_the_author_link(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 esc_html(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")) {
dynamic_sidebar("before-footer");
} ?>
</div> <!-- end about -->
</div> <!-- end row -->
<?php if (is_active_sidebar("tags-widgets")) : ?>
<div class="row bottom tags-wrap">
<div class="col-full tags">
<?php dynamic_sidebar("tags-widgets") ?>
</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">
<?php if (is_active_sidebar("footer-left")) {
dynamic_sidebar("footer-left");
} ?>
<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>
</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>