Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (39 sloc) 1.961 kb
33ab325 git it started
Anthony Wilhelm authored
1 <?php
2 /**
3 * The sidebar template containing the main widget area
4 *
5 * @package Reactor
6 * @subpackge Templates
7 * @since 1.0.0
8 */
9 ?>
10 <?php // get the page layout
fd64225 update to 1.1.0
Anthony Wilhelm authored
11 wp_reset_postdata();
95f8234 1.1.4 - fixes page links, breadcrumbs, archives
Anthony Wilhelm authored
12 $default = reactor_option('page_layout', '2c-l');
13 $layout = reactor_option('', $default, '_template_layout'); ?>
33ab325 git it started
Anthony Wilhelm authored
14
15 <?php // if layout has one sidebar and the sidebar is active
fd64225 update to 1.1.0
Anthony Wilhelm authored
16 if ( is_active_sidebar('sidebar') && '1c' != $layout ) : ?>
33ab325 git it started
Anthony Wilhelm authored
17
18 <?php reactor_sidebar_before(); ?>
19
fd64225 update to 1.1.0
Anthony Wilhelm authored
20 <div id="sidebar" class="sidebar <?php reactor_columns( '', true, true, 1 ); ?>" role="complementary">
33ab325 git it started
Anthony Wilhelm authored
21 <?php dynamic_sidebar('sidebar'); ?>
22 </div><!-- #sidebar -->
23
24 <?php // else show an alert
fd64225 update to 1.1.0
Anthony Wilhelm authored
25 else : if ( '1c' != $layout ) : ?>
33ab325 git it started
Anthony Wilhelm authored
26
fd64225 update to 1.1.0
Anthony Wilhelm authored
27 <div id="sidebar" class="sidebar <?php reactor_columns( '', true, true, 1 ); ?>" role="complementary">
33ab325 git it started
Anthony Wilhelm authored
28 <div class="alert-box secondary"><p>Add some widgets to this area!</p></div>
29 </div><!-- #sidebar -->
30
31 <?php reactor_sidebar_after(); ?>
32
33 <?php endif; endif; ?>
34
35 <?php // if layout has two sidebars and second sidear is active
fd64225 update to 1.1.0
Anthony Wilhelm authored
36 if ( is_active_sidebar('sidebar-2') && ( '3c-l' == $layout || '3c-r' == $layout || '3c-c' == $layout ) ) : ?>
33ab325 git it started
Anthony Wilhelm authored
37
38 <?php reactor_sidebar_before(); ?>
39
fd64225 update to 1.1.0
Anthony Wilhelm authored
40 <div id="sidebar-2" class="sidebar <?php reactor_columns( '', true, true, 2 ); ?>" role="complementary">
33ab325 git it started
Anthony Wilhelm authored
41 <?php dynamic_sidebar('sidebar-2'); ?>
42 </div><!-- #sidebar-2 -->
43
44 <?php // else show an alert
fd64225 update to 1.1.0
Anthony Wilhelm authored
45 else : if ( '3c-l' == $layout || '3c-r' == $layout || '3c-c' == $layout ) : ?>
33ab325 git it started
Anthony Wilhelm authored
46
fd64225 update to 1.1.0
Anthony Wilhelm authored
47 <div id="sidebar-2" class="sidebar <?php reactor_columns( '', true, true, 2 ); ?>" role="complementary">
33ab325 git it started
Anthony Wilhelm authored
48 <div class="alert-box secondary"><p>Add some widgets to this area!</p></div>
49 </div><!-- #sidebar-2 -->
50
51 <?php reactor_sidebar_after(); ?>
52
53 <?php endif; endif; ?>
Something went wrong with that request. Please try again.