Changeset 13128
- Timestamp:
- 02/14/2010 01:00:22 AM (15 years ago)
- Location:
- trunk/wp-content/themes/twentyten
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/404.php
r13025 r13128 5 5 6 6 <div id="post-0" class="post error404 not-found"> 7 <h1 class="entry-title"> Not Found</h1>7 <h1 class="entry-title"><?php _e( 'Not Found', 'twentyten' ); ?></h1> 8 8 <div class="entry-content"> 9 <p> Apologies, but the page you requested could not be found. Perhaps searching will help.</p>9 <p><?php _e( 'Apologies, but the page you requested could not be found. Perhaps searching will help.', 'twentyten' ); ?></p> 10 10 <?php get_search_form(); ?> 11 11 </div><!-- .entry-content --> -
trunk/wp-content/themes/twentyten/archive.php
r13111 r13128 7 7 8 8 <?php if ( is_day() ) : ?> 9 <h1 class="page-title"><?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ) ?></h1>9 <h1 class="page-title"><?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?></h1> 10 10 <?php elseif ( is_month() ) : ?> 11 <h1 class="page-title"><?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date('F Y') ) ?></h1>11 <h1 class="page-title"><?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date('F Y') ); ?></h1> 12 12 <?php elseif ( is_year() ) : ?> 13 <h1 class="page-title"><?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date('Y') ) ?></h1>13 <h1 class="page-title"><?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date('Y') ); ?></h1> 14 14 <?php elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) : ?> 15 <h1 class="page-title"><?php _e( 'Blog Archives', 'twentyten' ) ?></h1>15 <h1 class="page-title"><?php _e( 'Blog Archives', 'twentyten' ); ?></h1> 16 16 <?php endif; ?> 17 17 … … 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"> 22 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div>23 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div>22 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 23 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 24 24 </div><!-- #nav-above --> 25 25 <?php } ?> … … 32 32 <div class="entry-meta"> 33 33 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 34 <a href="<?php 35 the_permalink(); ?>" title="<?php echo esc_attr( get_the_time('Y-m-d\TH:i:sO') ); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 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( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 34 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( get_the_time() ); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 35 <span class="meta-sep"><?php _e(' by ', 'twentyten'); ?></span> 36 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> 38 37 </div><!-- .entry-meta --> 39 38 … … 44 43 <div class="entry-utility"> 45 44 <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> 46 <span class="meta-sep"> |</span>47 <?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" ) ?>48 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>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" ) ?>45 <span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span> 46 <?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" ); ?> 47 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 48 <?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 49 </div><!-- #entry-utility --> 51 50 </div><!-- #post-<?php the_ID(); ?> --> … … 55 54 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 56 55 <div id="nav-below" class="navigation"> 57 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div>58 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div>56 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 57 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 59 58 </div><!-- #nav-below --> 60 59 <?php } ?> -
trunk/wp-content/themes/twentyten/attachment.php
r13111 r13128 6 6 <?php the_post(); ?> 7 7 8 <p class="page-title"><a href="<?php echo get_permalink($post->post_parent) ?>" title="<?php printf( esc_attr__( 'Return to %s', 'twentyten' ), esc_html( get_the_title($post->post_parent), 1 ) ) ?>" rel="gallery">← <?php echo get_the_title($post->post_parent)?></a></p>8 <p class="page-title"><a href="<?php echo get_permalink($post->post_parent); ?>" title="<?php printf( esc_attr__( 'Return to %s', 'twentyten' ), esc_html( get_the_title($post->post_parent), 1 ) ); ?>" rel="gallery">← <?php echo get_the_title($post->post_parent); ?></a></p> 9 9 10 10 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> … … 12 12 13 13 <div class="entry-meta"> 14 <span class="meta-prep meta-prep-author"><?php _e( 'By ', 'twentyten'); ?></span>14 <span class="meta-prep meta-prep-author"><?php _e( 'By ', 'twentyten' ); ?></span> 15 15 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 16 <span class="meta-sep"> |</span>17 <span class="meta-prep meta-prep-entry-date"><?php _e( 'Published ', 'twentyten'); ?></span>18 <span class="entry-date"><abbr class="published" title="<?php the_time( 'Y-m-d\TH:i:sO') ?>"><?php echo get_the_date(); ?></abbr></span>19 <?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" ) ?>16 <span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span> 17 <span class="meta-prep meta-prep-entry-date"><?php _e( 'Published ', 'twentyten' ); ?></span> 18 <span class="entry-date"><abbr class="published" title="<?php the_time() ?>"><?php echo get_the_date(); ?></abbr></span> 19 <?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" ); ?> 20 20 </div><!-- .entry-meta --> 21 21 … … 33 33 </div><!-- #nav-below --> 34 34 <?php else : ?> 35 <a href="<?php echo wp_get_attachment_url($post->ID) ?>" title="<?php echo esc_attr( get_the_title($post->ID) ); ?>" rel="attachment"><?php echo basename(get_permalink())?></a>35 <a href="<?php echo wp_get_attachment_url($post->ID); ?>" title="<?php echo esc_attr( get_the_title($post->ID) ); ?>" rel="attachment"><?php echo basename(get_permalink()); ?></a> 36 36 <?php endif; ?> 37 37 </div> 38 <div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt() ?></div>38 <div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?></div> 39 39 40 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>41 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>')?>40 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 41 <?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?> 42 42 43 43 </div><!-- .entry-content --> … … 49 49 get_permalink(), 50 50 the_title_attribute('echo=0'), 51 get_post_comments_feed_link() ) ?>51 get_post_comments_feed_link() ); ?> 52 52 53 53 <?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?> 54 <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyten' ), get_trackback_url() ) ?>54 <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyten' ), get_trackback_url() ); ?> 55 55 <?php elseif ( !comments_open() && pings_open() ) : // Only trackbacks open ?> 56 <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyten' ), get_trackback_url() ) ?>56 <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'twentyten' ), get_trackback_url() ); ?> 57 57 <?php elseif ( comments_open() && !pings_open() ) : // Only comments open ?> 58 <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyten' ) ?>58 <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyten' ); ?> 59 59 <?php elseif ( !comments_open() && !pings_open() ) : // Comments and trackbacks closed ?> 60 <?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ) ?>60 <?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ); ?> 61 61 <?php endif; ?> 62 <?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>62 <?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ); ?> 63 63 </div><!-- .entry-utility --> 64 64 </div><!-- #post-<?php the_ID(); ?> --> -
trunk/wp-content/themes/twentyten/author.php
r13111 r13128 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($authordata->display_name) . "' rel='me'>" . esc_html($authordata->display_name) . "</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 ?> 11 11 <div id="entry-author-info"> 12 12 <div id="author-avatar"> 13 <?php echo get_avatar( get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60) ); ?>13 <?php echo get_avatar( get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60) ); ?> 14 14 </div><!-- #author-avatar --> 15 15 <div id="author-description"> 16 16 <h2><?php _e('About ', 'twentyten'); ?><?php the_author(); ?></h2> 17 <?php the_author_meta('description'); ?>17 <?php the_author_meta('description'); ?> 18 18 </div><!-- #author-description --> 19 19 </div><!-- .entry-author-info --> … … 24 24 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 25 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>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 28 </div><!-- #nav-above --> 29 29 <?php } ?> … … 35 35 36 36 <div class="entry-meta"> 37 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 38 <a href="<?php 39 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 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> 40 39 </div><!-- .entry-meta --> 41 40 42 41 <div class="entry-summary"> 43 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>42 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 44 43 </div><!-- .entry-summary --> 45 44 46 45 <div class="entry-utility"> 47 <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>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> 48 47 <span class="meta-sep"> | </span> 49 <?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" ) ?>50 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>51 <?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" ) ?>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" ); ?> 52 51 </div><!-- #entry-utility --> 53 52 </div><!-- #post-<?php the_ID(); ?> --> … … 57 56 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 58 57 <div id="nav-below" class="navigation"> 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>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> 61 60 </div><!-- #nav-below --> 62 61 <?php } ?> -
trunk/wp-content/themes/twentyten/category.php
r13111 r13128 1 2 1 <?php get_header(); ?> 3 2 … … 7 6 <?php the_post(); ?> 8 7 9 <h1 class="page-title"><?php _e( 'Category Archives:', 'twentyten' ) ?> <span><?php single_cat_title()?></span></span></h1>8 <h1 class="page-title"><?php _e( 'Category Archives:', 'twentyten' ); ?> <span><?php single_cat_title(); ?></span></span></h1> 10 9 <?php $categorydesc = category_description(); if ( !empty($categorydesc) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?> 11 10 … … 14 13 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 15 14 <div id="nav-above" class="navigation"> 16 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div>17 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div>15 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 16 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 18 17 </div><!-- #nav-above --> 19 18 <?php } ?> … … 25 24 26 25 <div class="entry-meta"> 27 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 28 <a href="<?php 29 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 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( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 26 <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span> 27 <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 28 <span class="meta-sep"><?php _e(' by ', 'twentyten'); ?></span> 29 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> 32 30 </div><!-- .entry-meta --> 33 31 34 32 <div class="entry-summary"> 35 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' )); ?>33 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 36 34 </div><!-- .entry-summary --> 37 35 38 36 <div class="entry-utility"> 39 <?php if ( $cats_meow = cats_meow( ', ') ) : // Returns categories other than the one queried ?>40 <span class="cat-links"><?php printf( __( 'Also posted in %s', 'twentyten' ), $cats_meow ) ?></span>41 <span class="meta-sep"> |</span>37 <?php if ( $cats_meow = cats_meow( ', ' ) ) : // Returns categories other than the one queried ?> 38 <span class="cat-links"><?php printf( __( 'Also posted in %s', 'twentyten' ), $cats_meow ); ?></span> 39 <span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span> 42 40 <?php endif ?> 43 <?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" ) ?>44 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>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" ) ?>41 <?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" ); ?> 42 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 43 <?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 44 </div><!-- #entry-utility --> 47 45 </div><!-- #post-<?php the_ID(); ?> --> … … 51 49 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 52 50 <div id="nav-below" class="navigation"> 53 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div>54 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div>51 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 52 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 55 53 </div><!-- #nav-below --> 56 54 <?php } ?> -
trunk/wp-content/themes/twentyten/comments.php
r13031 r13128 2 2 <?php 3 3 // Do not delete these lines 4 $req = get_option( 'require_name_email'); // Checks if fields are required.4 $req = get_option( 'require_name_email' ); // Checks if fields are required. 5 5 if ( 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']) ) 6 die ( 'Please do not load this page directly. Thanks!');6 die ( __( 'Please do not load this page directly. Thanks!', 'twentyten' ) ); 7 7 if ( post_password_required() ) : 8 8 ?> 9 <div class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten')?></div>9 <div class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></div> 10 10 </div><!-- .comments --> 11 11 <?php … … 23 23 <?php $total_pages = get_comment_pages_count(); if ( $total_pages > 1 ) : // are there comments to navigate through ?> 24 24 <div class="navigation"> 25 <div class="nav-previous"><?php previous_comments_link( __('← Older Comments', 'twentyten') ) ?></div>26 <div class="nav-next"><?php next_comments_link( __('Newer Comments →', 'twentyten') ) ?></div>25 <div class="nav-previous"><?php previous_comments_link( __('← Older Comments', 'twentyten') ); ?></div> 26 <div class="nav-next"><?php next_comments_link( __('Newer Comments →', 'twentyten') ); ?></div> 27 27 </div> 28 28 <?php endif; // check for comment navigation ?> 29 29 30 30 <ol class="commentlist"> 31 <?php wp_list_comments( array('callback' => 'twentyten_comment') ); ?>31 <?php wp_list_comments( array('callback' => 'twentyten_comment') ); ?> 32 32 </ol> 33 33 34 34 <?php $total_pages = get_comment_pages_count(); if ( $total_pages > 1 ) : // are there comments to navigate through ?> 35 35 <div class="navigation"> 36 <div class="nav-previous"><?php previous_comments_link( __('← Older Comments', 'twentyten') ) ?></div>37 <div class="nav-next"><?php next_comments_link( __('Newer Comments →', 'twentyten') ) ?></div>36 <div class="nav-previous"><?php previous_comments_link( __('← Older Comments', 'twentyten') ); ?></div> 37 <div class="nav-next"><?php next_comments_link( __('Newer Comments →', 'twentyten') ); ?></div> 38 38 </div> 39 39 <?php endif; // check for comment navigation ?> -
trunk/wp-content/themes/twentyten/footer.php
r13029 r13128 4 4 <div id="colophon"> 5 5 6 <?php get_sidebar( 'footer'); ?>6 <?php get_sidebar( 'footer' ); ?> 7 7 8 8 <div id="site-info"> 9 <a href="<?php bloginfo( 'url' ) ?>/" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' )?></a>9 <a href="<?php home_url() ?>/" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> 10 10 </div> 11 11 -
trunk/wp-content/themes/twentyten/functions.php
r13112 r13128 2 2 3 3 // Set the content width based on the Theme CSS 4 $content_width = apply_filters( 'twentyten_content_width', 640 );4 $content_width = apply_filters( 'twentyten_content_width', 640 ); 5 5 6 6 // Your Changeable header business starts here … … 26 26 } 27 27 28 add_custom_image_header( '', 'twentyten_admin_header_style');28 add_custom_image_header( '', 'twentyten_admin_header_style' ); 29 29 // and thus ends the changeable header business 30 30 … … 45 45 $locale_file = TEMPLATEPATH . "/languages/$locale.php"; 46 46 if ( is_readable($locale_file) ) 47 require_once( $locale_file);47 require_once( $locale_file ); 48 48 49 49 // Get the page number 50 function get_page_number() {50 function twentyten_get_page_number() { 51 51 if ( get_query_var('paged') ) 52 echo ' | ' . __( 'Page ' , 'twentyten' ) . get_query_var('paged');52 echo ' | ' . __( 'Page ' , 'twentyten' ) . get_query_var('paged'); 53 53 } 54 54 55 55 // Control excerpt length 56 function new_excerpt_length($length) {56 function twentyten_new_excerpt_length( $length ) { 57 57 return 40; 58 58 } 59 add_filter( 'excerpt_length', 'new_excerpt_length');59 add_filter( 'excerpt_length', 'twentyten_new_excerpt_length' ); 60 60 61 61 62 62 // Make a nice read more link on excerpts 63 function new_excerpt_more($more) {63 function twentyten_new_excerpt_more($more) { 64 64 return ' … <a href="'. get_permalink() . '">' . 'Continue reading <span class="meta-nav">→</span>' . '</a>'; 65 65 } 66 add_filter( 'excerpt_more', 'new_excerpt_more');66 add_filter( 'excerpt_more', 'twentyten_new_excerpt_more' ); 67 67 68 68 69 69 // Template for comments and pingbacks 70 function twentyten_ comment($comment, $args, $depth) {71 $GLOBALS 72 <?php if ( '' == $comment->comment_type) { ?>73 <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">70 function twentyten_list_comment( $comment, $args, $depth ) { 71 $GLOBALS['comment'] = $comment; ?> 72 <?php if ( '' == $comment->comment_type ) { ?> 73 <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> 74 74 <div id="comment-<?php comment_ID(); ?>"> 75 75 <div class="comment-author vcard"> 76 <?php echo get_avatar($comment, 40); ?> 77 78 <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?> 76 <?php echo get_avatar( $comment, 40 ); ?> 77 <?php printf( __('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link() ); ?> 79 78 </div> 80 <?php if ( $comment->comment_approved == '0') : ?>81 <em><?php _e( 'Your comment is awaiting moderation.')?></em>79 <?php if ( $comment->comment_approved == '0' ) : ?> 80 <em><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> 82 81 <br /> 83 82 <?php endif; ?> 84 83 85 <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','')?></div>86 87 <div class="comment-body"><?php comment_text() ?></div>84 <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()); ?></a><?php edit_comment_link(__('(Edit)', 'twentyten'),' ',''); ?></div> 85 86 <div class="comment-body"><?php comment_text(); ?></div> 88 87 89 88 <div class="reply"> 90 <?php comment_reply_link( array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth'])))?>89 <?php comment_reply_link( array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth'])) ); ?> 91 90 </div> 92 91 </div> … … 94 93 <?php } else { ?> 95 94 <li class="post pingback"> 96 <p><?php _e( 'Pingback:') ?> <?php comment_author_link ()?><?php edit_comment_link ( 'edit', ' ', '' ); ?></p>95 <p><?php _e( 'Pingback: ', 'twentyten' ); ?><?php comment_author_link(); ?><?php edit_comment_link ( __('edit', 'twentyten'), ' ', '' ); ?></p> 97 96 <?php } 98 97 } 99 98 100 99 // Make the Visual Editor styles match the theme's styles 101 function my_editor_style($url) { 102 if ( !empty($url) ) 103 $url .= ','; 104 100 function twentyten_my_editor_style( $url ) { 101 if ( !empty($url) ) 102 $url .= ','; 105 103 // Change the path here if using sub-directory 106 104 $url .= trailingslashit( get_stylesheet_directory_uri() ) . 'editor-style.css'; … … 108 106 return $url; 109 107 } 110 add_filter('mce_css', 'my_editor_style'); 108 add_filter( 'mce_css', 'twentyten_my_editor_style' ); 109 111 110 112 111 // Remove inline styles on gallery shortcode 113 function remove_gallery_css() {112 function twentyten_remove_gallery_css() { 114 113 return "<div class='gallery'>"; 115 114 } 116 add_filter('gallery_style', 'remove_gallery_css'); 115 add_filter( 'gallery_style', 'twentyten_remove_gallery_css' ); 116 117 117 118 118 // For category lists on category archives: Returns other categories except the current one (redundant) 119 function cats_meow( $glue) {119 function cats_meow( $glue ) { 120 120 $current_cat = single_cat_title( '', false ); 121 121 $separator = "\n"; … … 123 123 foreach ( $cats as $i => $str ) { 124 124 if ( strstr( $str, ">$current_cat<" ) ) { 125 unset( $cats[$i]);125 unset( $cats[$i] ); 126 126 break; 127 127 } … … 130 130 return false; 131 131 132 return trim( join( $glue, $cats ));132 return trim( join( $glue, $cats ) ); 133 133 } // end cats_meow 134 134 135 135 136 // For tag lists on tag archives: Returns other tags except the current one (redundant) 136 function tag_ur_it( $glue) {137 function tag_ur_it( $glue ) { 137 138 $current_tag = single_tag_title( '', '', false ); 138 139 $separator = "\n"; … … 140 141 foreach ( $tags as $i => $str ) { 141 142 if ( strstr( $str, ">$current_tag<" ) ) { 142 unset( $tags[$i]);143 unset( $tags[$i] ); 143 144 break; 144 145 } … … 147 148 return false; 148 149 149 return trim( join( $glue, $tags ));150 return trim( join( $glue, $tags ) ); 150 151 } // end tag_ur_it 151 152 152 153 // Register widgetized areas 153 function t heme_widgets_init() {154 function twentyten_widgets_init() { 154 155 // Area 1 155 register_sidebar( array 156 register_sidebar( array( 156 157 'name' => 'Primary Widget Area', 157 158 'id' => 'primary-widget-area', 158 'description' => __( 'The primary widget area' , 'twentyten'),159 'description' => __( 'The primary widget area' , 'twentyten' ), 159 160 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 160 161 'after_widget' => "</li>", … … 164 165 165 166 // Area 2 166 register_sidebar( array 167 register_sidebar( array( 167 168 'name' => 'Secondary Widget Area', 168 169 'id' => 'secondary-widget-area', 169 'description' => __( 'The secondary widget area' , 'twentyten'),170 'description' => __( 'The secondary widget area' , 'twentyten' ), 170 171 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 171 172 'after_widget' => "</li>", … … 175 176 176 177 // Area 3 177 register_sidebar( array 178 register_sidebar( array( 178 179 'name' => 'First Footer Widget Area', 179 180 'id' => 'first-footer-widget-area', 180 'description' => __( 'The first footer widget area' , 'twentyten'),181 'description' => __( 'The first footer widget area' , 'twentyten' ), 181 182 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 182 183 'after_widget' => "</li>", … … 186 187 187 188 // Area 4 188 register_sidebar( array 189 register_sidebar( array( 189 190 'name' => 'Second Footer Widget Area', 190 191 'id' => 'second-footer-widget-area', 191 'description' => __( 'The second footer widget area' , 'twentyten'),192 'description' => __( 'The second footer widget area' , 'twentyten' ), 192 193 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 193 194 'after_widget' => "</li>", … … 197 198 198 199 // Area 5 199 register_sidebar( array 200 register_sidebar( array( 200 201 'name' => 'Third Footer Widget Area', 201 202 'id' => 'third-footer-widget-area', 202 'description' => __( 'The third footer widget area' , 'twentyten'),203 'description' => __( 'The third footer widget area' , 'twentyten' ), 203 204 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 204 205 'after_widget' => "</li>", … … 208 209 209 210 // Area 6 210 register_sidebar( array 211 register_sidebar( array( 211 212 'name' => 'Fourth Footer Widget Area', 212 213 'id' => 'fourth-footer-widget-area', 213 'description' => __( 'The fourth footer widget area' , 'twentyten'),214 'description' => __( 'The fourth footer widget area' , 'twentyten' ), 214 215 'before_widget' => '<li id="%1$s" class="widget-container %2$s">', 215 216 'after_widget' => "</li>", … … 221 222 222 223 // Add all the groovy widget areas 223 add_action( 'init', 't heme_widgets_init' );224 add_action( 'init', 'twentyten_widgets_init' ); -
trunk/wp-content/themes/twentyten/header.php
r13112 r13128 6 6 single_post_title(); echo ' | '; bloginfo('name'); 7 7 } elseif ( is_home() || is_front_page() ) { 8 bloginfo('name'); echo ' | '; bloginfo('description'); get_page_number();8 bloginfo('name'); echo ' | '; bloginfo('description'); twentyten_get_page_number(); 9 9 } elseif ( is_page() ) { 10 10 single_post_title(''); echo ' | '; bloginfo('name'); 11 11 } elseif ( is_search() ) { 12 printf(__('Search results for "%s"', 'twentyten'), esc_html($s)); get_page_number(); echo ' | '; bloginfo('name');12 printf(__('Search results for "%s"', 'twentyten'), esc_html($s)); twentyten_get_page_number(); echo ' | '; bloginfo('name'); 13 13 } elseif ( is_404() ) { 14 14 _e('Not Found', 'twentyten'); echo ' | '; bloginfo('name'); 15 15 } else { 16 wp_title(''); echo ' | '; bloginfo('name'); get_page_number();16 wp_title(''); echo ' | '; bloginfo('name'); twentyten_get_page_number(); 17 17 } 18 18 ?></title> … … 28 28 <?php wp_head(); ?> 29 29 30 <link rel="alternate" type="application/rss+xml" href="<?php bloginfo( 'rss2_url'); ?>" title="<?php printf( esc_attr__( '%s latest posts', 'twentyten' ), esc_html( get_bloginfo('name') ) ); ?>" />31 <link rel="alternate" type="application/rss+xml" href="<?php bloginfo( 'comments_rss2_url')?>" title="<?php printf( esc_attr__( '%s latest comments', 'twentyten' ), esc_html( get_bloginfo('name') ) ); ?>" />32 <link rel="pingback" href="<?php bloginfo( 'pingback_url'); ?>" />30 <link rel="alternate" type="application/rss+xml" href="<?php bloginfo( 'rss2_url' ); ?>" title="<?php printf( esc_attr__( '%s latest posts', 'twentyten' ), esc_html( get_bloginfo('name') ) ); ?>" /> 31 <link rel="alternate" type="application/rss+xml" href="<?php bloginfo( 'comments_rss2_url' ); ?>" title="<?php printf( esc_attr__( '%s latest comments', 'twentyten' ), esc_html( get_bloginfo('name') ) ); ?>" /> 32 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 33 33 </head> 34 34 … … 40 40 41 41 <div id="branding"> 42 <div id="site-title"><span><a href="<?php bloginfo( 'url' ) ?>/" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' )?></a></span></div>43 <div id="site-description"><?php bloginfo( 'description' ) ?></div>42 <div id="site-title"><span><a href="<?php home_url(); ?>/" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></div> 43 <div id="site-description"><?php bloginfo( 'description' ); ?></div> 44 44 45 45 <?php … … 53 53 54 54 <div id="access"> 55 <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ) ?>"><?php _e( 'Skip to content', 'twentyten' )?></a></div>55 <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div> 56 56 <?php wp_page_menu( 'sort_column=menu_order' ); ?> 57 57 </div><!-- #access --> -
trunk/wp-content/themes/twentyten/index.php
r13111 r13128 6 6 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 7 7 <div id="nav-above" class="navigation"> 8 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div>9 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div>8 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 9 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 10 10 </div><!-- #nav-above --> 11 11 <?php } ?> … … 17 17 18 18 <div class="entry-meta"> 19 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 20 <a href="<?php 21 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 22 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 23 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 19 <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span> 20 <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 21 <span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span> 22 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> 24 23 </div><!-- .entry-meta --> 25 24 26 25 <div class="entry-content"> 27 <div class="gallery-thumb"><a class="size-thumbnail" href="<?php the_permalink() ?>"><?php 28 $images =& get_children( array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999) ); 29 $total_images = count($images); 30 $image = array_shift($images); 31 echo wp_get_attachment_image( $image->ID, 'thumbnail' ); 32 ?></a></div> 26 <div class="gallery-thumb"> 27 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php 28 $images =& get_children( array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999) ); 29 $total_images = count($images); 30 $image = array_shift($images); 31 echo wp_get_attachment_image( $image->ID, 'thumbnail' ); 32 ?></a> 33 </div> 33 34 <p><em><?php printf( __('This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten'), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0') ) . '" rel="bookmark"', $total_images ); ?></em></p> 34 35 35 <?php the_excerpt( ''); ?>36 <?php the_excerpt( '' ); ?> 36 37 </div><!-- .entry-content --> 37 38 … … 42 43 ?> 43 44 <a href="<?php echo $category_link; ?>" title="<?php esc_attr_e('View posts in the Gallery category', 'twentyten'); ?>"><?php _e('More Galleries', 'twentyten'); ?></a> 44 45 <span class="meta-sep"> | </span> 46 47 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span> 48 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" ) ?> 45 <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span> 46 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 47 <?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 48 </div><!-- #entry-utility --> 51 49 </div> … … 55 53 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 56 54 <div class="entry-content"> 57 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' )); ?>55 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 58 56 </div><!-- .entry-content --> 59 57 60 58 <div class="entry-utility"> 61 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 62 <a href="<?php 63 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 64 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 65 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 66 <span class="meta-sep"> | </span> 67 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span> 68 <?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" ) ?> 59 <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span> 60 <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 61 <span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span> 62 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> 63 <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span> 64 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 65 <?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" ); ?> 69 66 </div><!-- #entry-utility --> 70 67 </div><!-- #post-<?php the_ID(); ?> --> … … 78 75 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 79 76 <a href="<?php 80 the_permalink(); ?>" title="<?php the_time( 'Y-m-d\TH:i:sO')?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a>81 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?></span>82 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID , $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name); ?>"><?php the_author(); ?></a></span>77 the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 78 <span class="meta-sep"><?php _e( ' by ', 'twentyten' ); ?></span> 79 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> 83 80 </div><!-- .entry-meta --> 84 81 85 82 <div class="entry-content"> 86 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' )); ?>87 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>')?>83 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 84 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>'); ?> 88 85 </div><!-- .entry-content --> 89 86 90 87 <div class="entry-utility"> 91 <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>92 <span class="meta-sep"> |</span>93 <?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" ) ?>94 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>95 <?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" ) ?>88 <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> 89 <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span> 90 <?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" ); ?> 91 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 92 <?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" ); ?> 96 93 </div><!-- #entry-utility --> 97 94 </div><!-- #post-<?php the_ID(); ?> --> 98 95 99 <?php comments_template(); ?>96 <?php comments_template( '', true ); ?> 100 97 101 98 <?php } ?> … … 105 102 <div class="entry-content"> 106 103 <p><?php _e( 'Apologies, but we were unable to find what you were looking for. Perhaps searching will help.', 'twentyten' ); ?></p> 107 <?php get_search_form(); ?>104 <?php get_search_form(); ?> 108 105 </div> 109 106 <?php endif; ?> … … 111 108 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 112 109 <div id="nav-below" class="navigation"> 113 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div>114 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div>110 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 111 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 115 112 </div><!-- #nav-below --> 116 113 <?php } ?> -
trunk/wp-content/themes/twentyten/page.php
r13025 r13128 9 9 <h1 class="entry-title"><?php the_title(); ?></h1> 10 10 <div class="entry-content"> 11 <?php the_content(); ?>12 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>')?>13 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' )?>11 <?php the_content(); ?> 12 <?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>'); ?> 13 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> 14 14 </div><!-- .entry-content --> 15 15 </div><!-- #post-<?php the_ID(); ?> --> 16 16 17 <?php comments_template(); ?>17 <?php comments_template( '', true ); ?> 18 18 19 19 </div><!-- #content --> -
trunk/wp-content/themes/twentyten/search.php
r13111 r13128 10 10 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 11 11 <div id="nav-above" class="navigation"> 12 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div>13 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div>12 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 13 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 14 14 </div><!-- #nav-above --> 15 15 <?php } ?> 16 16 17 <?php while ( have_posts() ) : the_post() ?>17 <?php while ( have_posts() ) : the_post(); ?> 18 18 19 19 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 20 20 <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> 21 21 22 <?php if ( $post->post_type == 'post' ) {?>22 <?php if ( $post->post_type != 'page' ) : ?> 23 23 <div class="entry-meta"> 24 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span> 25 <a href="<?php 26 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 27 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span> 28 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 24 <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span> 25 <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 26 <span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span> 27 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> 29 28 </div><!-- .entry-meta --> 30 <?php }?>29 <?php endif; ?> 31 30 32 31 <div class="entry-summary"> 33 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' )); ?>34 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>')?>32 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 33 <?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?> 35 34 </div><!-- .entry-summary --> 36 35 37 <?php if ( $post->post_type == 'post' ) {?>36 <?php if ( $post->post_type != 'page' ) : ?> 38 37 <div class="entry-utility"> 39 38 <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> 40 39 <span class="meta-sep"> | </span> 41 <?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" ) ?>42 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>43 <?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" ) ?>40 <?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" ); ?> 41 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 42 <?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" ); ?> 44 43 </div><!-- #entry-utility --> 45 <?php }?>44 <?php endif; ?> 46 45 </div><!-- #post-<?php the_ID(); ?> --> 47 46 … … 50 49 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 51 50 <div id="nav-below" class="navigation"> 52 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div>53 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div>51 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 52 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 54 53 </div><!-- #nav-below --> 55 54 <?php } ?> … … 58 57 59 58 <div id="post-0" class="post no-results not-found"> 60 <h2 class="entry-title"><?php _e( 'Nothing Found', 'twentyten' ) ?></h2>59 <h2 class="entry-title"><?php _e( 'Nothing Found', 'twentyten' ); ?></h2> 61 60 <div class="entry-content"> 62 61 <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyten' ); ?></p> 63 <?php get_search_form(); ?>62 <?php get_search_form(); ?> 64 63 </div><!-- .entry-content --> 65 64 </div> -
trunk/wp-content/themes/twentyten/searchform.php
r13029 r13128 1 1 <form id="searchform" name="searchform" method="get" action="<?php echo home_url(); ?>"> 2 2 <div> 3 <label for="s"><?php _e( 'Search', 'twentyten'); ?></label>3 <label for="s"><?php _e( 'Search', 'twentyten' ); ?></label> 4 4 <input type="text" id="s" name="s" /> 5 <input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyten'); ?>" />5 <input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyten' ); ?>" /> 6 6 </div> 7 7 </form> -
trunk/wp-content/themes/twentyten/sidebar-footer.php
r13025 r13128 1 1 <?php 2 if ( is_active_sidebar('first-footer-widget-area') || is_active_sidebar('second-footer-widget-area') || is_active_sidebar('third-footer-widget-area') || is_active_sidebar('fourth-footer-widget-area') ) : 2 if ( is_active_sidebar('first-footer-widget-area') || 3 is_active_sidebar('second-footer-widget-area') || 4 is_active_sidebar('third-footer-widget-area') || 5 is_active_sidebar('fourth-footer-widget-area') ) : 3 6 ?> 4 7 <div id="footer-widget-area"> … … 6 9 <div id="first" class="widget-area"> 7 10 <ul class="xoxo"> 8 <?php dynamic_sidebar( 'first-footer-widget-area'); ?>11 <?php dynamic_sidebar( 'first-footer-widget-area' ); ?> 9 12 </ul> 10 13 </div><!-- #first .widget-area --> … … 14 17 <div id="second" class="widget-area"> 15 18 <ul class="xoxo"> 16 <?php dynamic_sidebar( 'second-footer-widget-area'); ?>19 <?php dynamic_sidebar( 'second-footer-widget-area' ); ?> 17 20 </ul> 18 21 </div><!-- #second .widget-area --> … … 22 25 <div id="third" class="widget-area"> 23 26 <ul class="xoxo"> 24 <?php dynamic_sidebar( 'third-footer-widget-area'); ?>27 <?php dynamic_sidebar( 'third-footer-widget-area' ); ?> 25 28 </ul> 26 29 </div><!-- #third .widget-area --> … … 30 33 <div id="fourth" class="widget-area"> 31 34 <ul class="xoxo"> 32 <?php dynamic_sidebar( 'fourth-footer-widget-area'); ?>35 <?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?> 33 36 </ul> 34 37 </div><!-- #fourth .widget-area --> -
trunk/wp-content/themes/twentyten/sidebar.php
r13025 r13128 7 7 8 8 <li id="archives" class="widget-container"> 9 <h3 class="widget-title"><?php _e( 'Archives', 'twentyten')?></h3>9 <h3 class="widget-title"><?php _e( 'Archives', 'twentyten' ); ?></h3> 10 10 <ul> 11 <?php wp_get_archives('type=monthly')?>11 <?php wp_get_archives( 'type=monthly' ); ?> 12 12 </ul> 13 13 </li> 14 14 15 15 <li id="meta" class="widget-container"> 16 <h3 class="widget-title"><?php _e( 'Meta', 'twentyten')?></h3>16 <h3 class="widget-title"><?php _e( 'Meta', 'twentyten' ); ?></h3> 17 17 <ul> 18 <?php wp_register() ?> 19 20 <li><?php wp_loginout() ?></li> 21 <?php wp_meta() ?> 22 18 <?php wp_register(); ?> 19 <li><?php wp_loginout(); ?></li> 20 <?php wp_meta(); ?> 23 21 </ul> 24 22 </li> 25 <?php endif; // end primary widget area 23 <?php endif; // end primary widget area ?> 26 24 </ul> 27 25 </div><!-- #primary .widget-area --> … … 30 28 <div id="secondary" class="widget-area"> 31 29 <ul class="xoxo"> 32 <?php dynamic_sidebar( 'secondary-widget-area'); ?>30 <?php dynamic_sidebar( 'secondary-widget-area' ); ?> 33 31 </ul> 34 32 </div><!-- #secondary .widget-area --> -
trunk/wp-content/themes/twentyten/single.php
r13111 r13128 7 7 8 8 <div id="nav-above" class="navigation"> 9 <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">←</span> %title' ) ?></div>10 <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">→</span>' ) ?></div>9 <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">←</span> %title' ); ?></div> 10 <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">→</span>' ); ?></div> 11 11 </div><!-- #nav-above --> 12 12 … … 15 15 16 16 <div class="entry-meta"> 17 <span class="meta-prep meta-prep-author"><?php _e('Posted by ', 'twentyten'); ?></span> 18 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span> 19 <span class="meta-sep"> <?php _e('on ', 'twentyten'); ?> </span> 20 <a href="<?php 21 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 22 <?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" ) ?> 17 <span class="meta-prep meta-prep-author"><?php _e( 'Posted by ', 'twentyten' ); ?></span> 18 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> 19 <span class="meta-sep"><?php _e( ' on ', 'twentyten' ); ?> </span> 20 <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 21 <?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" ); ?> 23 22 </div><!-- .entry-meta --> 24 23 25 24 <div class="entry-content"> 26 <?php the_content(); ?>27 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>')?>25 <?php the_content(); ?> 26 <?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?> 28 27 </div><!-- .entry-content --> 29 28 … … 31 30 <div id="entry-author-info"> 32 31 <div id="author-avatar"> 33 <?php echo get_avatar( get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60) ); ?>32 <?php echo get_avatar( get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60) ); ?> 34 33 </div><!-- #author-avatar --> 35 34 <div id="author-description"> 36 <h2><?php _e( 'About ', 'twentyten'); ?><?php the_author(); ?></h2>37 <?php the_author_meta('description'); ?>35 <h2><?php _e( 'About ', 'twentyten' ); ?><?php the_author(); ?></h2> 36 <?php the_author_meta('description'); ?> 38 37 <div id="author-link"> 39 <a href="<?php echo get_author_posts_url( $authordata->ID , $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name ); ?>"><?php _e('View all posts by ', 'twentyten'); ?><?php the_author(); ?> →</a>38 <a href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php _e( 'View all posts by ', 'twentyten' ); ?><?php the_author(); ?> →</a> 40 39 </div><!-- #author-link --> 41 40 </div><!-- #author-description --> … … 49 48 get_permalink(), 50 49 the_title_attribute('echo=0'), 51 get_post_comments_feed_link() ) ?>50 get_post_comments_feed_link() ); ?> 52 51 53 <?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>52 <?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ); ?> 54 53 </div><!-- .entry-utility --> 55 54 </div><!-- #post-<?php the_ID(); ?> --> 56 55 57 56 <div id="nav-below" class="navigation"> 58 <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">←</span> %title' ) ?></div>59 <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">→</span>' ) ?></div>57 <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">←</span> %title' ); ?></div> 58 <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">→</span>' ); ?></div> 60 59 </div><!-- #nav-below --> 61 60 62 <?php comments_template('', true); ?>61 <?php comments_template( '', true ); ?> 63 62 64 63 </div><!-- #content --> -
trunk/wp-content/themes/twentyten/tag.php
r13111 r13128 6 6 <?php the_post(); ?> 7 7 8 <h1 class="page-title"><?php _e( 'Tag Archives: ', 'twentyten' ) ?> <span><?php single_tag_title()?></span></h1>8 <h1 class="page-title"><?php _e( 'Tag Archives: ', 'twentyten' ); ?><span><?php single_tag_title(); ?></span></h1> 9 9 10 10 <?php rewind_posts(); ?> … … 12 12 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 13 13 <div id="nav-above" class="navigation"> 14 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div>15 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div>14 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 15 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 16 16 </div><!-- #nav-above --> 17 17 <?php } ?> … … 23 23 24 24 <div class="entry-meta"> 25 <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten'); ?></span>26 <a href="<?php the_permalink(); ?>" title="<?php the_time( 'Y-m-d\TH:i:sO')?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a>27 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?></span>28 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID , $authordata->user_nicename ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), $authordata->display_name); ?>"><?php the_author(); ?></a></span>25 <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span> 26 <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a> 27 <span class="meta-sep"><?php _e( ' by ', 'twentyten' ); ?></span> 28 <span class="author vcard"><a class="url fn n" href="<?php echo get_author_posts_url( $authordata->ID ); ?>" title="<?php printf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ); ?>"><?php the_author(); ?></a></span> 29 29 </div><!-- .entry-meta --> 30 30 31 31 <div class="entry-summary"> 32 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' )); ?>32 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 33 33 </div><!-- .entry-summary --> 34 34 35 35 <div class="entry-utility"> 36 <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>37 <span class="meta-sep"> |</span>36 <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> 37 <span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span> 38 38 <?php if ( $tag_ur_it = tag_ur_it(', ') ) : // Returns tags other than the one queried ?> 39 <span class="tag-links"><?php printf( __( 'Also tagged %s', 'twentyten' ), $tag_ur_it ) ?></span>39 <span class="tag-links"><?php printf( __( 'Also tagged %s', 'twentyten' ), $tag_ur_it ); ?></span> 40 40 <?php endif; ?> 41 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>42 <?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" ) ?>41 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 42 <?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" ); ?> 43 43 </div><!-- #entry-utility --> 44 44 </div><!-- #post-<?php the_ID(); ?> --> … … 48 48 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?> 49 49 <div id="nav-below" class="navigation"> 50 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )) ?></div>51 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )) ?></div>50 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">←</span> Older posts', 'twentyten' )); ?></div> 51 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' )); ?></div> 52 52 </div><!-- #nav-below --> 53 53 <?php } ?>
Note: See TracChangeset
for help on using the changeset viewer.