-
Notifications
You must be signed in to change notification settings - Fork 6
/
sidebar-footer.php
35 lines (29 loc) · 879 Bytes
/
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
<?php
/**
* Footer Sidebar Template
*
* Display the sidebar widgets. Will not output anything if there's no widgets
* assigned to specified sidebar.
*
* A body class is added if the theme has widgets to display here
* {@see granule_body_class}. This helps with custom css that adjusts the page
* when no widgets exist.
*
* @link https://developer.wordpress.org/themes/template-files-section/partial-and-miscellaneous-template-files/#sidebar-php
*
* @package Granule
* @subpackage TemplatePart
* @author Ben Gillbanks <[email protected]>
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License
*/
// Quit early if no footer widgets available.
if ( ! is_active_sidebar( 'sidebar-2' ) ) {
return;
}
?>
<!-- Sidebar Footer (2) -->
<aside class="footer-widgets sidebar-footer sidebar">
<?php
dynamic_sidebar( 'sidebar-2' );
?>
</aside>