-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
24 lines (20 loc) · 1.11 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
<div id="sidebar" class="clearfix">
<?php if(is_author()) : ?>
<div class="widgetBox sidebarBox author clearfix">
<h3><?php _e('Author Info', 'themetrust'); ?></h3>
<?php global $wp_query; $current_author = $wp_query->get_queried_object(); ?>
<?php echo get_avatar( $current_author->user_email, '80' ); ?>
<p><?php echo $current_author->description; ?></p>
</div>
<?php endif; ?>
<?php
if(is_archive() && is_active_sidebar('sidebar_posts')) : dynamic_sidebar('sidebar_posts');
elseif(is_home() && is_active_sidebar('sidebar_posts')) : dynamic_sidebar('sidebar_posts');
elseif(is_single() && is_active_sidebar('sidebar_posts')) : dynamic_sidebar('sidebar_posts');
elseif(is_page() && is_active_sidebar('sidebar_pages')) : dynamic_sidebar('sidebar_pages');
elseif(is_search() && is_active_sidebar('sidebar_posts')) : dynamic_sidebar('sidebar_pages');
elseif(is_front_page() && is_active_sidebar('sidebar_home')) : dynamic_sidebar('sidebar_home');
else : ?>
<?php if (!dynamic_sidebar('sidebar')) ;?>
<?php endif; ?>
</div><!-- end sidebar -->