forked from stephanie-walter/inpixel_blank_responsive_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.php
40 lines (32 loc) · 1.14 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
33
34
35
36
37
38
39
40
<?php
?>
<?php
/* Change the sidebar position given to specific layout **/
if (is_page_template('left-sidebar-page.php')){ ?>
<div id="secondary" class="widget-area sidebar mod left w30">
<?php }
else { ?>
<div id="secondary" class="widget-area sidebar content mod item">
<?php }
/* now comes the sidebar **/
?>
<?php if ( ! dynamic_sidebar( 'sidebar' ) ) : ?>
<aside id="search" class="widget widget_search" role="complementary">
<?php get_search_form(); ?>
</aside>
<aside id="archives" class="widget" role="complementary">
<h2 class="widget-title"><?php _e( 'Archives', 'themename' ); ?></h2>
<ul>
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
</ul>
</aside>
<aside id="meta" class="widget" role="complementary">
<h2 class="widget-title"><?php _e( 'Meta', 'themename' ); ?></h2>
<ul>
<?php wp_register(); ?>
<aside role="complementary"><?php wp_loginout(); ?></aside>
<?php wp_meta(); ?>
</ul>
</aside>
<?php endif; // end sidebar widget area ?>
</div><!-- #secondary .widget-area -->