Changeset 13025 for trunk/wp-content/themes/twentyten/category.php
- Timestamp:
- 02/08/2010 06:02:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/category.php
r13012 r13025 1 1 2 2 <?php get_header(); ?> 3 4 <div id="container"> 3 4 <div id="container"> 5 5 <div id="content"> 6 7 <?php the_post(); ?> 8 6 7 <?php the_post(); ?> 8 9 9 <h1 class="page-title"><?php _e( 'Category Archives:', 'twentyten' ) ?> <span><?php single_cat_title() ?></span></span></h1> 10 10 <?php $categorydesc = category_description(); if ( !empty($categorydesc) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?> 11 11 12 12 <?php rewind_posts(); ?> 13 13 14 14 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 15 15 <div id="nav-above" class="navigation"> … … 17 17 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div> 18 18 </div><!-- #nav-above --> 19 <?php } ?> 19 <?php } ?> 20 20 21 21 <?php while ( have_posts() ) : the_post(); ?> … … 29 29 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a> 30 30 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 31 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 31 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 32 32 </div><!-- .entry-meta --> 33 34 <div class="entry-summary"> 33 34 <div class="entry-summary"> 35 35 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 36 36 </div><!-- .entry-summary --> 37 37 38 38 <div class="entry-utility"> 39 39 <?php if ( $cats_meow = cats_meow(', ') ) : // Returns categories other than the one queried ?> … … 44 44 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span> 45 45 <?php edit_post_link( __( 'Edit', 'twentyten' ), "<span class=\"meta-sep\">|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", "</span>\n\t\t\t\t\t\n" ) ?> 46 </div><!-- #entry-utility --> 46 </div><!-- #entry-utility --> 47 47 </div><!-- #post-<?php the_ID(); ?> --> 48 48 49 <?php endwhile; ?> 49 <?php endwhile; ?> 50 50 51 51 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> … … 54 54 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div> 55 55 </div><!-- #nav-below --> 56 <?php } ?> 57 58 </div><!-- #content --> 56 <?php } ?> 57 58 </div><!-- #content --> 59 59 </div><!-- #container --> 60 61 <?php get_sidebar(); ?> 60 61 <?php get_sidebar(); ?> 62 62 <?php get_footer(); ?>
Note: See TracChangeset
for help on using the changeset viewer.