-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
146 lines (80 loc) · 3.52 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
<?/* <div class="footer section large-padding bg-dark">
<div class="footer-inner section-inner">
<?php if ( is_active_sidebar( 'footer-a' ) ) : ?>
<div class="column column-1 left">
<div class="widgets">
<?php dynamic_sidebar( 'footer-a' ); ?>
</div>
</div>
<?php else : ?>
<div class="column column-1 left">
<div class="widgets">
<div id="search" class="widget widget_search">
<div class="widget-content">
<h3 class="widget-title"><?php _e( 'Search form', 'hemingway' ); ?></h3>
<?php get_search_form(); ?>
</div>
</div>
</div>
</div>
<?php endif; ?> <!-- /footer-a -->
<?php if ( is_active_sidebar( 'footer-b' ) ) : ?>
<div class="column column-2 left">
<div class="widgets">
<?php dynamic_sidebar( 'footer-b' ); ?>
</div> <!-- /widgets -->
</div>
<?php else : ?>
<div class="column column-2 left">
<div class="widgets">
<div class="widget widget_recent_entries">
<div class="widget-content">
<h3 class="widget-title"><?php _e( 'Latest posts', 'hemingway' ); ?></h3>
<ul>
<?php
$args = array( 'numberposts' => '5', 'post_status' => 'publish' );
$recent_posts = wp_get_recent_posts( $args );
foreach( $recent_posts as $recent ){
echo '<li><a href="' . get_permalink($recent["ID"]) . '" title="'.esc_attr($recent["post_title"]).'" >' . $recent["post_title"].'</a> </li> ';
}
?>
</ul>
</div>
</div>
</div> <!-- /widgets -->
</div>
<?php endif; ?> <!-- /footer-b -->
<?php if ( is_active_sidebar( 'footer-c' ) ) : ?>
<div class="column column-3 left">
<div class="widgets">
<?php dynamic_sidebar( 'footer-c' ); ?>
</div> <!-- /widgets -->
</div>
<?php else : ?>
<div class="column column-3 left">
<div id="meta" class="widget widget_text">
<div class="widget-content">
<h3 class="widget-title"><?php _e( "Text widget", "hemingway" ); ?></h3>
<p><?php _e( "These widgets are displayed because you haven't added any widgets of your own yet. You can do so at Appearance > Widgets in the WordPress settings.", "hemingway" ); ?></p>
</div>
</div>
</div>
<?php endif; ?> <!-- /footer-c -->
<div class="clear"></div>
</div> <!-- /footer-inner -->
</div> <!-- /footer --> */?>
<div class="credits section bg-dark no-padding" style="margin-top: 3.5%">
<div class="credits-inner section-inner">
<p class="credits-left">
© <?php echo date("Y") ?> <a href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a>
</p>
<p class="credits-right">
<span><? //php printf( __( 'Theme by <a href="%s">Anders Noren</a>', 'hemingway'), 'http://www.andersnoren.se' ); ?></span> <a title="<?php _e('To the top', 'hemingway'); ?>" class="tothetop"><?php _e('Up', 'hemingway' ); ?> ↑</a>
</p>
<div class="clear"></div>
</div> <!-- /credits-inner -->
</div> <!-- /credits -->
</div> <!-- /big-wrapper -->
<?php wp_footer(); ?>
</body>
</html>