This repository has been archived by the owner on Aug 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar-footer.php
75 lines (71 loc) · 2.02 KB
/
sidebar-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
<?php
/*
NARROW SIDEBAR
The first, narrow, sidebar in footer.
*/
$widget_options = array(
'before_widget' => '<section class="widget %1$s">',
'after_widget' => '</section>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>'
);
?>
<aside class="footer-sidebar-large widget-area">
<?php if( is_active_sidebar( 'footer-large-1' ) ): ?>
<?php dynamic_sidebar( 'footer-large-1' ); ?>
<?php else: ?>
<section class="widget widget_categories">
<?php the_widget(
'WP_Widget_Categories',
array(
'title' => esc_html__( 'Categories', 'graciliano' ),
'count' => true,
'hierarchical' => true
),
$widget_options
); ?>
</section>
<?php endif; ?>
</aside>
<aside class="footer-sidebar-narrow widget-area">
<?php if( is_active_sidebar( 'footer-narrow-2' ) ): ?>
<?php dynamic_sidebar( 'footer-narrow-2' ); ?>
<?php else: ?>
<?php the_widget(
'WP_Widget_Recent_Posts',
array(
'title' => esc_html__( 'Recent Posts', 'graciliano' ),
'number' => 5
),
$widget_options
); ?>
<?php endif; ?>
</aside>
<aside class="footer-sidebar-narrow widget-area">
<?php if( is_active_sidebar( 'footer-narrow-3' ) ): ?>
<?php dynamic_sidebar( 'footer-narrow-3' ); ?>
<?php else: ?>
<?php the_widget(
'WP_Widget_Archives',
array(
'title' => esc_html__( 'Archives', 'graciliano' ),
'count' => true
),
$widget_options
); ?>
<?php endif; ?>
</aside>
<aside class="footer-sidebar-large widget-area">
<?php if( is_active_sidebar( 'footer-large-4' ) ): ?>
<?php dynamic_sidebar( 'footer-large-4' ); ?>
<?php else: ?>
<?php the_widget(
'WP_Widget_Recent_Comments',
array(
'title' => esc_html__( 'Recent Comments', 'graciliano' ),
'number' => 5
),
$widget_options
); ?>
<?php endif; ?>
</aside>