Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (40 sloc) 1.76 KB
<?php
/**
* The loop that displays a single post.
*
* @package WordPress
* @subpackage Starkers
* @since Starkers HTML5 3.2
*/
?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<nav>
<?php previous_post_link( '%link', '' . _x( '&larr;', 'Previous post link', 'starkers' ) . ' %title' ); ?>
<?php next_post_link( '%link', '%title ' . _x( '&rarr;', 'Next post link', 'starkers' ) . '' ); ?>
</nav>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<h1><?php the_title(); ?></h1>
<?php starkers_posted_on(); ?>
</header>
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<nav>' . __( 'Pages:', 'starkers' ), 'after' => '</nav>' ) ); ?>
<?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'starkers_author_bio_avatar_size', 60 ) ); ?>
<h2><?php printf( esc_attr__( 'About %s', 'starkers' ), get_the_author() ); ?></h2>
<?php the_author_meta( 'description' ); ?>
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
<?php printf( __( 'View all posts by %s &rarr;', 'starkers' ), get_the_author() ); ?>
</a>
<?php endif; ?>
<footer>
<?php starkers_posted_in(); ?>
<?php edit_post_link( __( 'Edit', 'starkers' ), '', '' ); ?>
</footer>
</article>
<nav>
<?php previous_post_link( '%link', '' . _x( '&larr;', 'Previous post link', 'starkers' ) . ' %title' ); ?>
<?php next_post_link( '%link', '%title ' . _x( '&rarr;', 'Next post link', 'starkers' ) . '' ); ?>
</nav>
<?php comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
Jump to Line
Something went wrong with that request. Please try again.