forked from chrisblakley/Nebula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.php
33 lines (30 loc) · 896 Bytes
/
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
<?php
/**
* The Sidebar containing the primary and secondary widget areas.
*/
?>
<?php if ( get_theme_mod('sidebar_position') !== 'off' ): ?>
<div class="col-md-3 <?php echo ( get_theme_mod('sidebar_position') === 'left' )? 'nebula-flex-first' : 'offset-md-1'; ?>" role="complementary">
<div id="sidebar-section">
<div class="row">
<div class="col">
<?php do_action('nebula_sidebar_open'); ?>
</div><!--/col-->
</div><!--/row-->
<div class="row">
<div class="col">
<?php if ( is_active_sidebar('primary-widget-area') ): ?>
<ul class="xoxo">
<?php dynamic_sidebar('primary-widget-area'); ?>
</ul>
<?php endif; ?>
</div><!--/col-->
</div><!--/row-->
<div class="row">
<div class="col">
<?php do_action('nebula_sidebar_close'); ?>
</div><!--/col-->
</div><!--/row-->
</div>
</div><!--/col-->
<?php endif; ?>