SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | /** | |
3 | * The Template for displaying category archive. | |
4 | * | |
5 | * @package WordPress | |
6 | * @subpackage Twenty_Ten | |
7 | * @since Twenty Ten 1.0 | |
8 | */ | |
9 | ||
10 | get_header(); ?> | |
11 | ||
12 | <div id="container"> | |
13 | <div id="content" role="main"> | |
14 | ||
15 | <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> | |
16 | ||
17 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | |
18 | <h1 class="entry-title"><?php the_title(); ?></h1> | |
19 | ||
20 | <div class="entry-meta"> | |
21 | <?php twentyten_posted_on(); ?> | |
22 | </div><!-- .entry-meta --> | |
23 | ||
24 | <div class="entry-content"> | |
25 | <?php the_content(); ?> | |
26 | <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> | |
27 | </div><!-- .entry-content --> | |
28 | ||
29 | <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?> | |
30 | <div id="entry-author-info"> | |
31 | <div id="author-avatar"> | |
32 | <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?> | |
33 | </div><!-- #author-avatar --> | |
34 | <div id="author-description"> | |
35 | <h2><?php printf( esc_attr__( 'About %s', 'twentyten' ), get_the_author() ); ?></h2> | |
36 | <?php the_author_meta( 'description' ); ?> | |
37 | <div id="author-link"> | |
38 | <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"> | |
39 | <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentyten' ), get_the_author() ); ?> | |
40 | </a> | |
41 | </div><!-- #author-link --> | |
42 | </div><!-- #author-description --> | |
43 | </div><!-- #entry-author-info --> | |
44 | <?php endif; ?> | |
45 | ||
46 | <div class="entry-utility"> | |
47 | <?php twentyten_posted_in(); ?> | |
48 | <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> | |
49 | </div><!-- .entry-utility --> | |
50 | </div><!-- #post-## --> | |
51 | ||
52 | <?php comments_template( '', true ); ?> | |
53 | ||
54 | <?php endwhile; // end of the loop. ?> | |
55 | ||
56 | <?php if ( $wp_query->max_num_pages > 1 ) : ?> | |
57 | <div id="nav-below" class="navigation"> | |
58 | <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?> | |
59 | <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> | |
60 | <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> | |
61 | <?php } ?> | |
62 | </div><!-- #nav-below --> | |
63 | <?php endif; ?> | |
64 | </div><!-- #content --> | |
65 | </div><!-- #container --> | |
66 | ||
67 | <?php get_sidebar(); ?> | |
68 | <?php get_footer(); ?> |