-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar-alt.php
More file actions
37 lines (29 loc) · 763 Bytes
/
sidebar-alt.php
File metadata and controls
37 lines (29 loc) · 763 Bytes
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
<?php
/**
* Secondary Sidebar Template
*
* If a `secondary` widget area is active and has widgets,
* and the selected layout has a third column, display the sidebar.
*
* @subpackage Template
*/
global $post, $wp_query, $sf_options;
$selected_layout = 'one-col';
$layouts = array( 'three-col-left', 'three-col-middle', 'three-col-right' );
$selected_layout = sf_get_layout();
if ( in_array( $selected_layout, $layouts ) ) {
if ( sf_active_sidebar( 'secondary' ) ) {
?>
<?php sf_sidebar_before(); ?>
<aside id="sidebar-alt">
<?php
sf_sidebar_inside_before();
sf_sidebar( 'secondary' );
sf_sidebar_inside_after();
?>
</aside><!-- /#sidebar-alt -->
<?php sf_sidebar_after(); ?>
<?php
} // End IF Statement
} // End IF Statement
?>