Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<?php get_header(); ?>
<div class="row" id="primary">
<div class="span9 posts">
<?php if ( have_posts() ) : ?>
<?php
/* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
*
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
the_post();
?>
<header class="archive-header content">
<h2 class="archive-title"><?php printf( __( 'Author Archives: %s', '' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h2>
</header><!-- .archive-header -->
<?php
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();
?>
<?php
// If a user has filled out their description, show a bio on their entries.
if ( get_the_author_meta( 'description' ) ) : ?>
<div class="author-info content">
<div class="author-description">
<h2><?php printf( __( 'About %s', '' ), get_the_author() ); ?></h2>
<p><?php the_author_meta( 'description' ); ?></p>
</div><!-- .author-description -->
</div><!-- .author-info -->
<?php endif; ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="post content clearfix">
<div class="post-header">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="post-content">
<?php the_content(); ?>
</div>
<div class="post-meta">
<?php the_date( 'F j, Y', '<span class="post-date"><i class="icon-calendar"></i>', '</span>' ); ?>
<span class="post-author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><i class="icon-user"></i><?php the_author_meta( 'display_name' ); ?></a></span>
<?php
// PHP Request: If the_tags is empty, do not generate the HTML. I don't want the labels and markup making empty space when there are no tags.
the_tags( '<span class="post-tags"><i class="icon-tags"></i>', ', ', '</span>' );
?>
<?php comments_number( '', '<span class="post-comments"><i class="icon-comment"></i>1</span>', '<span class="post-comments"><i class="icon-comment"></i>%</span>' ); ?>
</div>
</div>
<?php endwhile; ?>
<div class="navigation clearfix">
<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
</div>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div>
<div class="span3">
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>