-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
48 lines (48 loc) · 1.19 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* The sidebar containing the main widget area.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package DebtCollective
*/
?>
<aside class="sidebar primary widget-area ">
<?php
if( function_exists( 'is_shop' ) && is_shop() && is_active_sidebar( 'shop' ) ) :
?>
<div class="widgets shop">
<?php dynamic_sidebar( 'shop' ); ?>
</div>
<?php
endif;
?>
<?php
if ( is_active_sidebar( 'above-nav' ) ) :
?>
<?php dynamic_sidebar( 'above-nav' ); ?>
<?php
endif;
?>
</aside>
<aside class="sidebar subnav widget-area ">
<?php
$section_navigation = \get_post_meta( $post->ID, 'display_section_navigation', true );
if( 'children' === $section_navigation ) : ?>
<?php debtcollective_render_subpage_navigation( $post ); ?>
<?php elseif ( ! empty( $section_navigation ) ) : ?>
<?php debtcollective_render_section_navigation( $post ); ?>
<?php endif; ?>
<?php
if ( is_active_sidebar( 'below-nav' ) ) :
?>
<?php dynamic_sidebar( 'below-nav' ); ?>
<?php
endif;
?>
</aside>
<aside class="sidebar secondary widget-area ">
<?php
get_template_part( 'template-parts/components/join-tout', 'sidebar' );
?>
</aside><!-- .secondary -->