-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
executable file
·39 lines (37 loc) · 1.29 KB
/
sidebar.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
<?php
/**
* The Sidebar containing the main widget areas.
*
* @package Spun
*/
?>
<?php if ( is_active_sidebar( 'sidebar-1' )
|| is_active_sidebar( 'sidebar-2' )
|| is_active_sidebar( 'sidebar-3' ) ) : ?>
<a class="sidebar-link">
<?php echo _x( '+', 'Open sidebar', 'spun' ); ?>
</a>
<?php endif; ?>
<div id="secondary" class="widget-area" role="complementary">
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<?php do_action( 'before_sidebar' ); ?>
<div class="widget-column <?php spun_count_sidebars(); ?>">
<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
<?php endif; // end sidebar widget area ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
<?php do_action( 'before_sidebar' ); ?>
<div class="widget-column <?php spun_count_sidebars(); ?>">
<?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) : ?>
<?php endif; // end sidebar widget area ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
<?php do_action( 'before_sidebar' ); ?>
<div class="widget-column <?php spun_count_sidebars(); ?>">
<?php if ( ! dynamic_sidebar( 'sidebar-3' ) ) : ?>
<?php endif; // end sidebar widget area ?>
</div>
<?php endif; ?>
</div><!-- #secondary .widget-area -->