Make WordPress Core

Ticket #9015: twentyten-clean-up.diff

File twentyten-clean-up.diff, 80.5 KB (added by ptahdunbar, 15 years ago)
  • wp-content/themes/twentyten/searchform.php

     
    1     <form id="searchform" name="searchform" method="get" action="<?php echo home_url(); ?>">
     1    <form id="searchform" name="searchform" method="get" action="<?php echo home_url(); ?>/">
    22                <div>
    3                         <label for="s"><?php _e('Search', 'twentyten'); ?></label>
     3                        <label for="s"><?php _e( 'Search', 'twentyten' ); ?></label>
    44                        <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' ); ?>" />
    66                </div>
    77    </form>
     8 No newline at end of file
  • wp-content/themes/twentyten/footer.php

     
    33        <div id="footer">
    44                <div id="colophon">
    55
    6 <?php get_sidebar('footer'); ?>
     6                        <?php get_sidebar( 'footer' ); ?>
    77
    88                        <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>
    1010                        </div>
    1111
    1212                        <div id="site-generator">
     
    2121<?php wp_footer(); ?>
    2222
    2323</body>
    24 </html>
     24</html>
     25 No newline at end of file
  • wp-content/themes/twentyten/author.php

     
    33                <div id="container">
    44                        <div id="content">
    55
    6 <?php the_post(); ?>
     6                                <?php the_post(); ?>
     7                                <?php twentyten_page_title(); ?>
     8                                <?php twentyten_page_links(); ?>
     9                                <?php rewind_posts(); ?>
    710
    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 
    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 _e('About ', 'twentyten'); ?><?php the_author(); ?></h2>
    17 <?php the_author_meta('description'); ?>
    18                                                 </div><!-- #author-description  -->
    19                                         </div><!-- .entry-author-info -->
    20 <?php endif; ?>
    21 
    22 <?php rewind_posts(); ?>
    23 
    24 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    25                                 <div id="nav-above" class="navigation">
    26                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
    27                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    28                                 </div><!-- #nav-above -->
    29 <?php } ?>
    30 
    3111<?php while ( have_posts() ) : the_post(); ?>
    3212
    3313                                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    3414                                        <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>
    3515
    3616                                        <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 the_time( get_option( 'date_format' ) ); ?></span></a>
     17                                                <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
     18                                                <a href="<?php the_permalink(); ?>" title="<?php the_time( get_option( 'date_format' ) .' '. get_option( 'time_format' ) ); ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
    4019                                        </div><!-- .entry-meta -->
    4120
    4221                                        <div class="entry-summary">
     
    4423                                        </div><!-- .entry-summary -->
    4524
    4625                                        <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>
     26                                                <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>
    4827                                                <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" ) ?>
     28                                                <?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" ); ?>
     29                                                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
     30                                                <?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" ); ?>
    5231                                        </div><!-- #entry-utility -->
    5332                                </div><!-- #post-<?php the_ID(); ?> -->
    5433
    5534<?php endwhile; ?>
    5635
    57 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    58                                 <div id="nav-below" class="navigation">
    59                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
    60                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    61                                 </div><!-- #nav-below -->
    62 <?php } ?>
     36                                <?php twentyten_page_links(); ?>
    6337
    6438                        </div><!-- #content -->
    6539                </div><!-- #container -->
  • wp-content/themes/twentyten/sidebar-footer.php

     
    11<?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') OR is_active_sidebar('second-footer-widget-area') OR is_active_sidebar('third-footer-widget-area') OR is_active_sidebar('fourth-footer-widget-area') ) :
    33?>
    44                        <div id="footer-widget-area">
    55<?php if ( is_active_sidebar('first-footer-widget-area') ) : ?>
    66                                        <div id="first" class="widget-area">
    77                                                <ul class="xoxo">
    8                                                         <?php dynamic_sidebar('first-footer-widget-area'); ?>
     8                                                        <?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
    99                                                </ul>
    1010                                        </div><!-- #first .widget-area -->
    1111<?php endif; ?>
     
    1313<?php if ( is_active_sidebar('second-footer-widget-area') ) : ?>
    1414                                <div id="second" class="widget-area">
    1515                                        <ul class="xoxo">
    16                                                 <?php dynamic_sidebar('second-footer-widget-area'); ?>
     16                                                <?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
    1717                                        </ul>
    1818                                </div><!-- #second .widget-area -->
    1919<?php endif; ?>
     
    2121<?php if ( is_active_sidebar('third-footer-widget-area') ) : ?>
    2222                                <div id="third" class="widget-area">
    2323                                        <ul class="xoxo">
    24                                                 <?php dynamic_sidebar('third-footer-widget-area'); ?>
     24                                                <?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
    2525                                        </ul>
    2626                                </div><!-- #third .widget-area -->
    2727<?php endif; ?>
     
    2929<?php if ( is_active_sidebar('fourth-footer-widget-area') ) : ?>
    3030                                <div id="fourth" class="widget-area">
    3131                                        <ul class="xoxo">
    32                                                 <?php dynamic_sidebar('fourth-footer-widget-area'); ?>
     32                                                <?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
    3333                                        </ul>
    3434                                </div><!-- #fourth .widget-area -->
    3535<?php endif; ?>
  • wp-content/themes/twentyten/search.php

     
    55
    66<?php if ( have_posts() ) : ?>
    77
    8                                 <h1 class="page-title"><?php _e( 'Search Results for: ', 'twentyten' ); ?><span><?php the_search_query(); ?></span></h1>
     8                                <?php twentyten_page_title(); ?>
     9                                <?php twentyten_page_links(); ?>
    910
    10 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    11                                 <div id="nav-above" class="navigation">
    12                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
    13                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    14                                 </div><!-- #nav-above -->
    15 <?php } ?>
     11<?php while ( have_posts() ) : the_post(); ?>
    1612
    17 <?php while ( have_posts() ) : the_post() ?>
    18 
    1913                                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    2014                                        <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>
    2115
    22 <?php if ( $post->post_type == 'post' ) { ?>
     16<?php if ( $post->post_type != 'page' ) { ?>
    2317                                        <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 the_time( get_option( 'date_format' ) ); ?></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>
     18                                                <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
     19                                                <a href="<?php the_permalink(); ?>" title="<?php the_time( get_option( 'date_format' ) .' '. get_option( 'time_format' ) ); ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
     20                                                <span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span>
     21                                                <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>
    2922                                        </div><!-- .entry-meta -->
    3023<?php } ?>
    3124
    3225                                        <div class="entry-summary">
    33 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    34 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>') ?>
     26                                                <?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
     27                                                <?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?>
    3528                                        </div><!-- .entry-summary -->
    3629
    37 <?php if ( $post->post_type == 'post' ) { ?>
     30<?php if ( $post->post_type != 'page' ) { ?>
    3831                                        <div class="entry-utility">
    39                                                 <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                                                 <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" ) ?>
     32                                                <?php twentyten_terms_lists(); ?>
     33                                                <span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span>
     34                                                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
     35                                                <?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" ); ?>
    4436                                        </div><!-- #entry-utility -->
    4537<?php } ?>
    4638                                </div><!-- #post-<?php the_ID(); ?> -->
    4739
    4840<?php endwhile; ?>
    4941
    50 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    51                                 <div id="nav-below" class="navigation">
    52                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
    53                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    54                                 </div><!-- #nav-below -->
    55 <?php } ?>
     42                                <?php twentyten_page_links(); ?>
    5643
    5744<?php else : ?>
    5845
    5946                                <div id="post-0" class="post no-results not-found">
    60                                         <h2 class="entry-title"><?php _e( 'Nothing Found', 'twentyten' ) ?></h2>
     47                                        <h2 class="entry-title"><?php _e( 'Nothing Found', 'twentyten' ); ?></h2>
    6148                                        <div class="entry-content">
    6249                                                <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyten' ); ?></p>
    63         <?php get_search_form(); ?>
     50                                                <?php get_search_form(); ?>
    6451                                        </div><!-- .entry-content -->
    6552                                </div>
    6653
  • wp-content/themes/twentyten/404.php

     
    44                <div id="content">
    55
    66                        <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>
    88                                <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>
    1010                                        <?php get_search_form(); ?>
    1111                                </div><!-- .entry-content -->
    1212                        </div><!-- #post-0 -->
  • wp-content/themes/twentyten/index.php

     
    33                <div id="container">
    44                        <div id="content">
    55
    6 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    7                                 <div id="nav-above" class="navigation">
    8                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
    9                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    10                                 </div><!-- #nav-above -->
    11 <?php } ?>
     6                        <?php twentyten_page_links(); ?>
    127
    138    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    149    <?php if ( in_category( 'Gallery' ) ) { ?>
     
    1611                        <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>
    1712
    1813                        <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 the_time( get_option( 'date_format' ) ); ?></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>
     14                                <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
     15                                <a href="<?php the_permalink(); ?>" title="<?php the_time( get_option( 'date_format' ) .' '. get_option( 'time_format' ) ); ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></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>
    2418                        </div><!-- .entry-meta -->
    2519
    2620                        <div class="entry-content">
    27                                 <div class="gallery-thumb"><a class="size-thumbnail" href="<?php permalink_link() ?>"><?php $hilite = $wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_parent = '$post->ID' AND post_type = 'attachment' LIMIT 1" ); echo wp_get_attachment_image( $hilite, 'thumbnail' );?></a></div>
    28 
    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"', $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_parent = '$post->ID' AND post_type = 'attachment'" )); ?></em></p>
    30 
    31                                 <?php the_excerpt(''); ?>
     21                                <div class="gallery-thumb"><a class="size-thumbnail" href="<?php permalink_link(); ?>"><?php $hilite = $wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_parent = '$post->ID' AND post_type = 'attachment' LIMIT 1" ); echo wp_get_attachment_image( $hilite, 'thumbnail' ); ?></a></div>
     22                                <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"', $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_parent = '$post->ID' AND post_type = 'attachment'" ) ); ?></em></p>
     23                                <?php the_excerpt( '' ); ?>
    3224                        </div><!-- .entry-content -->
    3325
    3426                        <div class="entry-utility">
     
    3628                                    $category_id = get_cat_ID( 'Gallery' );
    3729                                    $category_link = get_category_link( $category_id );
    3830                                ?>
    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 
    41                                 <span class="meta-sep"> | </span>
    42 
     31                                <a href="<?php echo $category_link; ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
     32                                <span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span>
    4333                                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
    44 
    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" ) ?>
     34                                <?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" ); ?>
    4635                        </div><!-- #entry-utility -->
    4736                </div>
    4837
     
    5039        <?php } elseif ( in_category( 'asides' ) ) { ?>
    5140                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    5241                        <div class="entry-content">
    53 <?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
     42                                <?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
    5443                        </div><!-- .entry-content -->
    5544
    5645                        <div class="entry-utility">
    57                                 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span>
     46                                <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
    5847                                <a href="<?php
    59 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
    60                                 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
    61                                 <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>
    62                                 <span class="meta-sep"> | </span>
    63                                 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
     48the_permalink(); ?>" title="<?php the_time( 'Y-m-d\TH:i:sO' ); ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
     49                                <span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span>
     50                                <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>
     51                                <span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span>
     52                                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
    6453                                <?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" ) ?>
    6554                        </div><!-- #entry-utility -->
    6655                </div><!-- #post-<?php the_ID(); ?> -->
     
    7160                        <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>
    7261
    7362                        <div class="entry-meta">
    74                                 <span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span>
    75                                 <a href="<?php
    76 the_permalink(); ?>" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
    77                                 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
    78                                 <span class="author vcard"><a class="url fn n"2 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>
     63                                <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
     64                                <a href="<?php the_permalink(); ?>" title="<?php the_time( get_option( 'date_format' ) .' '. get_option( 'time_format' ) ); ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
     65                                <span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span>
     66                                <span class="author vcard"><a class="url fn n"2 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>
    7967                        </div><!-- .entry-meta -->
    8068
    8169                        <div class="entry-content">
    82 <?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    83 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>') ?>
     70                                <?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
     71                                <?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?>
    8472                        </div><!-- .entry-content -->
    8573
    8674                        <div class="entry-utility">
    87                                 <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>
    88                                 <span class="meta-sep"> | </span>
    89                                 <?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" ) ?>
     75                                <?php twentyten_terms_lists(); ?>
     76                                <span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span>
    9077                                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
    9178                                <?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" ) ?>
    9279                        </div><!-- #entry-utility -->
    9380                </div><!-- #post-<?php the_ID(); ?> -->
    9481
    95 <?php comments_template(); ?>
     82                <?php comments_template( '', true ); ?>
    9683
    9784    <?php } ?>
    9885    <?php endwhile; ?>
     
    10491                </div>
    10592    <?php endif; ?>
    10693
    107 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    108                                 <div id="nav-below" class="navigation">
    109                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
    110                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    111                                 </div><!-- #nav-below -->
    112 <?php } ?>
     94<?php twentyten_page_links(); ?>
    11395
    11496                        </div><!-- #content -->
    11597                </div><!-- #container -->
    11698
    11799<?php get_sidebar(); ?>
    118 <?php get_footer(); ?>
     100<?php get_footer(); ?>
     101 No newline at end of file
  • wp-content/themes/twentyten/functions.php

     
    11<?php
    2 
    32// Set the content width based on the Theme CSS
    4 $content_width = apply_filters('twentyten_content_width', 640 );
     3$content_width = apply_filters( 'twentyten_content_width', 640 );
    54
     5// Enables automatic general feed link outputting
     6automatic_feed_links();
     7
    68// Your Changeable header business starts here
    79// No CSS, just IMG call
    8 define( 'HEADER_TEXTCOLOR', '');
    9 define( 'HEADER_IMAGE', '%s/images/header-1.jpg'); // %s is theme dir uri
     10define( 'HEADER_TEXTCOLOR', '' );
     11define( 'HEADER_IMAGE', '%s/images/header-1.jpg' ); // %s is theme dir uri
    1012define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width',  940 ) );
    1113define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height',  198 ) );
    1214define( 'NO_HEADER_TEXT', true );
     
    2527<?php
    2628}
    2729
    28 add_custom_image_header('', 'twentyten_admin_header_style');
     30add_custom_image_header( '', 'twentyten_admin_header_style' );
    2931// and thus ends the changeable header business
    3032
    3133add_custom_background();
     
    4446$locale = get_locale();
    4547$locale_file = TEMPLATEPATH . "/languages/$locale.php";
    4648if ( is_readable($locale_file) )
    47         require_once($locale_file);
     49        require_once( $locale_file );
    4850
    4951
     52// Get the page title
     53function twentyten_document_title( $sep = '|' ) {
     54        $title = null;
     55       
     56        if ( is_single() ) {
     57                $title = sprintf( '%1$s %2$s %3$s', single_post_title( '', false ), $sep, get_bloginfo( 'name' ) );
     58               
     59        } elseif ( is_home() OR is_front_page() ) {
     60                $title = sprintf( '%1$s %2$s %3$s %4$s', get_bloginfo( 'name' ), $sep, get_bloginfo( 'description' ), twentyten_get_page_number($sep) );
     61               
     62        } elseif ( is_page() ) {
     63                $title = sprintf( '%1$s %2$s %3$s', single_post_title( '', false ), $sep, get_bloginfo( 'name' ) );
     64               
     65        } elseif ( is_search() ) {
     66                $title = sprintf( __( 'Search results for %1$s %2$s %3$s %4$s', 'twentyten' ), esc_html($s), twentyten_get_page_number($sep), " $sep ", get_bloginfo('name') );
     67               
     68        } elseif ( is_404() ) {
     69                $title = sprintf( __( 'Not Found %1$s %1$s', 'twentyten' ), $sep, get_bloginfo( 'name' ) );
     70               
     71        } else {
     72                $title = sprintf( '%1$s %2$s %3$s', get_bloginfo( 'name' ), wp_title($sep, false), twentyten_get_page_number($sep) );
     73        }
     74       
     75        echo apply_filters( 'twentyten_page_title', $title );
     76}
    5077
    5178// Get the page number
    52 function get_page_number() {
     79function twentyten_get_page_number( $sep = '|' ) {
    5380        if ( get_query_var('paged') )
    54                 print ' | ' . __( 'Page ' , 'twentyten') . get_query_var('paged');
    55 } // end get_page_number
     81                return sprintf( __( ' %1$s Page %2$s' , 'twentyten' ), $sep, get_query_var( 'paged' ) );
     82}
    5683
    5784
     85// Enqueue the CSS stylesheets
     86function twentyten_enqueue_styles() {
     87        if ( !is_admin() ) {
     88                wp_enqueue_style( 'twentyten_style', get_bloginfo( 'stylesheet_url' ) );
     89                wp_enqueue_style( 'twentyten_print', get_stylesheet_directory_uri() . '/print.css', null, false, 'print' );
     90        }
     91}
     92add_action( 'init', 'twentyten_enqueue_styles' );
    5893
     94
     95// Enqueues the javascript for comment replys
     96function twentyten_enqueue_scripts() {
     97        if ( is_singular() and get_site_option('thread_comments') )
     98                wp_print_scripts( 'comment-reply' );
     99}
     100add_action( 'wp_head', 'twentyten_enqueue_scripts' );
     101
     102
     103// Displays the post thumbnail image on singular pages. All other pages get the header image.
     104function twentyten_header_image() {
     105        global $post;
     106       
     107        if ( is_singular() && has_post_thumbnail( $post->ID ) ) {
     108                echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
     109        } else { ?>
     110                <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
     111<?php
     112        }
     113}
     114
     115
    59116// Control excerpt length
    60 function new_excerpt_length($length) {
     117function twentyten_new_excerpt_length() {
    61118        return 40;
    62119}
    63 add_filter('excerpt_length', 'new_excerpt_length');
     120add_filter( 'excerpt_length', 'twentyten_new_excerpt_length' );
    64121
    65122
    66 
    67123// Make a nice read more link on excerpts
    68 function new_excerpt_more($more) {
     124function twentyten_new_excerpt_more( $more ) {
    69125        return '&nbsp;&hellip; <a href="'. get_permalink() . '">' . 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>' . '</a>';
    70126}
    71 add_filter('excerpt_more', 'new_excerpt_more');
     127add_filter( 'excerpt_more', 'twentyten_new_excerpt_more' );
    72128
     129// Displays the archive title
     130function twentyten_page_title() {
     131        $title = null;
     132        $description = '';
     133       
     134        if ( is_search() ) {
     135                $title = sprintf( __( 'Search Results for: <span>%s</span>', 'twentyten' ), esc_attr( apply_filters('the_search_query', get_search_query()) ) );
     136               
     137        } elseif ( is_tax() ) {
     138                global $wp_query;
     139                $term = $wp_query->get_queried_object();
     140                $title = sprintf( __( 'Taxonomy Archives: <span>%s</span>', 'twentyten' ), esc_html($term->name) );
     141                if ( $term->description )
     142                        $description = apply_filters( 'archive_meta', '<div class="archive-meta"><p>' . esc_html($term->description) . '</p></div>' );
     143               
     144        } elseif ( is_category() ) {
     145                $title = sprintf( __( 'Category Archives: <span>%s</span>', 'twentyten' ), single_cat_title( '', false ) );
     146                if ( category_description() )
     147                        $description = apply_filters( 'archive_meta', '<div class="archive-meta">' . category_description() . '</div>' );
     148               
     149        } elseif ( is_tag() ) {
     150                $title = sprintf( __( 'Tag Archives: <span>%s</span>', 'twentyten' ), single_tag_title( '', false ) );
     151                if ( tag_description() )
     152                        $description = apply_filters( 'archive_meta', '<div class="archive-meta">' . tag_description() . '</div>' );
     153               
     154        } elseif ( is_author() ) {
     155                $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>' );
     156                if ( get_the_author_meta( 'description' ) ) {
     157                        $description  = '<div id="entry-author-info">' . "\n" . '<div id="author-avatar">' . "\n";
     158                        $description .= get_avatar( get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60) );
     159                        $description .= '</div><!-- #author-avatar      -->' . "\n" . '<div id="author-description">' . "\n";
     160                        $description .= '<h2>'. sprintf( __( 'About %s', 'twentyten' ), get_the_author() ) .'</h2>';
     161                        $description .= get_the_author_meta( 'description' ) . '</div><!-- #author-description  -->' . "\n" . '</div><!-- .entry-author-info -->';
     162                }
     163               
     164        } elseif ( is_day() ) {
     165                $title = sprintf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_time(get_option('date_format')) );
     166               
     167        } elseif ( is_month() ) {
     168                $title = sprintf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_time('F Y') );
     169               
     170        } elseif ( is_year() ) {
     171                $title = sprintf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_time('Y') );
     172               
     173        } elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) {
     174                $title = __( 'Archives', 'twentyten' );
     175        }
    73176
     177        echo apply_filters( 'twentyten_page_title', '<h1 class="page-title">'. $title .'</h1>' . $description );
     178}
    74179
     180// Displays the Newer Posts|Older Posts links
     181function twentyten_page_links() {
     182        global $wp_query;
     183        $total_pages = $wp_query->max_num_pages;
     184        $pagelinks = '';
     185       
     186        if ( $total_pages > 1 ) {
     187                $pagelinks  = '<div id="nav-above" class="navigation">' . "\n";
     188                $pagelinks .= '<div class="nav-previous">' . get_next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) . "</div>\n";
     189                $pagelinks .= '<div class="nav-next">' . get_previous_posts_page_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) . "</div>\n";
     190                $pagelinks .= '</div><!-- #nav-above -->' . "\n";
     191        }
     192        echo apply_filters( 'twentyten_page_links', $pagelinks );
     193}
     194
    75195// Template for comments and pingbacks
    76 function twentyten_comment($comment, $args, $depth) {
    77         $GLOBALS ['comment'] = $comment; ?>
    78         <?php if ('' == $comment->comment_type) { ?>
    79         <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
     196function twentyten_list_comments( $comment, $args, $depth ) {
     197        $GLOBALS['comment'] = $comment; ?>
     198        <?php if ( '' == $comment->comment_type ) { ?>
     199        <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
    80200                <div id="comment-<?php comment_ID(); ?>">
    81201                <div class="comment-author vcard">
    82                         <?php echo get_avatar($comment,$size='40'); ?>
     202                        <?php echo get_avatar( $comment, $size = 40 ); ?>
    83203
    84                         <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?>
     204                        <?php printf( __( '<cite class="fn">%s</cite> <span class="says">says:</span>', 'twentyten' ), get_comment_author_link() ); ?>
    85205                </div>
    86206                <?php if ($comment->comment_approved == '0') : ?>
    87                         <em><?php _e('Your comment is awaiting moderation.') ?></em>
     207                        <em><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
    88208                        <br />
    89209                <?php endif; ?>
    90210
    91                 <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( 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>
     211                <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link($comment->comment_ID) ); ?>"><?php printf( __('%1$s at %2$s', 'twentyten'), get_comment_date(),  get_comment_time() ); ?></a><?php edit_comment_link( __('(Edit)', 'twentyten'),'  ','' ); ?></div>
    92212
    93                 <div class="comment-body"><?php comment_text() ?></div>
     213                <div class="comment-body"><?php comment_text(); ?></div>
    94214
    95215                <div class="reply">
    96                         <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
     216                        <?php comment_reply_link( array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth'])) ); ?>
    97217                </div>
    98218        </div>
    99219
    100220        <?php } else { ?>
    101221        <li class="post pingback">
    102                 <p><?php _e('Pingback:') ?> <?php comment_author_link ()?><?php edit_comment_link ( 'edit', '&nbsp;&nbsp;', '' ); ?></p>
     222                <p><?php _e( 'Pingback: ', 'twentyten' ) ?><?php comment_author_link(); ?><?php edit_comment_link( __( 'edit', 'twentyten' ), '&nbsp;&nbsp;', '' ); ?></p>
    103223        <?php }
    104224}
    105225
    106226
    107 
    108227// Make the Visual Editor styles match the theme's styles
    109         add_filter('mce_css', 'my_editor_style');
    110         function my_editor_style($url) {
     228add_filter( 'mce_css', 'twentyten_editor_style' );
     229function twentyten_editor_style( $url ) {
     230        if ( !empty($url) )
     231                $url .= ',';
    111232
    112                 if ( !empty($url) )
    113                         $url .= ',';
    114 
    115233        // Change the path here if using sub-directory
    116234        $url .= trailingslashit( get_stylesheet_directory_uri() ) . 'editor-style.css';
    117235
     
    119237}
    120238
    121239
    122 
    123240// Remove inline styles on gallery shortcode
    124 
    125 function remove_gallery_css() {
    126         return "<div class='gallery'>";
     241function twentyten_remove_gallery_css() {
     242        return '<div class="gallery">';
    127243}
    128 add_filter('gallery_style', 'remove_gallery_css');
     244add_filter( 'gallery_style', 'twentyten_remove_gallery_css' );
    129245
    130246
    131 
    132 // For category lists on category archives: Returns other categories except the current one (redundant)
    133 function cats_meow($glue) {
    134         $current_cat = single_cat_title( '', false );
     247// Displays a list of all the terms the post has
     248function twentyten_terms_lists( $args = array() ) {
     249        global $wp_query;
     250       
     251        $defaults = array(
     252                'category' => __( 'Also posted in ', 'twentyten' ),
     253                'post_tag' => __( 'Tagged ', 'twentyten' ),
     254                'glue' => ', ',
     255                'sep' => ' | ',
     256                'end' => ' | ',
     257        );
     258       
     259        $args = wp_parse_args( $args, $defaults );
     260       
     261        $taxonomies = get_the_taxonomies();
     262        $current_tax = $wp_query->get_queried_object();
     263        $current_tax = isset($current_tax->name) ? $current_tax->name : ' ';
    135264        $separator = "\n";
    136         $cats = explode( $separator, get_the_category_list($separator) );
    137         foreach ( $cats as $i => $str ) {
    138                 if ( strstr( $str, ">$current_cat<" ) ) {
    139                         unset($cats[$i]);
    140                         break;
    141                 }
    142         }
    143         if ( empty($cats) )
     265       
     266        if ( empty($taxonomies) )
    144267                return false;
    145 
    146         return trim(join( $glue, $cats ));
    147 } // end cats_meow
    148 
    149 
    150 
    151 // For tag lists on tag archives: Returns other tags except the current one (redundant)
    152 function tag_ur_it($glue) {
    153         $current_tag = single_tag_title( '', '',  false );
    154         $separator = "\n";
    155         $tags = explode( $separator, get_the_tag_list( "", "$separator", "" ) );
    156         foreach ( $tags as $i => $str ) {
    157                 if ( strstr( $str, ">$current_tag<" ) ) {
    158                         unset($tags[$i]);
    159                         break;
     268               
     269        $tax_terms = array();
     270        $_tax_terms = array();
     271       
     272        $c = count( $taxonomies );
     273        $keys = array_keys( $taxonomies );
     274        foreach ( $taxonomies as $key => $value ) {
     275                $tax_terms[$key] = explode( $separator, get_the_term_list(0, $key, '', $separator, '') );               
     276                foreach ( $tax_terms[$key] as $i => $term ) {
     277                        if ( strstr( strip_tags($term), $current_tax ) ) {
     278                                unset( $tax_terms[$key][$i] );
     279                                break;
     280                        }
    160281                }
     282               
     283                if ( empty($tax_terms[$key]) )
     284                        continue;
     285               
     286                $tax_name = isset($args[$key]) ? $args[$key] : ' ' . ucwords($key) .' ';
     287               
     288                $_tax_terms[$key] = '<span class="entry-tax-'. $key .'">';
     289                $_tax_terms[$key] .= '<span class="entry-tax-name">'. $tax_name .'</span>';
     290                $_tax_terms[$key] .= trim( join( $args['glue'], $tax_terms[$key] ) ) . '</span>';
    161291        }
    162         if ( empty($tags) )
    163                 return false;
     292        echo apply_filters( 'twenty_terms_lists', join( $args['sep'], $_tax_terms ) . $args['end'] );
     293}
    164294
    165         return trim(join( $glue, $tags ));
    166 } // end tag_ur_it
    167295
    168 
    169296// Register widgetized areas
    170 function theme_widgets_init() {
     297function twentyten_widgets_init() {
    171298        // Area 1
    172         register_sidebar( array (
     299        register_sidebar( array(
    173300                'name' => 'Primary Widget Area',
    174301                'id' => 'primary-widget-area',
    175302                'description' => __('The primary widget area' , 'twentyten'),
     
    180307        ) );
    181308
    182309        // Area 2
    183         register_sidebar( array (
     310        register_sidebar( array(
    184311                'name' => 'Secondary Widget Area',
    185312                'id' => 'secondary-widget-area',
    186313                'description' => __('The secondary widget area' , 'twentyten'),
     
    191318        ) );
    192319
    193320        // Area 3
    194         register_sidebar( array (
     321        register_sidebar( array(
    195322                'name' => 'First Footer Widget Area',
    196323                'id' => 'first-footer-widget-area',
    197324                'description' => __('The first footer widget area' , 'twentyten'),
     
    202329        ) );
    203330
    204331        // Area 4
    205         register_sidebar( array (
     332        register_sidebar( array(
    206333                'name' => 'Second Footer Widget Area',
    207334                'id' => 'second-footer-widget-area',
    208335                'description' => __('The second footer widget area' , 'twentyten'),
     
    213340        ) );
    214341
    215342        // Area 5
    216         register_sidebar( array (
     343        register_sidebar( array(
    217344                'name' => 'Third Footer Widget Area',
    218345                'id' => 'third-footer-widget-area',
    219346                'description' => __('The third footer widget area' , 'twentyten'),
     
    224351        ) );
    225352
    226353        // Area 6
    227         register_sidebar( array (
     354        register_sidebar( array(
    228355                'name' => 'Fourth Footer Widget Area',
    229356                'id' => 'fourth-footer-widget-area',
    230357                'description' => __('The fourth footer widget area' , 'twentyten'),
     
    234361                'after_title' => '</h3>',
    235362        ) );
    236363
    237 } // end theme_widgets_init
     364}
    238365
    239 
    240 
    241366// Add all the groovy widget areas
    242 add_action( 'init', 'theme_widgets_init' );
     367add_action( 'init', 'twentyten_widgets_init' );
     368 No newline at end of file
  • wp-content/themes/twentyten/sidebar.php

     
    66                        </li>
    77
    88                        <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>
    1010                                <ul>
    11 <?php wp_get_archives('type=monthly') ?>
     11<?php wp_get_archives( 'type=monthly' ); ?>
    1212                                </ul>
    1313                        </li>
    1414
    1515                        <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>
    1717                                <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(); ?>
    2321                                </ul>
    2422                        </li>
    2523<?php endif; // end primary widget area  ?>
     
    2927<?php if ( is_active_sidebar('secondary-widget-area') ) : // Nothing here by default and design ?>
    3028                <div id="secondary" class="widget-area">
    3129                        <ul class="xoxo">
    32                                 <?php dynamic_sidebar('secondary-widget-area'); ?>
     30                                <?php dynamic_sidebar( 'secondary-widget-area' ); ?>
    3331                        </ul>
    3432                </div><!-- #secondary .widget-area -->
    3533<?php endif; ?>
     34 No newline at end of file
  • wp-content/themes/twentyten/tag.php

     
    33                <div id="container">
    44                        <div id="content">
    55
    6 <?php the_post(); ?>
     6                                <?php the_post(); ?>
     7                                <?php twentyten_page_title(); ?>
     8                                <?php twentyten_page_links(); ?>
     9                                <?php rewind_posts(); ?>
    710
    8                                 <h1 class="page-title"><?php _e( 'Tag Archives:', 'twentyten' ) ?> <span><?php single_tag_title() ?></span></h1>
    9 
    10 <?php rewind_posts(); ?>
    11 
    12 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    13                                 <div id="nav-above" class="navigation">
    14                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
    15                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    16                                 </div><!-- #nav-above -->
    17 <?php } ?>
    18 
    1911<?php while ( have_posts() ) : the_post(); ?>
    2012
    2113                                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    2214                                        <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>
    2315
    2416                                        <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 the_time( get_option( 'date_format' ) ); ?></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>
     17                                                <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
     18                                                <span class="entry-date"><abbr class="published" title="<?php the_time( get_option( 'date_format' ) .' '. get_option( 'time_format' ) ); ?>"><?php the_time( get_option('date_format') ); ?></abbr></span>
     19                                                <span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span>
     20                                                <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>
    2921                                        </div><!-- .entry-meta -->
    3022
    3123                                        <div class="entry-summary">
    32 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
     24                                                <?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    3325                                        </div><!-- .entry-summary -->
    3426
    3527                                        <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>
    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>
    40 <?php endif; ?>
     28                                                <?php twentyten_terms_lists(); ?>
    4129                                                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
    4230                                                <?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" ) ?>
    4331                                        </div><!-- #entry-utility -->
     
    4533
    4634<?php endwhile; ?>
    4735
    48 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    49                                 <div id="nav-below" class="navigation">
    50                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
    51                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    52                                 </div><!-- #nav-below -->
    53 <?php } ?>
     36                                <?php twentyten_page_links(); ?>
    5437
    5538                        </div><!-- #content -->
    5639                </div><!-- #container -->
  • wp-content/themes/twentyten/page.php

     
    88                                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    99                                        <h1 class="entry-title"><?php the_title(); ?></h1>
    1010                                        <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>' ); ?>
    1414                                        </div><!-- .entry-content -->
    1515                                </div><!-- #post-<?php the_ID(); ?> -->
    1616
    17 <?php comments_template(); ?>
     17<?php comments_template( '', true ); ?>
    1818
    1919                        </div><!-- #content -->
    2020                </div><!-- #container -->
  • wp-content/themes/twentyten/category.php

     
    1 
    21<?php get_header(); ?>
    32
    43                <div id="container">
    54                        <div id="content">
    65
    7 <?php the_post(); ?>
     6                                <?php the_post(); ?>
     7                                <?php twentyten_page_title(); ?>
     8                                <?php twentyten_page_links(); ?>
     9                                <?php rewind_posts(); ?>
    810
    9                                 <h1 class="page-title"><?php _e( 'Category Archives:', 'twentyten' ) ?> <span><?php single_cat_title() ?></span></span></h1>
    10                                 <?php $categorydesc = category_description(); if ( !empty($categorydesc) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?>
    11 
    12 <?php rewind_posts(); ?>
    13 
    14 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    15                                 <div id="nav-above" class="navigation">
    16                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
    17                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    18                                 </div><!-- #nav-above -->
    19 <?php } ?>
    20 
    2111<?php while ( have_posts() ) : the_post(); ?>
    2212
    2313                                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    2414                                        <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>
    2515
    2616                                        <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 the_time( get_option( 'date_format' ) ); ?></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>
     17                                                <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
     18                                                <a href="<?php the_permalink(); ?>" title="<?php the_time( get_option( 'date_format' ) .' '. get_option( 'time_format' ) ); ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
     19                                                <span class="meta-sep"><?php _e( ' by ', 'twentyten' ); ?></span>
     20                                                <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>
    3221                                        </div><!-- .entry-meta -->
    3322
    3423                                        <div class="entry-summary">
    3524<?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
    3625                                        </div><!-- .entry-summary -->
    37 
     26                                       
    3827                                        <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>
    42 <?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" ) ?>
     28                                                <?php twentyten_terms_lists(); ?>
    4429                                                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
    4530                                                <?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" ) ?>
    4631                                        </div><!-- #entry-utility -->
     
    4833
    4934<?php endwhile; ?>
    5035
    51 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    52                                 <div id="nav-below" class="navigation">
    53                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
    54                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    55                                 </div><!-- #nav-below -->
    56 <?php } ?>
     36                                <?php twentyten_page_links(); ?>
    5737
    5838                        </div><!-- #content -->
    5939                </div><!-- #container -->
  • wp-content/themes/twentyten/archive.php

     
    33                <div id="container">
    44                        <div id="content">
    55
    6 <?php the_post(); ?>
     6                                <?php the_post(); ?>
     7                                <?php twentyten_page_title(); ?>
     8                                <?php twentyten_page_links(); ?>
     9                                <?php rewind_posts(); ?>
    710
    8 <?php if ( is_day() ) : ?>
    9                                 <h1 class="page-title"><?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_time(get_option('date_format')) ) ?></h1>
    10 <?php elseif ( is_month() ) : ?>
    11                                 <h1 class="page-title"><?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_time('F Y') ) ?></h1>
    12 <?php elseif ( is_year() ) : ?>
    13                                 <h1 class="page-title"><?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_time('Y') ) ?></h1>
    14 <?php elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) : ?>
    15                                 <h1 class="page-title"><?php _e( 'Blog Archives', 'twentyten' ) ?></h1>
    16 <?php endif; ?>
    17 
    18 <?php rewind_posts(); ?>
    19 
    20 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    21                                 <div id="nav-above" class="navigation">
    22                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
    23                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    24                                 </div><!-- #nav-above -->
    25 <?php } ?>
    26 
    2711<?php while ( have_posts() ) : the_post(); ?>
    2812
    2913                                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    3014                                        <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>
    3115
    3216                                        <div class="entry-meta">
    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 the_time( get_option( 'date_format' ) ); ?></span></a>
    36                                                 <span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
     17                                                <span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
     18                                                <a href="<?php the_permalink(); ?>" title="<?php the_time( get_option( 'date_format' ) .' '. get_option( 'time_format' ) ); ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
     19                                                <span class="meta-sep"><?php _e( ' by ', 'twentyten'); ?></span>
    3720                                                <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>
    3821                                        </div><!-- .entry-meta -->
    3922
     
    4225                                        </div><!-- .entry-summary -->
    4326
    4427                                        <div class="entry-utility">
    45                                                 <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" ) ?>
     28                                                <?php twentyten_terms_lists(); ?>
     29                                                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
     30                                                <?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" ); ?>
    5031                                        </div><!-- #entry-utility -->
    5132                                </div><!-- #post-<?php the_ID(); ?> -->
    5233
    5334<?php endwhile; ?>
    5435
    55 <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
    56                                 <div id="nav-below" class="navigation">
    57                                         <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
    58                                         <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
    59                                 </div><!-- #nav-below -->
    60 <?php } ?>
     36                                <?php twentyten_page_links(); ?>
    6137
    6238                        </div><!-- #content -->
    6339                </div><!-- #container -->
  • wp-content/themes/twentyten/single.php

     
    66<?php the_post(); ?>
    77
    88                                <div id="nav-above" class="navigation">
    9                                         <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&larr;</span> %title' ) ?></div>
    10                                         <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&rarr;</span>' ) ?></div>
     9                                        <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&larr;</span> %title' ); ?></div>
     10                                        <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&rarr;</span>' ); ?></div>
    1111                                </div><!-- #nav-above -->
    1212
    1313                                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1414                                        <h1 class="entry-title"><?php the_title(); ?></h1>
    1515
    1616                                        <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 the_time( get_option( 'date_format' ) ); ?></span></a>
     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 ); ?>" 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( get_option( 'date_format' ) .' '. get_option( 'time_format' ) ); ?>" rel="bookmark"><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span></a>
    2221                                                <?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" ) ?>
    2322                                        </div><!-- .entry-meta -->
    2423
    2524                                        <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>' ); ?>
    2827                                        </div><!-- .entry-content -->
    2928
    3029<?php if ( get_the_author_meta('description') ) : // If a user has filled out their decscription show a bio on their entries  ?>
    3130                                        <div id="entry-author-info">
    3231                                                <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) ); ?>
    3433                                                </div><!-- #author-avatar       -->
    3534                                                <div id="author-description">
    3635                                                        <h2><?php _e('About ', 'twentyten'); ?><?php the_author(); ?></h2>
    37 <?php the_author_meta('description'); ?>
     36                                                        <?php the_author_meta( 'description' ); ?>
    3837                                                        <div id="author-link">
    3938                                                                <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(); ?> &rarr;</a>
    4039                                                        </div><!-- #author-link -->
     
    4342<?php endif; ?>
    4443
    4544                                        <div class="entry-utility">
    46                                         <?php printf( __( 'This entry was posted in %1$s%2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' ),
    47                                                 get_the_category_list(', '),
    48                                                 get_the_tag_list( __( ' and tagged ', 'twentyten' ), ', ', '' ),
    49                                                 get_permalink(),
    50                                                 the_title_attribute('echo=0'),
    51                                                 get_post_comments_feed_link() ) ?>
    52 
    53 <?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
     45                                                <?php twentyten_terms_lists( $args = array(
     46                                                        'category' => __( 'This entry was posted in ', 'twentyten' ),
     47                                                        'post_tag' => __( ' and tagged ', 'twentyten' ),
     48                                                        'glue' => ', ',
     49                                                        'sep' => '',
     50                                                        'end' => '. ',
     51                                                ) );
     52                                                printf( __( 'Bookmark the <a href="%1$s" title="Permalink to %2$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%3$s" title="Comments RSS to %2$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' ),
     53                                                        get_permalink(),
     54                                                        the_title_attribute( 'echo=0' ),
     55                                                        get_post_comments_feed_link()
     56                                                ); ?>
     57                                               
     58                                                <?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
     59                                                        <?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() ); ?>
     60                                                <?php elseif ( !comments_open() && pings_open() ) : // Only trackbacks open ?>
     61                                                        <?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() ); ?>
     62                                                <?php elseif ( comments_open() && !pings_open() ) : // Only comments open ?>
     63                                                        <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyten' ); ?>
     64                                                <?php elseif ( !comments_open() && !pings_open() ) : // Comments and trackbacks closed ?>
     65                                                        <?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ); ?>
     66                                                <?php endif; ?>
     67                                                <?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ); ?>
    5468                                        </div><!-- .entry-utility -->
    5569                                </div><!-- #post-<?php the_ID(); ?> -->
    5670
    5771                                <div id="nav-below" class="navigation">
    58                                         <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&larr;</span> %title' ) ?></div>
    59                                         <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&rarr;</span>' ) ?></div>
     72                                        <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&larr;</span> %title' ); ?></div>
     73                                        <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&rarr;</span>' ); ?></div
    6074                                </div><!-- #nav-below -->
    6175
    62 <?php comments_template('', true); ?>
     76                                <?php comments_template( '', true ); ?>
    6377
    6478                        </div><!-- #content -->
    6579                </div><!-- #container -->
  • wp-content/themes/twentyten/comments.php

     
    11                        <div id="comments">
    22<?php
    33        // Do not delete these lines
    4         $req = get_option('require_name_email'); // Checks if fields are required.
     4        $req = (bool) get_option( 'require_name_email' ); // Checks if fields are required.
    55        if ( 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']) )
    66                die ( 'Please do not load this page directly. Thanks!' );
    77        if ( post_password_required() ) :
    88?>
    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>
    1010                        </div><!-- .comments -->
    1111<?php
    1212                return;
     
    2222
    2323<?php $total_pages = get_comment_pages_count(); if ( $total_pages > 1 ) : // are there comments to navigate through ?>
    2424                        <div class="navigation">
    25                                 <div class="nav-previous"><?php previous_comments_link( __('&larr; Older Comments', 'twentyten') ) ?></div>
    26                                 <div class="nav-next"><?php next_comments_link( __('Newer Comments &rarr;', 'twentyten') ) ?></div>
     25                                <div class="nav-previous"><?php previous_comments_link( __('&larr; Older Comments', 'twentyten') ); ?></div>
     26                                <div class="nav-next"><?php next_comments_link( __('Newer Comments &rarr;', 'twentyten') ); ?></div>
    2727                        </div>
    2828<?php endif; // check for comment navigation ?>
    2929
    3030                        <ol class="commentlist">
    31                         <?php wp_list_comments( array('callback' => 'twentyten_comment') ); ?>
     31                        <?php wp_list_comments( array('callback' => 'twentyten_list_comments') ); ?>
    3232                        </ol>
    3333
    3434<?php $total_pages = get_comment_pages_count(); if ( $total_pages > 1 ) : // are there comments to navigate through ?>
    3535                        <div class="navigation">
    36                                 <div class="nav-previous"><?php previous_comments_link( __('&larr; Older Comments', 'twentyten') ) ?></div>
    37                                 <div class="nav-next"><?php next_comments_link( __('Newer Comments &rarr;', 'twentyten') ) ?></div>
     36                                <div class="nav-previous"><?php previous_comments_link( __('&larr; Older Comments', 'twentyten') ); ?></div>
     37                                <div class="nav-next"><?php next_comments_link( __('Newer Comments &rarr;', 'twentyten') ); ?></div>
    3838                        </div>
    3939<?php endif; // check for comment navigation ?>
    4040
     
    4444
    4545<?php else : // if comments are closed ?>
    4646
    47                 <p class="nocomments"><?php _e('Comments are closed.', 'twentyten'); ?></p>
     47                <p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p>
    4848
    4949<?php endif; ?>
    5050<?php endif; ?>
  • wp-content/themes/twentyten/header.php

     
    11<!DOCTYPE html>
    22<html <?php language_attributes(); ?>>
    33<head>
    4     <title><?php
    5         if ( is_single() ) { single_post_title(); print ' | '; bloginfo('name'); }
    6         elseif ( is_home() || is_front_page() ) { bloginfo('name'); print ' | '; bloginfo('description'); get_page_number(); }
    7         elseif ( is_page() ) { single_post_title(''); print ' | '; bloginfo('name'); }
    8         elseif ( is_search() ) { print 'Search results for ' . wp_specialchars($s); get_page_number(); print ' | '; bloginfo('name'); }
    9         elseif ( is_404() ) { print 'Not Found | '; bloginfo('name'); }
    10         else { bloginfo('name'); wp_title('|'); get_page_number(); }
    11     ?></title>
     4    <title><?php twentyten_document_title(); ?></title>
    125
    13         <meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    14 
     6        <meta http-equiv="content-type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
    157        <link rel="profile" href="http://gmpg.org/xfn/11">
    16         <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
    17         <link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo('stylesheet_directory'); ?>/print.css" />
    18 
    19         <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    20 
     8       
    219        <?php wp_head(); ?>
    2210
    23         <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php printf( esc_attr__( '%s latest posts', 'twentyten' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
    24         <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( esc_attr__( '%s latest comments', 'twentyten' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
    25         <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
     11        <link rel="alternate" type="application/rss+xml" href="<?php bloginfo( 'rss2_url' ); ?>" title="<?php printf( esc_attr__( '%s latest posts', 'twentyten' ), esc_attr( get_bloginfo('name'), 1 ) ); ?>" />
     12        <link rel="alternate" type="application/rss+xml" href="<?php bloginfo( 'comments_rss2_url' ); ?>" title="<?php printf( esc_attr__( '%s latest comments', 'twentyten' ), esc_attr( get_bloginfo('name'), 1 ) ); ?>" />
     13        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    2614</head>
    2715
    2816<body <?php body_class(); ?>>
     
    3220                <div id="masthead">
    3321
    3422                        <div id="branding">
    35                                 <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>
    36                                 <div id="site-description"><?php bloginfo( 'description' ) ?></div>
    37 
    38                                 <?php
    39                                         global $post;
    40                                         if ( is_singular() && has_post_thumbnail( $post->ID ) ) {
    41                                                 echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
    42                                         } else { ?>
    43                                         <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    44                                 <?php } ?>
     23                                <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>
     24                                <div id="site-description"><?php bloginfo( 'description' ); ?></div>
     25                                <?php twentyten_header_image(); ?>
    4526                        </div><!-- #branding -->
    4627
    4728                        <div id="access">
    48                                 <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>
     29                                <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>
    4930                                <?php wp_page_menu( 'sort_column=menu_order' ); ?>
    5031                        </div><!-- #access -->
    5132
  • wp-content/themes/twentyten/attachment.php

     
    55
    66<?php the_post(); ?>
    77
    8                                 <p class="page-title"><a href="<?php echo get_permalink($post->post_parent) ?>" title="<?php printf( esc_attr__( 'Return to %s', 'twentyten' ), wp_specialchars( get_the_title($post->post_parent), 1 ) ) ?>" rel="gallery">&larr; <?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_attr( get_the_title($post->post_parent), 1 ) ); ?>" rel="gallery">&larr; <?php echo get_the_title( $post->post_parent ); ?></a></p>
    99
    1010                                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1111                                        <h2 class="entry-title"><?php the_title(); ?></h2>
    1212
    1313                                        <div class="entry-meta">
    14                                                 <span class="meta-prep meta-prep-author"><?php _e('By ', 'twentyten'); ?></span>
    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 the_time( get_option( 'date_format' ) ); ?></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" ) ?>
     14                                                <span class="meta-prep meta-prep-author"><?php _e( 'By ', 'twentyten' ); ?></span>
     15                                                <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>
     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( get_option( 'date_format' ) .' '. get_option( 'time_format' ) ); ?>"><?php the_time( get_option('date_format') ); ?></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" ); ?>
    2020                                        </div><!-- .entry-meta -->
    21 
     21                                       
    2222                                        <div class="entry-content">
    2323                                                <div class="entry-attachment">
    24 <?php if ( wp_attachment_is_image( $post->id ) ) : $att_image = wp_get_attachment_image_src( $post->id, array(640,640)); ?>
    25                                                 <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->id); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><img src="<?php echo $att_image[0];?>" width="<?php echo $att_image[1];?>" height="<?php echo $att_image[2];?>"  class="attachment-medium" alt="<?php $post->post_excerpt; ?>" /></a>
    26                                                 </p>
    27 
    28 
    29                                 <div id="nav-below" class="navigation">
    30                                         <div class="nav-previous"><?php previous_image_link( false ); ?></div>
    31                                         <div class="nav-next"><?php next_image_link( false ); ?></div>
    32                                 </div><!-- #nav-below -->
     24<?php if ( wp_attachment_is_image( $post->id ) ) : $att_image = wp_get_attachment_image_src( $post->id, array(640,640) ); ?>
     25                                                        <p class="attachment"><a href="<?php echo wp_get_attachment_url( $post->id ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><img src="<?php echo $att_image[0];?>" width="<?php echo $att_image[1];?>" height="<?php echo $att_image[2];?>"  class="attachment-medium" alt="<?php $post->post_excerpt; ?>" /></a></p>
     26                                               
     27                                                        <div id="nav-below" class="navigation">
     28                                                                <div class="nav-previous"><?php previous_image_link( false ); ?></div>
     29                                                                <div class="nav-next"><?php next_image_link( false ); ?></div>
     30                                                        </div><!-- #nav-below -->
    3331<?php else : ?>
    34                                                 <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($post->guid) ?></a>
     32                                                <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($post->guid); ?></a>
    3533<?php endif; ?>
    36                                                 </div>
    37                                                 <div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt() ?></div>
     34                                                </div><!-- .entry-attachment -->
     35                                                <div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?></div>
    3836
    39 <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    40 <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>') ?>
     37                                                <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
     38                                                <?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?>
    4139
    4240                                        </div><!-- .entry-content -->
    4341
    4442                                        <div class="entry-utility">
    45                                         <?php printf( __( 'This entry was posted in %1$s%2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%5$s" title="Comments RSS to %4$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' ),
    46                                                 get_the_category_list(', '),
    47                                                 get_the_tag_list( __( ' and tagged ', 'twentyten' ), ', ', '' ),
    48                                                 get_permalink(),
    49                                                 the_title_attribute('echo=0'),
    50                                                 comments_rss() ) ?>
    51 
    52 <?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
    53                                                 <?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 elseif ( !comments_open() && pings_open() ) : // Only trackbacks open ?>
    55                                                 <?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 elseif ( comments_open() && !pings_open() ) : // Only comments open ?>
    57                                                 <?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 elseif ( !comments_open() && !pings_open() ) : // Comments and trackbacks closed ?>
    59                                                 <?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ) ?>
    60 <?php endif; ?>
    61 <?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
     43                                                <?php twentyten_terms_lists( $args = array(
     44                                                        'category' => __( 'This entry was posted in ', 'twentyten' ),
     45                                                        'post_tag' => __( ' and tagged ', 'twentyten' ),
     46                                                        'glue' => ', ',
     47                                                        'sep' => '',
     48                                                        'end' => '. ',
     49                                                ) );
     50                                                printf( __( 'Bookmark the <a href="%1$s" title="Permalink to %2$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%3$s" title="Comments RSS to %2$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'twentyten' ),
     51                                                        get_permalink(),
     52                                                        the_title_attribute( 'echo=0' ),
     53                                                        get_post_comments_feed_link()
     54                                                ); ?>
     55                                               
     56                                                <?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
     57                                                        <?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() ); ?>
     58                                                <?php elseif ( !comments_open() && pings_open() ) : // Only trackbacks open ?>
     59                                                        <?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() ); ?>
     60                                                <?php elseif ( comments_open() && !pings_open() ) : // Only comments open ?>
     61                                                        <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyten' ); ?>
     62                                                <?php elseif ( !comments_open() && !pings_open() ) : // Comments and trackbacks closed ?>
     63                                                        <?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ); ?>
     64                                                <?php endif; ?>
     65                                                <?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ); ?>
    6266                                        </div><!-- .entry-utility -->
    6367                                </div><!-- #post-<?php the_ID(); ?> -->
    6468
    65 <?php comments_template(); ?>
     69                                <?php comments_template( '', true ); ?>
    6670
    6771                        </div><!-- #content -->
    6872                </div><!-- #container -->