-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.php
34 lines (24 loc) · 872 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.
*
* @package HavocWP WordPress theme
*/
// Retunr if full width or full screen.
if ( in_array( havocwp_post_layout(), array( 'full-screen', 'full-width' ), true ) ) {
return;
} ?>
<?php do_action( 'havoc_before_sidebar' ); ?>
<aside id="right-sidebar" class="sidebar-container widget-area sidebar-primary"<?php havocwp_schema_markup( 'sidebar' ); ?> role="complementary" aria-label="<?php esc_attr_e( 'Primary Sidebar', 'havocwp' ); ?>">
<?php do_action( 'havoc_before_sidebar_inner' ); ?>
<div id="right-sidebar-inner" class="clr">
<?php
$sidebar = havocwp_get_sidebar();
if ( $sidebar ) {
dynamic_sidebar( $sidebar );
}
?>
</div><!-- #sidebar-inner -->
<?php do_action( 'havoc_after_sidebar_inner' ); ?>
</aside><!-- #right-sidebar -->
<?php do_action( 'havoc_after_sidebar' ); ?>