-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar-footer.php
34 lines (29 loc) · 1.27 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
<?php
/**
* The sidebar containing the footer widget area.
*
* @package Shoreditch
*/
if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) {
return;
}
$footer_top_column = get_theme_mod( 'shoreditch_footer_top_column', 'column-1' );
$footer_bottom_column = get_theme_mod( 'shoreditch_footer_bottom_column', 'column-3' );
?>
<aside id="tertiary" class="widget-area widget-footer" role="complementary">
<?php tfc_nathan_small_footer_cta(); ?>
<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
<div class="widget-footer-area widget-footer-top-area <?php echo $footer_top_column; ?>">
<div class="widget-area-wrapper">
<?php dynamic_sidebar( 'sidebar-2' ); ?>
</div><!-- .widget-area-wrapper-area -->
</div><!-- .widget-footer-full-width -->
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
<div class="widget-footer-area widget-footer-bottom-area <?php echo $footer_bottom_column; ?>">
<div class="widget-area-wrapper">
<?php dynamic_sidebar( 'sidebar-3' ); ?>
</div><!-- .widget-area-wrapper -->
</div><!-- .widget-footer-area -->
<?php endif; ?>
</aside><!-- #tertiary -->