-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
45 lines (36 loc) · 1.82 KB
/
single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* The Template for displaying all single posts.
*
* @package WordPress
* @subpackage Starkers
* @since Starkers 3.0
*/
get_header(); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php previous_post_link( '%link', '' . _x( '←', 'Previous post link', 'twentyten' ) . ' %title' ); ?>
<?php next_post_link( '%link', '%title ' . _x( '→', 'Next post link', 'twentyten' ) . '' ); ?>
<article>
<h1><?php the_title(); ?></h1>
<details><?php twentyten_posted_on(); ?></details>
<section class="content"><?php the_content(); ?></section>
<footer class="article">
<?php wp_link_pages( array( 'before' => '' . __( 'Pages:', 'twentyten' ), 'after' => '' ) ); ?>
<?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( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
<h2><?php printf( esc_attr__( 'About %s', 'twentyten' ), 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 →', 'twentyten' ), get_the_author() ); ?>
</a>
<?php endif; ?>
<?php twentyten_posted_in(); ?>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '', '' ); ?>
<?php previous_post_link( '%link', '' . _x( '←', 'Previous post link', 'twentyten' ) . ' %title' ); ?>
<?php next_post_link( '%link', '%title ' . _x( '→', 'Next post link', 'twentyten' ) . '' ); ?>
</footer>
<?php comments_template( '', true ); ?>
</article>
<?php endwhile; // end of the loop. ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>