forked from oceanwp/oceanwp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.php
More file actions
executable file
·32 lines (22 loc) · 763 Bytes
/
sidebar.php
File metadata and controls
executable file
·32 lines (22 loc) · 763 Bytes
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
<?php
/**
* The sidebar containing the main widget area.
*
* @package OceanWP WordPress theme
*/
// Retunr if full width or full screen
if ( in_array( oceanwp_post_layout(), array( 'full-screen', 'full-width' ) ) ) {
return;
} ?>
<?php do_action( 'ocean_before_sidebar' ); ?>
<aside id="right-sidebar" class="sidebar-container widget-area sidebar-primary"<?php oceanwp_schema_markup( 'sidebar' ); ?>>
<?php do_action( 'ocean_before_sidebar_inner' ); ?>
<div id="right-sidebar-inner" class="clr">
<?php
if ( $sidebar = oceanwp_get_sidebar() ) {
dynamic_sidebar( $sidebar );
} ?>
</div><!-- #sidebar-inner -->
<?php do_action( 'ocean_after_sidebar_inner' ); ?>
</aside><!-- #right-sidebar -->
<?php do_action( 'ocean_after_sidebar' ); ?>