public
Description: Shows a directory of authors and their personal info
Homepage: http://wordpress.org/extend/plugins/warp-user-profile-extension/
Clone URL: git://github.com/koke/warp-userprofile.git
Click here to lend your support to: warp-userprofile and make a donation at www.pledgie.com !
warp-userprofile / people.php
100644 36 lines (31 sloc) 0.994 kb
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
<?php get_header(); ?>
 
<?php
  $post = get_post(get_option('warp_userprofile_page'));
  subbar($post);
?>
 
<div id="content" class="narrowcolumn warp-span-10 warp-last">
<h2><?php echo get_the_title(get_option('warp_userprofile_page')); ?></h2>
<?php
echo get_query_var('person');
$users = Warp_Userprofile::get_users_of_blog();
$class = "even";
foreach ($users as $user) {
if (get_usermeta($user->user_id, 'warp_up_public') == 1):
if ($class == "even") {
$class = "odd";
} else {
$class = "even";
}
// var_dump($user);
?>
<div class="profile <?php echo $class; ?>">
<div class="avatar"><?php echo Warp_Userprofile::avatar_for($user); ?></div>
<h3 class='name'><a href="<?php echo Warp_Userprofile::permalink() . $user->user_login; ?>"><?php echo $user->display_name; ?></a></h3>
<h4 class='title'><?php echo get_usermeta($user->user_id, 'warp_up_title'); ?></h4>
</div>
<?php
endif;
}
?>
 
</div>
 
<?php get_footer(); ?>