forked from thedesignoffice/charrette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.php
34 lines (27 loc) · 914 Bytes
/
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
<li class="widget" id="classroom">
<h2 class="widgettitle">Classroom</h2>
<ul><li>
<?php
//displays all users with their avatar and their posts (titles)
$blogusers = get_users_of_blog();
if ($blogusers) {
foreach ($blogusers as $bloguser) {
$user = get_userdata($bloguser->user_id);
echo '<a href="?author=' . $user->ID . '"';
echo 'title="' . $user->nickname . '">';
echo get_avatar( $user->ID, 60 );
echo '</a>';
wp_reset_query(); // Restore global post data stomped by the_post().
}
}
?>
</li></ul>
</li>
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>
<li></li>
<?php endif; ?>
<li class="widget">
<h2 class="widgettitle">About</h2>
<p class="gray"><?php bloginfo( 'description' ); ?></p>
</li>