-
Notifications
You must be signed in to change notification settings - Fork 2
/
sidebar.php
32 lines (28 loc) · 1.2 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
<?php
/**
* The Right sidebar widget area.
*
* @package ThemeGrill
* @subpackage Himalayas
* @since Himalayas 1.0
*/
?>
<div id="secondary">
<?php do_action( 'himalayas_before_sidebar' ); ?>
<?php if ( ! dynamic_sidebar( 'himalayas_right_sidebar' ) ) :
the_widget( 'WP_Widget_Text',
array(
'title' => __( 'Example Widget', 'himalayas' ),
'text' => sprintf( __( 'This is an example widget to show how the Right Sidebar looks by default. You can add custom widgets from the %swidgets screen%s in the admin. If custom widgets are added then this will be replaced by those widgets.', 'himalayas' ), current_user_can( 'edit_theme_options' ) ? '<a href="' . admin_url( 'widgets.php' ) . '">' : '', current_user_can( 'edit_theme_options' ) ? '</a>' : '' ),
'filter' => true,
),
array(
'before_widget' => '<aside class="widget widget_text clearfix">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title"><span>',
'after_title' => '</span></h3>'
)
);
endif; ?>
<?php do_action( 'himalayas_after_sidebar' ); ?>
</div>