-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
executable file
·30 lines (25 loc) · 1.02 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
<?php
$layout = pergo_get_layout();
if( $layout != 'full' ):
$sidebar = pergo_get_sidebar();
$id = ($layout == 'ls')? 'sidebar-left' : 'sidebar-right';
$class = ($layout == 'ls')? 'p-right-60' : 'p-left-60';
?>
<!-- SIDEBAR RIGHT
============================================= -->
<aside id="<?php echo esc_attr($id) ?>" class="col-md-4 widget-area">
<div class="<?php echo esc_attr($class) ?>">
<?php do_action( 'pergo_sidebar_before' ); ?>
<?php
if ( is_active_sidebar( $sidebar ) ) : ?>
<?php dynamic_sidebar( $sidebar ); ?>
<?php
else:
$args = 'before_widget=<div class="sidebar-div m-bottom-50 widget_categories">&after_widget=</div>&before_title=<h5 class="h5-sm widget-title">&after_title=</h5>';
the_widget( 'WP_Widget_Archives', '', $args );
the_widget( 'WP_Widget_Pages', '', $args );
endif; ?>
<?php do_action( 'pergo_sidebar_after' ); ?>
</div>
</aside> <!-- END SIDEBAR RIGHT -->
<?php endif; ?>