Make WordPress Core

Ticket #9015: more-more-functions.php-patch.diff

File more-more-functions.php-patch.diff, 21.6 KB (added by ptahdunbar, 15 years ago)

All page titles are now consistent with a new twentyten_page_title() function which is filterable. Wrapped page links into a filterable function too.

  • wp-content/themes/twentyten/author.php

     
    55
    66<?php the_post(); ?>
    77
    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>
     8<?php twentyten_page_title(); ?>
    99
    10 <?php if ( get_the_author_meta('description') ) : // If a user has filled out their decscription show a bio on their entries  ?>
    11                                         <div id="entry-author-info">
    12                                                 <div id="author-avatar">
    13                                                         <?php echo get_avatar( get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60) ); ?>
    14                                                 </div><!-- #author-avatar       -->
    15                                                 <div id="author-description">
    16                                                         <h2><?php printf(__('About %s', 'twentyten'), get_the_author()); ?></h2>
    17                                                         <?php the_author_meta('description'); ?>
    18                                                 </div><!-- #author-description  -->
    19                                         </div><!-- .entry-author-info -->
    20 <?php endif; ?>
    21 
    2210<?php rewind_posts(); ?>
    2311
    2412<?php include 'loop.php'; ?>
  • wp-content/themes/twentyten/search.php

     
    44                        <div id="content">
    55
    66<?php if ( have_posts() ) : ?>
    7                                 <h1 class="page-title"><?php _e( 'Search Results for: ', 'twentyten' ); ?><span><?php the_search_query(); ?></span></h1>
     7        <?php twentyten_page_title(); ?>
    88        <?php include 'loop.php'; ?>
    99<?php else : ?>
    1010                                <div id="post-0" class="post no-results not-found">
  • wp-content/themes/twentyten/functions.php

     
    6565}
    6666add_filter( 'excerpt_more', 'twentyten_new_excerpt_more' );
    6767
     68// Displays the page title
     69function twentyten_page_title() {
     70        $title = null;
     71        $description = '';
     72       
     73        if ( is_tax() ) {
     74                global $wp_query;
     75                $term = $wp_query->get_queried_object();
     76                $title = sprintf( __( 'Taxonomy Archives: <span>%s</span>', 'twentyten' ), esc_html($term->name) );
     77                if ( $term->description ) {
     78                        $description = apply_filters( 'archive_meta', '<div class="archive-meta"><p>' . esc_html($term->description) . '</p></div>' );
     79                }
     80               
     81        } elseif ( is_category() ) {
     82                $title = sprintf( __( 'Category Archives: <span>%s</span>', 'twentyten' ), single_cat_title( '', false ) );
     83                if ( category_description() ) {
     84                        $description = apply_filters( 'archive_meta', '<div class="archive-meta">' . category_description() . '</div>' );
     85                }
     86               
     87        } elseif ( is_tag() ) {
     88                $title = sprintf( __( 'Tag Archives: <span>%s</span>', 'twentyten' ), single_tag_title( '', false ) );
     89                if ( tag_description() ) {
     90                        $description = apply_filters( 'archive_meta', '<div class="archive-meta">' . tag_description() . '</div>' );
     91                }
     92               
     93        } elseif ( is_author() ) {
     94                $title = sprintf( __( 'Author Archives: <span class="vcard">%s</span>', 'twentyten' ), '<a href="'. esc_attr(get_the_author_meta('user_url')) .'" title="'. esc_attr(get_the_author()) .'" rel="me">'. esc_html(get_the_author()) .'</a>' );
     95                if ( get_the_author_meta( 'description' ) ) {
     96                        $description  = '<div id="entry-author-info">' . "\n" . '<div id="author-avatar">' . "\n";
     97                        $description .= get_avatar( get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60) );
     98                        $description .= '</div><!-- #author-avatar -->' . "\n" . '<div id="author-description">' . "\n";
     99                        $description .= '<h2>'. sprintf( __( 'About %s', 'twentyten' ), get_the_author() ) .'</h2>';
     100                        $description .= get_the_author_meta( 'description' ) . '</div><!-- #author-description  -->' . "\n" . '</div><!-- .entry-author-info -->';
     101                }
     102               
     103        } elseif ( is_search() ) {
     104                $title = sprintf( __( 'Search Results for: <span>%s</span>', 'twentyten' ), esc_attr( apply_filters('the_search_query', get_search_query()) ) );
    68105
     106        } elseif ( is_day() ) {
     107                $title = sprintf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_time(get_option('date_format')) );
     108        } elseif ( is_month() ) {
     109                $title = sprintf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_time('F Y') );
     110        } elseif ( is_year() ) {
     111                $title = sprintf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_time('Y') );
     112        } elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) {
     113                $title = __( 'Archives', 'twentyten' );
     114        }
     115       
     116        echo apply_filters( 'twentyten_page_title', '<h1 class="page-title">'. $title .'</h1>' . $description );
     117}
     118
     119// Displays the Newer Posts|Older Posts links
     120function twentyten_page_links() {
     121        global $wp_query;
     122        $total_pages = $wp_query->max_num_pages;
     123        $pagelinks = '';
     124       
     125        if ( $total_pages > 1 ) {
     126                $pagelinks  = '<div id="nav-above" class="navigation">' . "\n";
     127                $pagelinks .= '<div class="nav-previous">' . get_next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) . "</div>\n";
     128                $pagelinks .= '<div class="nav-next">' . get_previous_posts_page_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) . "</div>\n";
     129                $pagelinks .= '</div><!-- #nav-above -->' . "\n";
     130        }
     131        echo apply_filters( 'twentyten_page_links', $pagelinks );
     132}
     133
    69134// Template for comments and pingbacks
    70135function twentyten_list_comment( $comment, $args, $depth ) {
    71136        $GLOBALS['comment'] = $comment; ?>
     
    222287} // end theme_widgets_init
    223288
    224289// Add all the groovy widget areas
    225 add_action( 'init', 'twentyten_widgets_init' );
     290add_action( 'init', 'twentyten_widgets_init' );
     291 No newline at end of file
  • wp-content/themes/twentyten/loop.php

     
    1 <?php if ( $wp_query->max_num_pages > 1 ) { ?>
    2         <div id="nav-above" class="navigation">
    3                 <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )); ?></div>
    4                 <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )); ?></div>
    5         </div><!-- #nav-above -->
    6 <?php } ?>
    7 
    8 <?php while ( have_posts() ) : the_post(); ?>
    9 <?php if ( in_category( 'Gallery' ) ) { ?>
    10         <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    11                 <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>
    12 
    13                 <div class="entry-meta">
    14                         <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
    15                         <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a>
    16                         <span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span>
    17                         <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>
    18                 </div><!-- .entry-meta -->
    19 
    20                 <div class="entry-content">
    21                         <div class="gallery-thumb">
    22                                 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php
    23                                 $images =& get_children( array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999) );
    24                                 $total_images = count($images);
    25                                 $image = array_shift($images);
    26                                 echo wp_get_attachment_image( $image->ID, 'thumbnail' );
    27                                 ?></a>
    28                         </div>
    29                         <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>
    30 
    31                         <?php the_excerpt( '' ); ?>
    32                 </div><!-- .entry-content -->
    33 
    34                 <div class="entry-utility">
    35                         <?php
    36                                 $category_id = get_cat_ID( 'Gallery' );
    37                                 $category_link = get_category_link( $category_id );
    38                         ?>
    39                         <a href="<?php echo $category_link; ?>" title="<?php esc_attr_e('View posts in the Gallery category', 'twentyten'); ?>"><?php _e('More Galleries', 'twentyten'); ?></a>
    40                         <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span>
    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                 </div><!-- #entry-utility -->
    44         </div>
    45 
    46 
    47 <?php } elseif ( in_category( 'asides' ) ) { ?>
    48         <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    49                 <div class="entry-content">
    50                         <?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    51                 </div><!-- .entry-content -->
    52 
    53                 <div class="entry-utility">
    54                         <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
    55                         <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a>
    56                         <span class="meta-sep"> <?php _e( ' by ', 'twentyten' ); ?> </span>
    57                         <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>
    58                         <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span>
    59                         <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
    60                         <?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" ); ?>
    61                 </div><!-- #entry-utility -->
    62         </div><!-- #post-<?php the_ID(); ?> -->
    63 
    64 
    65 <?php } else { ?>
    66         <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    67                 <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>
    68 
    69                 <div class="entry-meta">
    70                         <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span>
    71                         <a href="<?php
    72 the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a>
    73                         <span class="meta-sep"><?php _e( ' by ', 'twentyten' ); ?></span>
    74                         <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>
    75                 </div><!-- .entry-meta -->
    76 
    77 <?php if ( is_archive() || is_search() ) : //Only display Excerpts for archives & search ?>
    78                 <div class="entry-summary">
    79                         <?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    80                 </div><!-- .entry-summary -->
    81 <?php else : ?>
    82                 <div class="entry-content">
    83                         <?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    84                         <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>'); ?>
    85                 </div><!-- .entry-content -->
    86 <?php endif; ?>
    87 
    88                 <div class="entry-utility">
    89                         <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>
    90                         <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span>
    91                         <?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" ); ?>
    92                         <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
    93                         <?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" ); ?>
    94                 </div><!-- #entry-utility -->
    95         </div><!-- #post-<?php the_ID(); ?> -->
    96 
    97         <?php comments_template( '', true ); ?>
    98 
    99 <?php } ?>
    100 <?php endwhile; ?>
    101 
    102 <?php if (  $wp_query->max_num_pages > 1 ) { ?>
    103                                 <div id="nav-below" class="navigation">
    104                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )); ?></div>
    105                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )); ?></div>
    106                                 </div><!-- #nav-below -->
    107 <?php } ?>
    108  No newline at end of file
     1<?php twentyten_page_links(); ?>
     2
     3<?php while ( have_posts() ) : the_post(); ?>
     4<?php if ( in_category( 'Gallery' ) ) { ?>
     5        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     6                <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>
     7
     8                <div class="entry-meta">
     9                        <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
     10                        <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a>
     11                        <span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span>
     12                        <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>
     13                </div><!-- .entry-meta -->
     14
     15                <div class="entry-content">
     16                        <div class="gallery-thumb">
     17                                <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php
     18                                $images =& get_children( array('post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999) );
     19                                $total_images = count($images);
     20                                $image = array_shift($images);
     21                                echo wp_get_attachment_image( $image->ID, 'thumbnail' );
     22                                ?></a>
     23                        </div>
     24                        <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>
     25
     26                        <?php the_excerpt( '' ); ?>
     27                </div><!-- .entry-content -->
     28
     29                <div class="entry-utility">
     30                        <?php
     31                                $category_id = get_cat_ID( 'Gallery' );
     32                                $category_link = get_category_link( $category_id );
     33                        ?>
     34                        <a href="<?php echo $category_link; ?>" title="<?php esc_attr_e('View posts in the Gallery category', 'twentyten'); ?>"><?php _e('More Galleries', 'twentyten'); ?></a>
     35                        <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span>
     36                        <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
     37                        <?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" ); ?>
     38                </div><!-- #entry-utility -->
     39        </div>
     40
     41
     42<?php } elseif ( in_category( 'asides' ) ) { ?>
     43        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     44                <div class="entry-content">
     45                        <?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
     46                </div><!-- .entry-content -->
     47
     48                <div class="entry-utility">
     49                        <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
     50                        <a href="<?php the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a>
     51                        <span class="meta-sep"> <?php _e( ' by ', 'twentyten' ); ?> </span>
     52                        <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>
     53                        <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span>
     54                        <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
     55                        <?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" ); ?>
     56                </div><!-- #entry-utility -->
     57        </div><!-- #post-<?php the_ID(); ?> -->
     58
     59
     60<?php } else { ?>
     61        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     62                <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>
     63
     64                <div class="entry-meta">
     65                        <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span>
     66                        <a href="<?php
     67the_permalink(); ?>" title="<?php the_time(); ?>" rel="bookmark"><span class="entry-date"><?php echo get_the_date(); ?></span></a>
     68                        <span class="meta-sep"><?php _e( ' by ', 'twentyten' ); ?></span>
     69                        <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>
     70                </div><!-- .entry-meta -->
     71
     72<?php if ( is_archive() || is_search() ) : //Only display Excerpts for archives & search ?>
     73                <div class="entry-summary">
     74                        <?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
     75                </div><!-- .entry-summary -->
     76<?php else : ?>
     77                <div class="entry-content">
     78                        <?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
     79                        <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>'); ?>
     80                </div><!-- .entry-content -->
     81<?php endif; ?>
     82
     83                <div class="entry-utility">
     84                        <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>
     85                        <span class="meta-sep"><?php __( ' | ', 'twentyten' ); ?></span>
     86                        <?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" ); ?>
     87                        <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
     88                        <?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" ); ?>
     89                </div><!-- #entry-utility -->
     90        </div><!-- #post-<?php the_ID(); ?> -->
     91
     92        <?php comments_template( '', true ); ?>
     93
     94<?php } ?>
     95<?php endwhile; ?>
     96
     97<?php twentyten_page_links(); ?>
     98 No newline at end of file
  • wp-content/themes/twentyten/tag.php

     
    55
    66<?php the_post(); ?>
    77
    8                                 <h1 class="page-title"><?php _e( 'Tag Archives: ', 'twentyten' ); ?><span><?php single_tag_title(); ?></span></h1>
     8<?php twentyten_page_title(); ?>
    99
    1010<?php rewind_posts(); ?>
    1111
  • wp-content/themes/twentyten/category.php

     
    55
    66<?php the_post(); ?>
    77
    8                                 <h1 class="page-title"><?php _e( 'Category Archives:', 'twentyten' ); ?> <span><?php single_cat_title(); ?></span></span></h1>
    9                                 <?php $categorydesc = category_description(); if ( !empty($categorydesc) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?>
     8<?php twentyten_page_title(); ?>
    109
    1110<?php rewind_posts(); ?>
    1211
  • wp-content/themes/twentyten/archive.php

     
    55
    66<?php the_post(); ?>
    77
    8 <?php if ( is_day() ) : ?>
    9                                 <h1 class="page-title"><?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?></h1>
    10 <?php elseif ( is_month() ) : ?>
    11                                 <h1 class="page-title"><?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date('F Y') ); ?></h1>
    12 <?php elseif ( is_year() ) : ?>
    13                                 <h1 class="page-title"><?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date('Y') ); ?></h1>
    14 <?php else : ?>
    15                                 <h1 class="page-title"><?php _e( 'Blog Archives', 'twentyten' ); ?></h1>
    16 <?php endif; ?>
     8<?php twentyten_page_title(); ?>
    179
    1810<?php rewind_posts(); ?>
    1911