forked from Codeinwp/zillah
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
30 lines (27 loc) · 974 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
<?php
/**
* The sidebar containing the main widget area.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package zillah
*/
$zillah_sidebar_show = get_theme_mod( 'zillah_sidebar_show', false );
if ( ! is_active_sidebar( 'zillah-sidebar-1' ) ) {
return;
}
?>
<?php zillah_hook_sidebar_before(); ?>
<aside id="secondary" class="widget-area<?php echo $zillah_sidebar_show === false && is_customize_preview() ? ' zillah-only-customizer' : ''; ?><?php echo $zillah_sidebar_show ? ' widget-area-mobile' : ''; ?>" role="complementary">
<?php
if ( $zillah_sidebar_show ) {
echo '<span class="sidebar-mobile-title"><span>' . esc_html__( 'Sidebar', 'zillah' ) . '</span></span>';
}
?>
<div class="sidebar-inner-wrap">
<?php zillah_hook_sidebar_top(); ?>
<?php dynamic_sidebar( 'zillah-sidebar-1' ); ?>
<?php zillah_hook_sidebar_bottom(); ?>
</div>
</aside><!-- #secondary -->
<?php zillah_hook_sidebar_after(); ?>