Changeset 13025 for trunk/wp-content/themes/twentyten/archive.php
- Timestamp:
- 02/08/2010 06:02:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/archive.php
r13012 r13025 1 1 <?php get_header(); ?> 2 3 <div id="container"> 2 3 <div id="container"> 4 4 <div id="content"> 5 6 <?php the_post(); ?> 7 5 6 <?php the_post(); ?> 7 8 8 <?php if ( is_day() ) : ?> 9 9 <h1 class="page-title"><?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_time(get_option('date_format')) ) ?></h1> … … 17 17 18 18 <?php rewind_posts(); ?> 19 19 20 20 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 21 21 <div id="nav-above" class="navigation"> … … 23 23 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div> 24 24 </div><!-- #nav-above --> 25 <?php } ?> 25 <?php } ?> 26 26 27 27 <?php while ( have_posts() ) : the_post(); ?> … … 35 35 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> 36 36 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 37 <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> 37 <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> 38 38 </div><!-- .entry-meta --> 39 39 40 <div class="entry-summary"> 40 <div class="entry-summary"> 41 41 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 42 42 </div><!-- .entry-summary --> … … 48 48 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span> 49 49 <?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" ) ?> 50 </div><!-- #entry-utility --> 50 </div><!-- #entry-utility --> 51 51 </div><!-- #post-<?php the_ID(); ?> --> 52 52 53 <?php endwhile; ?> 53 <?php endwhile; ?> 54 54 55 55 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> … … 58 58 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div> 59 59 </div><!-- #nav-below --> 60 <?php } ?> 61 62 </div><!-- #content --> 60 <?php } ?> 61 62 </div><!-- #content --> 63 63 </div><!-- #container --> 64 65 <?php get_sidebar(); ?> 64 65 <?php get_sidebar(); ?> 66 66 <?php get_footer(); ?>
Note: See TracChangeset
for help on using the changeset viewer.