/
sidebar-secondary.php
33 lines (24 loc) · 1.06 KB
/
sidebar-secondary.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
<?php
/**
* Secondary Sidebar Template
*
* Displays widgets for the Secondary dynamic sidebar if any have been added to the sidebar through the
* widgets screen in the admin by the user. Otherwise, nothing is displayed.
*
* @package MyLife
* @subpackage Template
* @since 0.1.0
* @author Justin Tadlock <justin@justintadlock.com>
* @copyright Copyright (c) 2011, Justin Tadlock
* @link http://themehybrid.com/themes/my-life
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
if ( is_active_sidebar( 'secondary' ) ) : ?>
<?php do_atomic( 'before_sidebar_secondary' ); // my-life_before_sidebar_secondary ?>
<div id="sidebar-secondary" class="sidebar">
<?php do_atomic( 'open_sidebar_secondary' ); // my-life_open_sidebar_secondary ?>
<?php dynamic_sidebar( 'secondary' ); ?>
<?php do_atomic( 'close_sidebar_secondary' ); // my-life_close_sidebar_secondary ?>
</div><!-- #sidebar-secondary .aside -->
<?php do_atomic( 'after_sidebar_secondary' ); // my-life_after_sidebar_secondary ?>
<?php endif; ?>