forked from rtCamp/rtpanel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
35 lines (29 loc) · 1015 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
35
<?php
/**
* The template for displaying Sidebar
*
* @package rtPanel
*
* @since rtPanel 2.0
*/
$sidebar_id = rtp_get_sidebar_id();
$class_name = '';
$rtp_sidebar_grid_class = apply_filters( 'rtp_set_sidebar_grid_class', 'large-4 columns' );
if ( $sidebar_id === 'buddypress-sidebar-widgets' ) {
$class_name = ' rtp-buddypress-sidebar';
}
else if ( $sidebar_id === 'bbpress-sidebar-widgets' ) {
$class_name = ' rtp-bbpress-sidebar';
} ?>
<!-- #sidebar -->
<aside id="sidebar" class="rtp-sidebar-section<?php echo esc_attr( $class_name ); echo ( ! empty( $rtp_sidebar_grid_class ) ) ? ' '.$rtp_sidebar_grid_class : $rtp_sidebar_grid_class; ?>" role="complementary">
<div class="rtp-sidebar-inner-wrapper">
<?php rtp_hook_begin_sidebar(); ?>
<?php
if ( ! ( $sidebar_id && dynamic_sidebar( $sidebar_id ) ) ) {
// Default Widgets Content
rtp_hook_sidebar_content();
} ?>
<?php rtp_hook_end_sidebar(); ?>
</div>
</aside>