Advertisement
Guest User

Untitled

a guest
Jun 13th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. <?php get_header();
  2.  
  3. $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
  4. if( !is_paged() ) :?>
  5. <div <?php post_class(); ?>>
  6. <h1><?php printf( __ ('About %1$s', 'advisor'), $curauth->display_name );?></h1>
  7.  
  8. <?php if( $curauth->user_description !='' ) :?>
  9. <h2><?php _e('Biography', 'advisor');?></h2>
  10. <?php echo $curauth->user_description; ?>
  11. <?php endif;?>
  12.  
  13. <?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">';?>
  14.  
  15. <?php if( $curauth->user_url !='' ) :?>
  16. <li class="website"><?php _e('Website: ', 'advisor');?>
  17. <a href="<?php echo $curauth->user_url;?>"><?php echo $curauth->user_url;?></a></li>
  18. <?php endif;?>
  19.  
  20. <?php if( get_the_author_meta('jabber', $curauth->ID) != '') :?>
  21. <li class="jabber"><?php _e('Jabber / Google Talk: ', 'advisor');?><?php the_author_meta('jabber', $curauth->ID);?></li>
  22. <?php endif;?>
  23.  
  24. <?php if( get_the_author_meta('aim', $curauth->ID) != '') :?>
  25. <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>
  26. <?php endif;?>
  27.  
  28. <?php if( get_the_author_meta('yim', $curauth->ID) != '') :?>
  29. <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>
  30. <?php endif;?>
  31.  
  32. <?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>';?>
  33.  
  34. </div>
  35.  
  36. <?php endif;?>
  37.  
  38. <h1 class="posts-by"><?php _e('Posts by', 'advisor');?> <?php echo $curauth->display_name; ?></h1>
  39.  
  40. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  41. <div <?php post_class(); ?>>
  42. <?php get_template_part( 'format', get_post_format() );?>
  43. </div>
  44. <?php endwhile; ?>
  45.  
  46. <ul class="prevnext">
  47. <li class="next"><?php next_posts_link(__('Older Posts', 'advisor') ); ?></li>
  48. <li class="prev"><?php previous_posts_link(__('Newer Posts', 'advisor') );?></li>
  49. </ul>
  50. <?php endif;
  51.  
  52. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement