File: /home/mmickelson/martyknows.com/wp-content/themes/fusion/author.php
<?php
/**
* @package WordPress
* @subpackage Fusion
*/
?>
<?php get_header(); ?>
<?php
global $post;
$author_id=$post->post_author;
?>
<div id="mid-content">
<h1><?php the_author_meta( 'display_name', $author_id ); ?></h1>
<div class="profile">
<div class="avatar left"><?php echo get_avatar( get_the_author_meta( 'email', $author_id ), '128' ); ?></div>
<div class="info">
<?php
$description = get_the_author_meta( 'description', $author_id );
if ( empty( $description ) )
$description = __( "This user hasn't shared any biographical information", "fusion" );
echo '<p>' . $description . '</p>';
$url = get_the_author_meta( 'url', $author_id );
if ( ! empty( $url ) && 'http://' != $url )
echo '<p class="im">' . __( 'Homepage:', 'fusion' ).' <a href="' . esc_url( $url ) . '">' . esc_html( $url ) . '</a></p>';
$yim = get_the_author_meta( 'yim', $author_id );
if ( ! empty( $yim ) )
echo '<p class="im">' . __( 'Yahoo Messenger:', 'fusion' ) . ' <a class="im_yahoo" href="' . esc_attr( 'ymsgr:sendIM?' . $yim ) . '">' . esc_html( $yim ) . '</a></p>';
$jabber = get_the_author_meta( 'jabber', $author_id );
if ( ! empty( $jabber ) )
echo '<p class="im">' . __( 'Jabber/GTalk:', 'fusion' ) . ' <a class="im_jabber" href="' . esc_attr( 'gtalk:chat?jid=' . $jabber ) . '">' . esc_html( $jabber ) . '</a></p>';
$aim = get_the_author_meta( 'aim', $author_id );
if ( ! empty( $aim ) )
echo '<p class="im">' . __( 'AIM:', 'fusion' ) . ' <a class="im_aim" href="' . esc_attr( 'aim:goIM?screenname=' . $aim ) . '">' . esc_html( $aim ) . '</a></p>';
?>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<?php if ( have_posts() ): ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h3 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'fusion' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a></h3>
<div class="postheader">
<div class="postinfo">
<p><?php printf( __( 'Posted in %s on %s', 'fusion' ), get_the_category_list( ', ' ), get_the_time( get_option( 'date_format' ) ) ); ?> <?php edit_post_link( __( 'Edit', 'fusion' ), '| ', '' ); ?></p>
</div>
</div>
<div class="postbody entry clearfix">
<?php fusion_current_post_length(); ?>
<?php wp_link_pages( array( 'before' => '<p class="postpages"><strong>Pages: </strong> ', 'after' => '</p>', 'next_or_number' => 'number' ) ); ?>
</div>
<?php
$posttags = get_the_tags();
if ($posttags) { ?>
<p class="tags"><?php the_tags( '' ); ?></p>
<?php } ?>
<p class="postcontrols">
<?php
global $id, $comment;
$number = get_comments_number( $id );
?>
<a class="<?php if ( $number < 1 ) { echo 'no '; }?>comments" href="<?php comments_link(); ?>"><?php comments_number( __( 'Leave a Comment', 'fusion' ), __( '1 Comment', 'fusion' ), __( '% Comments', 'fusion' ) ); ?></a>
</p>
<div class="clear"></div>
</div>
<?php endwhile; ?>
<div class="navigation" id="pagenavi">
<div class="alignleft"><?php next_posts_link( __( '« Older Entries', 'fusion' ) ); ?></div>
<div class="alignright"><?php previous_posts_link( __( 'Newer Entries »', 'fusion' ) ); ?></div>
<div class="clear"></div>
</div>
<?php else : ?>
<p class="error"><?php _e( 'No posts found by this author.', 'fusion' ); ?></p>
<?php endif; ?>
</div>
<!-- /mid content -->
</div>
<!-- /mid -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>