-
Notifications
You must be signed in to change notification settings - Fork 1
/
sidebar.php
26 lines (24 loc) · 890 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
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package context-blog
*/
if ( ! is_active_sidebar( 'sidebar-1' )
and get_theme_mod( 'context_blog_sidebar_about_author_enable', 1 ) == 0
and get_theme_mod( 'context_blog_sidebar_latest_blog_enable', 1 ) == 0
and get_theme_mod( 'context_blog_sidebar_quote_enable', 1 ) == 0
and get_theme_mod( 'context_blog_sidebar_stay_connected_enable', 1 ) == 0
) :
return;
endif;
?>
<aside id="secondary" class="sidebar widget-area">
<?php get_template_part( 'sidebar/full-width', 'slider' ); ?>
<?php get_template_part( 'sidebar/about-author', 'section' ); ?>
<?php get_template_part( 'sidebar/stay', 'connected' ); ?>
<?php dynamic_sidebar( 'sidebar-1' ); ?>
<?php get_template_part( 'sidebar/quote' ); ?>
</aside><!-- #secondary -->