This repository was archived by the owner on Feb 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsidebar-footer.php
executable file
·74 lines (66 loc) · 2.64 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
<?php
/**
* Twenty'em WordPress Framework.
*
* WARNING: This file is part of Twenty'em WordPress Framework.
* DO NOT edit this file under any circumstances. Do all your modifications in the form of a child theme.
*
* @package WordPress
* @subpackage Twenty'em
* @author RogerTM
* @license license.txt
* @link https://themingisprose.com/twenty-em
* @since Twenty'em 1.0
*/
/**
* The template for the sidebar containing the footer widget area.
*/
/* The footer widget area is triggered if any of the areas
* have widgets. So let's check that first.
*
* If none of the sidebars have widgets, then let's bail early.
*/
if ( ( is_active_sidebar( 'first-footer-widget-area' )
|| is_active_sidebar( 'second-footer-widget-area' )
|| is_active_sidebar( 'third-footer-widget-area' )
|| is_active_sidebar( 'fourth-footer-widget-area' )
) && 'no-footer-widget' != t_em( 'footer_set' ) ) :
?>
<div id="colophon" class="py-5">
<?php do_action( 't_em_action_colophon_before' ); ?>
<section id="sidebar-footer" class="<?php t_em_container(); ?>" role="complementary">
<div class="row widget-area">
<?php do_action( 't_em_action_sidebar_footer_before' ); ?>
<?php if ( is_active_sidebar( 'first-footer-widget-area' )
&& 'no-footer-widget' != t_em( 'footer_set' ) ) : ?>
<div <?php t_em_breakpoint( 'footer-widget-area' ); ?>>
<?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'second-footer-widget-area' )
&& in_array( t_em( 'footer_set' ),
array( 'two-footer-widget', 'three-footer-widget', 'four-footer-widget' ) ) ) : ?>
<div <?php t_em_breakpoint( 'footer-widget-area' ); ?>>
<?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'third-footer-widget-area' )
&& in_array( t_em( 'footer_set' ),
array( 'three-footer-widget', 'four-footer-widget' ) ) ) : ?>
<div <?php t_em_breakpoint( 'footer-widget-area' ); ?>>
<?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'fourth-footer-widget-area' )
&& in_array( t_em( 'footer_set' ),
array( 'four-footer-widget' ) ) ) : ?>
<div <?php t_em_breakpoint( 'footer-widget-area' ); ?>>
<?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
</div>
<?php endif; ?>
<?php do_action( 't_em_action_sidebar_footer_after' ); ?>
</div><!-- .row .widget-area -->
</section><!-- #footer-widget-area .wrapper .container -->
<?php do_action( 't_em_action_colophon_after' ); ?>
</div><!-- #colophon -->
<?php endif; // If there is any sidebar active ?>