-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.php
34 lines (26 loc) · 855 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
34
<?php
/**
* The sidebar containing the main widget area.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package _xe
*/
global $xe_opt;
$sidebar = $xe_opt->sidebar();
/**
* # Render Left Sidebar
*/
if ( $sidebar['position'] == 'left' || ( $sidebar['position'] == 'both' && is_active_sidebar($sidebar['left']) ) ) { ?>
<aside id="secondary" class="widget-area left" role="complementary">
<?php dynamic_sidebar( $sidebar['left'] ); ?>
</aside><!-- #secondary -->
<?php }
/**
* # Render Right Sidebar
*/
if ( $sidebar['position'] == 'right' || ( $sidebar['position'] == 'both' && is_active_sidebar($sidebar['right']) ) ) { ?>
<aside id="tertiary" class="widget-area right" role="complementary">
<?php dynamic_sidebar( $sidebar['right'] ); ?>
</aside><!-- #tertiary -->
<?php }