Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header();
- $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
- if( !is_paged() ) :?>
- <div <?php post_class(); ?>>
- <h1><?php printf( __ ('About %1$s', 'advisor'), $curauth->display_name );?></h1>
- <?php if( $curauth->user_description !='' ) :?>
- <h2><?php _e('Biography', 'advisor');?></h2>
- <?php echo $curauth->user_description; ?>
- <?php endif;?>
- <?php if( $curauth->user_url !='' || get_the_author_meta('jabber', $curauth->ID) != '' || get_the_author_meta('aim', $curauth->ID) != '' || get_the_author_meta('yim', $curauth->ID) != '') echo '<ul class="author-meta">';?>
- <?php if( $curauth->user_url !='' ) :?>
- <li class="website"><?php _e('Website: ', 'advisor');?>
- <a href="<?php echo $curauth->user_url;?>"><?php echo $curauth->user_url;?></a></li>
- <?php endif;?>
- <?php if( get_the_author_meta('jabber', $curauth->ID) != '') :?>
- <li class="jabber"><?php _e('Jabber / Google Talk: ', 'advisor');?><?php the_author_meta('jabber', $curauth->ID);?></li>
- <?php endif;?>
- <?php if( get_the_author_meta('aim', $curauth->ID) != '') :?>
- <li class="aim"><?php printf( __('<abbr title="%1$s">%2$s</abbr>: ', 'advisor') , __('AOL Instant Messenger', 'advisor'), __('AIM', 'advisor'));?><?php the_author_meta('aim', $curauth->ID);?></li>
- <?php endif;?>
- <?php if( get_the_author_meta('yim', $curauth->ID) != '') :?>
- <li class="yim"><?php printf( __('%1$s <abbr title="%2$s">%3$s</abbr>: ', 'advisor') , __('Yahoo', 'advisor'), __('Instant Messenger', 'advisor'), __('IM', 'advisor'));?><?php the_author_meta('yim', $curauth->ID);?></li>
- <?php endif;?>
- <?php if( $curauth->user_url !='' || get_the_author_meta('jabber', $curauth->ID) != '' || get_the_author_meta('aim', $curauth->ID) != '' || get_the_author_meta('yim', $curauth->ID) != '') echo '</ul>';?>
- </div>
- <?php endif;?>
- <h1 class="posts-by"><?php _e('Posts by', 'advisor');?> <?php echo $curauth->display_name; ?></h1>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div <?php post_class(); ?>>
- <?php get_template_part( 'format', get_post_format() );?>
- </div>
- <?php endwhile; ?>
- <ul class="prevnext">
- <li class="next"><?php next_posts_link(__('Older Posts', 'advisor') ); ?></li>
- <li class="prev"><?php previous_posts_link(__('Newer Posts', 'advisor') );?></li>
- </ul>
- <?php endif;
- get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement