forked from rtCamp/rtpanel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
executable file
·28 lines (24 loc) · 1.29 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
<?php
/**
* The template for displaying Sidebar
*
* @package rtPanel
*
* @since rtPanel 2.0
*/
$sidebar_id = rtp_get_sidebar_id();
$class_name = "";
if ( $sidebar_id === "buddypress-sidebar-widgets" )
$class_name = " rtp-buddypress-sidebar";
else if ( $sidebar_id === "bbpress-sidebar-widgets" )
$class_name = " rtp-bbpress-sidebar"; ?>
<aside id="sidebar" class="rtp-grid-4<?php echo $class_name; ?>" role="complementary">
<?php rtp_hook_begin_sidebar(); ?>
<?php // Default Widgets ( Fallback )
if ( !($sidebar_id && dynamic_sidebar( $sidebar_id )) ) { ?>
<div class="widget sidebar-widget"><h3 class="widgettitle"><?php _e( 'Search', 'rtPanel' ); ?></h3><?php get_search_form(); ?></div>
<div class="widget sidebar-widget"><h3 class="widgettitle"><?php _e( 'Archives', 'rtPanel' ); ?></h3><ul><?php wp_get_archives( array( 'type' => 'monthly' ) ); ?></ul></div>
<div class="widget sidebar-widget"><h3 class="widgettitle"><?php _e( 'Meta', 'rtPanel' ); ?></h3><ul><?php wp_register(); ?><li><?php wp_loginout(); ?></li><?php wp_meta(); ?></ul></div><?php
} ?>
<?php rtp_hook_end_sidebar(); ?>
</aside><!-- #sidebar -->