2009-11-23 07:10:48 +00:00
|
|
|
<?php get_header(); global $comicpress_options; ?>
|
2009-09-17 22:45:30 +00:00
|
|
|
<?php include(get_template_directory() . '/layout-head.php'); ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
|
|
|
<?php
|
|
|
|
if(get_query_var('author_name') ) {
|
|
|
|
// NOTE: 2.0 bug requires: get_userdatabylogin(get_the_author_login());
|
|
|
|
$curauth = get_userdatabylogin(get_query_var('author_name'));
|
|
|
|
} else {
|
|
|
|
$curauth = get_userdata(get_query_var('author'));
|
|
|
|
}
|
2009-09-03 01:12:30 +00:00
|
|
|
if (empty($curauth)) { ?>
|
2009-10-02 01:30:23 +00:00
|
|
|
<h2><?php _e('No such author.','comicpress'); ?></h2>
|
2009-09-03 01:12:30 +00:00
|
|
|
<?php } else { ?>
|
2009-09-19 10:11:37 +00:00
|
|
|
<div class="<?php comicpress_post_class(); ?>">
|
2009-09-03 01:12:30 +00:00
|
|
|
<div class="post-page-head"></div>
|
|
|
|
<div class="post-page">
|
|
|
|
<div class="userpage-avatar">
|
2009-11-02 12:23:41 +00:00
|
|
|
<?php echo str_replace("alt='", "alt='".wp_specialchars($curauth->display_name, 1)."' title='".wp_specialchars($curauth->display_name, 1), comicpress_get_avatar($curauth->user_email, 64)); ?>
|
2009-09-03 01:12:30 +00:00
|
|
|
</div>
|
|
|
|
<div class="userpage-info">
|
|
|
|
<div class="userpage-bio">
|
2009-11-04 12:28:14 +00:00
|
|
|
<?php
|
|
|
|
if($curauth->display_name)
|
|
|
|
$authorname = $curauth->display_name;
|
|
|
|
elseif($curauth->user_nickname)
|
|
|
|
$authorname = $curauth->nickname;
|
|
|
|
elseif($curauth->user_nicename)
|
|
|
|
$authorname = $curauth->user_nicename;
|
|
|
|
else
|
|
|
|
$authorname = $curauth->user_login;
|
|
|
|
?>
|
|
|
|
<cite><?php echo $authorname; ?></cite><br />
|
2009-10-02 01:30:23 +00:00
|
|
|
<?php _e('Registered on','comicpress'); ?> <?php echo date('l \\t\h\e jS \o\f M, Y',strtotime($curauth->user_registered)); ?><br />
|
2009-09-03 01:12:30 +00:00
|
|
|
<br />
|
2009-10-05 06:08:01 +00:00
|
|
|
<?php if (!empty($curauth->user_url)) { ?><?php _e('Website:','comicpress'); ?> <a href="<?php echo $curauth->user_url; ?>" target="_blank"><?php echo $curauth->user_url; ?></a><br /><?php } ?>
|
|
|
|
<?php if (!empty($curauth->aim)) { ?><?php _e('AIM:','comicpress'); ?> <a href="<?php echo $curauth->user_aim; ?>" target="_blank"><?php echo $curauth->aim; ?></a><br /><?php } ?>
|
|
|
|
<?php if (!empty($curauth->jabber)) { ?><?php _e('Jabber/Google Talk:','comicpress'); ?> <a href="<?php echo $curauth->jabber; ?>" target="_blank"><?php echo $curauth->jabber; ?></a><br /><?php } ?>
|
|
|
|
<?php if (!empty($curauth->yim)) { ?><?php _e('Yahoo IM:','comicpress'); ?> <a href="<?php echo $curauth->jabber; ?>" target="_blank"><?php echo $curauth->jabber; ?></a><br /><?php } ?>
|
2009-09-03 01:12:30 +00:00
|
|
|
</div>
|
|
|
|
<?php if (!empty($curauth->description)) { ?>
|
|
|
|
<div class="userpage-desc">
|
|
|
|
<?php echo $curauth->description; ?>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<div class="userpage-posts">
|
|
|
|
<?php if (have_posts()) { ?>
|
2009-11-04 12:28:14 +00:00
|
|
|
<h3><?php _e('Posts by','comicpress'); ?> <?php echo $authorname; ?> (<?php echo get_usernumposts($curauth->ID); ?>) ¬</h3>
|
2009-09-03 01:12:30 +00:00
|
|
|
<?php // this area is a loop that shows what posts the person has done. ?>
|
|
|
|
<ol>
|
|
|
|
<table class="month-table">
|
|
|
|
<?php while (have_posts()) : the_post() ?>
|
|
|
|
<tr><td class="archive-date" align="right"><?php the_time('M j, Y') ?></td><td class="archive-title"><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></td>
|
|
|
|
|
|
|
|
<?php endwhile; ?>
|
|
|
|
</table>
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
<?php comicpress_pagination(); ?>
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
2009-08-21 19:29:45 +00:00
|
|
|
</div>
|
2009-09-03 01:12:30 +00:00
|
|
|
<div class="post-page-foot"></div>
|
2009-09-12 15:28:32 +00:00
|
|
|
</div>
|
2009-09-03 01:12:30 +00:00
|
|
|
<?php } ?>
|
2009-08-21 19:29:45 +00:00
|
|
|
|
2009-09-17 22:45:30 +00:00
|
|
|
<?php include(get_template_directory() . '/layout-foot.php'); ?>
|
2009-08-21 17:45:23 +00:00
|
|
|
<?php get_footer() ?>
|