-
Notifications
You must be signed in to change notification settings - Fork 0
/
person.php
51 lines (47 loc) · 2.36 KB
/
person.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
41
42
43
44
45
46
47
48
49
50
51
<?php get_header(); ?>
<?php
$post = get_post(get_option('warp_userprofile_page'));
subbar($post);
?>
<div id="content" class="narrowcolumn warp-span-6">
<?php
global $userdata;
if (current_user_can('edit_users')): ?>
<div style='float: right' class="profileback">
<a href="<?php echo get_bloginfo('wpurl') . '/wp-admin/user-edit.php?user_id=' . $user->ID ?>"><?php _e( 'Edit profile', 'warp_userprofile' ); ?></a>
</div>
<?php elseif ($userdata->ID == $user->ID): ?>
<div style='float: right' class="profileback">
<a href="<?php echo get_bloginfo('wpurl') . '/wp-admin/profile.php' ?>"><?php _e( 'Edit profile', 'warp_userprofile' ); ?></a>
</div>
<?php endif; ?>
<div class="profile">
<div class="avatar"><?php echo Warp_Userprofile::avatar_for($user); ?></div>
<h2 class='name'><?php echo $user->display_name; ?></h2>
<h3 class='title'><?php echo get_usermeta($user->ID, 'warp_up_title'); ?></h3>
<div class="bio">
<?php echo apply_filters( 'the_content', $user->description ); ?>
</div>
<dl class="contact_info">
<dt class="email"><?php _e( 'Email', 'warp_userprofile') ?></dt>
<dd class="email"><a href="mailto:<?php echo Warp_Userprofile::parse_email($user->user_email); ?>"><?php echo Warp_Userprofile::parse_email($user->user_email); ?></a></dd>
<?php if (!empty($user->user_url) && ($user->user_url != "http://")): ?>
<dt class="website"><?php _e( 'Website', 'warp_userprofile' ); ?></dt>
<dd class="website"><a href="<?php echo $user->user_url ?>"><?php echo $user->user_url ?></a></dd>
<?php endif; ?>
<?php if ($aim = get_usermeta($user->ID, 'aim')): ?>
<dt class="aim"><?php _e( 'AIM', 'warp_userprofile' ); ?></dt>
<dd class="aim"><a href="aim:goim?screenname=<?php echo $aim ?>"><?php echo $aim ?></a></dd>
<?php endif; ?>
<?php if ($yim = get_usermeta($user->ID, 'yim')): ?>
<dt class="yim"><?php _e( 'Yahoo Messenger', 'warp_userprofile' ); ?></dt>
<dd class="yim"><a href="ymsgr:sendim?<?php echo $yim ?>"><?php echo $yim ?></a></dd>
<?php endif; ?>
<?php if ($jabber = get_usermeta($user->ID, 'jabber')): ?>
<dt class="jabber"><?php _e( 'Jabber/GTalk', 'warp_userprofile' ); ?></dt>
<dd class="jabber"><a href="jabber:<?php echo $jabber ?>"><?php echo $jabber ?></a></dd>
<?php endif; ?>
</dl>
</div>
</div>
<?php get_footer(); ?>