-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.php
More file actions
executable file
·28 lines (28 loc) · 875 Bytes
/
sidebar.php
File metadata and controls
executable file
·28 lines (28 loc) · 875 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
<?php
/**
* The Sidebar containing the primary and secondary widget areas.
*
* @subpackage journalism
* @since journalism
*/
?>
<aside id="sidebar">
<?php if ( is_active_sidebar( 'sidebar-1' ) ) :
dynamic_sidebar( 'sidebar-1' );
else :
$args = array(
'before_widget' => '<div class="widget %s">',
'after_widget' => '</div>',
'before_title' => '<h5 class="widgettitle">',
'after_title' => '</h5>',
);
$instance = array();
the_widget( 'WP_Widget_Search', $instance, $args );
the_widget( 'WP_Widget_Recent_Posts', $instance, $args );
the_widget( 'WP_Widget_Recent_Comments', $instance, $args );
the_widget( 'WP_Widget_Archives', $instance, $args );
the_widget( 'WP_Widget_Categories', $instance, $args ); ?>
<?php endif; ?>
<div class="clear"></div>
</aside><!-- #sidebar -->
<div class="clear"></div>