Changeset 13141 for trunk/wp-content/themes/twentyten/author.php
- Timestamp:
- 02/14/2010 07:13:34 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/author.php
r13128 r13141 6 6 <?php the_post(); ?> 7 7 8 <h1 class="page-title author"><?php printf( __( 'Author Archives: <span class="vcard">%s</span>', 'twentyten' ), "<a class='url fn n' href='$authordata->user_url' title='" . esc_attr( $authordata->display_name) . "' rel='me'>" . esc_html($authordata->display_name) . "</a>" ); ?></h1>8 <h1 class="page-title author"><?php printf( __( 'Author Archives: <span class="vcard">%s</span>', 'twentyten' ), "<a class='url fn n' href='$authordata->user_url' title='" . esc_attr(get_the_author()) . "' rel='me'>" . get_the_author() . "</a>" ); ?></h1> 9 9 10 10 <?php if ( get_the_author_meta('description') ) : // If a user has filled out their decscription show a bio on their entries ?> … … 14 14 </div><!-- #author-avatar --> 15 15 <div id="author-description"> 16 <h2><?php _e('About ', 'twentyten'); ?><?php the_author(); ?></h2>16 <h2><?php printf(__('About %s', 'twentyten'), get_the_author()); ?></h2> 17 17 <?php the_author_meta('description'); ?> 18 18 </div><!-- #author-description --> … … 22 22 <?php rewind_posts(); ?> 23 23 24 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 25 <div id="nav-above" class="navigation"> 26 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 27 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 28 </div><!-- #nav-above --> 29 <?php } ?> 30 31 <?php while ( have_posts() ) : the_post(); ?> 32 33 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 34 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> 35 36 <div class="entry-meta"> 37 <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span> 38 <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 39 </div><!-- .entry-meta --> 40 41 <div class="entry-summary"> 42 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 43 </div><!-- .entry-summary --> 44 45 <div class="entry-utility"> 46 <span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Posted in ', 'twentyten' ); ?></span><?php echo get_the_category_list( ', ' ); ?></span> 47 <span class="meta-sep"> | </span> 48 <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __('Tagged ', 'twentyten' ) . '</span>', ", ", "</span>\n\t\t\t\t\t\t<span class=\"meta-sep\">|</span>\n" ); ?> 49 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 50 <?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" ); ?> 51 </div><!-- #entry-utility --> 52 </div><!-- #post-<?php the_ID(); ?> --> 53 54 <?php endwhile; ?> 55 56 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 57 <div id="nav-below" class="navigation"> 58 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 59 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 60 </div><!-- #nav-below --> 61 <?php } ?> 24 <?php include 'loop.php'; ?> 62 25 63 26 </div><!-- #content -->
Note: See TracChangeset
for help on using the changeset viewer.