Index: wp-content/themes/twentyten/searchform.php
===================================================================
--- wp-content/themes/twentyten/searchform.php	(revision 13052)
+++ wp-content/themes/twentyten/searchform.php	(working copy)
@@ -1,7 +1,7 @@
-    <form id="searchform" name="searchform" method="get" action="<?php echo home_url(); ?>">
+    <form id="searchform" name="searchform" method="get" action="<?php echo home_url(); ?>/">
 		<div>
-			<label for="s"><?php _e('Search', 'twentyten'); ?></label>
+			<label for="s"><?php _e( 'Search', 'twentyten' ); ?></label>
 			<input type="text" id="s" name="s" />
-			<input type="submit" id="searchsubmit" value="<?php esc_attr_e('Search', 'twentyten'); ?>" />
+			<input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyten' ); ?>" />
 		</div>
     </form>
\ No newline at end of file
Index: wp-content/themes/twentyten/footer.php
===================================================================
--- wp-content/themes/twentyten/footer.php	(revision 13052)
+++ wp-content/themes/twentyten/footer.php	(working copy)
@@ -3,10 +3,10 @@
 	<div id="footer">
 		<div id="colophon">
 
-<?php get_sidebar('footer'); ?>
+			<?php get_sidebar( 'footer' ); ?>
 
 			<div id="site-info">
-				<a href="<?php bloginfo( 'url' ) ?>/" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ) ?></a>
+				<a href="<?php home_url(); ?>/" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
 			</div>
 
 			<div id="site-generator">
@@ -21,4 +21,4 @@
 <?php wp_footer(); ?>
 
 </body>
-</html>
+</html>
\ No newline at end of file
Index: wp-content/themes/twentyten/author.php
===================================================================
--- wp-content/themes/twentyten/author.php	(revision 13052)
+++ wp-content/themes/twentyten/author.php	(working copy)
@@ -3,40 +3,19 @@
 		<div id="container">
 			<div id="content">
 
-<?php the_post(); ?>
+				<?php the_post(); ?>
+				<?php twentyten_page_title(); ?>
+				<?php twentyten_page_links(); ?>
+				<?php rewind_posts(); ?>
 
-				<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>
-
-<?php if ( get_the_author_meta('description') ) : // If a user has filled out their decscription show a bio on their entries  ?>
-					<div id="entry-author-info">
-						<div id="author-avatar">
-<?php echo get_avatar( get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60) ); ?>
-						</div><!-- #author-avatar 	-->
-						<div id="author-description">
-							<h2><?php _e('About ', 'twentyten'); ?><?php the_author(); ?></h2>
-<?php the_author_meta('description'); ?>
-						</div><!-- #author-description	-->
-					</div><!-- .entry-author-info -->
-<?php endif; ?>
-
-<?php rewind_posts(); ?>
-
-<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
-				<div id="nav-above" class="navigation">
-					<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
-					<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
-				</div><!-- #nav-above -->
-<?php } ?>
-
 <?php while ( have_posts() ) : the_post(); ?>
 
 				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 					<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>
 
 					<div class="entry-meta">
-						<span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span>
-						<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>
+						<span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
+						<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>
 					</div><!-- .entry-meta -->
 
 					<div class="entry-summary">
@@ -44,22 +23,17 @@
 					</div><!-- .entry-summary -->
 
 					<div class="entry-utility">
-						<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>
+						<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>
 						<span class="meta-sep"> | </span>
-						<?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" ) ?>
-						<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
-						<?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" ) ?>
+						<?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" ); ?>
+						<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
+						<?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" ); ?>
 					</div><!-- #entry-utility -->
 				</div><!-- #post-<?php the_ID(); ?> -->
 
 <?php endwhile; ?>
 
-<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
-				<div id="nav-below" class="navigation">
-					<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
-					<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
-				</div><!-- #nav-below -->
-<?php } ?>
+				<?php twentyten_page_links(); ?>
 
 			</div><!-- #content -->
 		</div><!-- #container -->
Index: wp-content/themes/twentyten/sidebar-footer.php
===================================================================
--- wp-content/themes/twentyten/sidebar-footer.php	(revision 13052)
+++ wp-content/themes/twentyten/sidebar-footer.php	(working copy)
@@ -1,11 +1,11 @@
 <?php
-	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') ) :
+	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') ) :
 ?>
 			<div id="footer-widget-area">
 <?php if ( is_active_sidebar('first-footer-widget-area') ) : ?>
 					<div id="first" class="widget-area">
 						<ul class="xoxo">
-							<?php dynamic_sidebar('first-footer-widget-area'); ?>
+							<?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
 						</ul>
 					</div><!-- #first .widget-area -->
 <?php endif; ?>
@@ -13,7 +13,7 @@
 <?php if ( is_active_sidebar('second-footer-widget-area') ) : ?>
 				<div id="second" class="widget-area">
 					<ul class="xoxo">
-						<?php dynamic_sidebar('second-footer-widget-area'); ?>
+						<?php dynamic_sidebar( 'second-footer-widget-area' ); ?>
 					</ul>
 				</div><!-- #second .widget-area -->
 <?php endif; ?>
@@ -21,7 +21,7 @@
 <?php if ( is_active_sidebar('third-footer-widget-area') ) : ?>
 				<div id="third" class="widget-area">
 					<ul class="xoxo">
-						<?php dynamic_sidebar('third-footer-widget-area'); ?>
+						<?php dynamic_sidebar( 'third-footer-widget-area' ); ?>
 					</ul>
 				</div><!-- #third .widget-area -->
 <?php endif; ?>
@@ -29,7 +29,7 @@
 <?php if ( is_active_sidebar('fourth-footer-widget-area') ) : ?>
 				<div id="fourth" class="widget-area">
 					<ul class="xoxo">
-						<?php dynamic_sidebar('fourth-footer-widget-area'); ?>
+						<?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?>
 					</ul>
 				</div><!-- #fourth .widget-area -->
 <?php endif; ?>
Index: wp-content/themes/twentyten/search.php
===================================================================
--- wp-content/themes/twentyten/search.php	(revision 13052)
+++ wp-content/themes/twentyten/search.php	(working copy)
@@ -5,62 +5,49 @@
 
 <?php if ( have_posts() ) : ?>
 
-				<h1 class="page-title"><?php _e( 'Search Results for: ', 'twentyten' ); ?><span><?php the_search_query(); ?></span></h1>
+				<?php twentyten_page_title(); ?>
+				<?php twentyten_page_links(); ?>
 
-<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
-				<div id="nav-above" class="navigation">
-					<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
-					<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
-				</div><!-- #nav-above -->
-<?php } ?>
+<?php while ( have_posts() ) : the_post(); ?>
 
-<?php while ( have_posts() ) : the_post() ?>
-
 				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 					<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>
 
-<?php if ( $post->post_type == 'post' ) { ?>
+<?php if ( $post->post_type != 'page' ) { ?>
 					<div class="entry-meta">
-						<span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span>
-						<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>
-						<span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
-						<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>
+						<span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
+						<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>
+						<span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span>
+						<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>
 					</div><!-- .entry-meta -->
 <?php } ?>
 
 					<div class="entry-summary">
-<?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
-<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>') ?>
+						<?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
+						<?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?>
 					</div><!-- .entry-summary -->
 
-<?php if ( $post->post_type == 'post' ) { ?>
+<?php if ( $post->post_type != 'page' ) { ?>
 					<div class="entry-utility">
-						<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>
-						<span class="meta-sep"> | </span>
-						<?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" ) ?>
-						<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
-						<?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" ) ?>
+						<?php twentyten_terms_lists(); ?>
+						<span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span>
+						<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
+						<?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" ); ?>
 					</div><!-- #entry-utility -->
 <?php } ?>
 				</div><!-- #post-<?php the_ID(); ?> -->
 
 <?php endwhile; ?>
 
-<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
-				<div id="nav-below" class="navigation">
-					<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
-					<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
-				</div><!-- #nav-below -->
-<?php } ?>
+				<?php twentyten_page_links(); ?>
 
 <?php else : ?>
 
 				<div id="post-0" class="post no-results not-found">
-					<h2 class="entry-title"><?php _e( 'Nothing Found', 'twentyten' ) ?></h2>
+					<h2 class="entry-title"><?php _e( 'Nothing Found', 'twentyten' ); ?></h2>
 					<div class="entry-content">
 						<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyten' ); ?></p>
-	<?php get_search_form(); ?>
+						<?php get_search_form(); ?>
 					</div><!-- .entry-content -->
 				</div>
 
Index: wp-content/themes/twentyten/404.php
===================================================================
--- wp-content/themes/twentyten/404.php	(revision 13052)
+++ wp-content/themes/twentyten/404.php	(working copy)
@@ -4,9 +4,9 @@
 		<div id="content">
 
 			<div id="post-0" class="post error404 not-found">
-				<h1 class="entry-title">Not Found</h1>
+				<h1 class="entry-title"><?php _e( 'Not Found', 'twentyten' ); ?></h1>
 				<div class="entry-content">
-					<p>Apologies, but the page you requested could not be found. Perhaps searching will help.</p>
+					<p><?php _e( 'Apologies, but the page you requested could not be found. Perhaps searching will help.', 'twentyten' ); ?></p>
 					<?php get_search_form(); ?>
 				</div><!-- .entry-content -->
 			</div><!-- #post-0 -->
Index: wp-content/themes/twentyten/index.php
===================================================================
--- wp-content/themes/twentyten/index.php	(revision 13052)
+++ wp-content/themes/twentyten/index.php	(working copy)
@@ -3,12 +3,7 @@
 		<div id="container">
 			<div id="content">
 
-<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
-				<div id="nav-above" class="navigation">
-					<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
-					<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
-				</div><!-- #nav-above -->
-<?php } ?>
+			<?php twentyten_page_links(); ?>
 
     <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
     <?php if ( in_category( 'Gallery' ) ) { ?>
@@ -16,19 +11,16 @@
 			<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>
 
 			<div class="entry-meta">
-				<span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span>
-				<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>
-				<span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
-				<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>
+				<span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
+				<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>
+				<span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span>
+				<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>
 			</div><!-- .entry-meta -->
 
 			<div class="entry-content">
-				<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>
-
-				<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>
-
-				<?php the_excerpt(''); ?>
+				<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>
+				<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>
+				<?php the_excerpt( '' ); ?>
 			</div><!-- .entry-content -->
 
 			<div class="entry-utility">
@@ -36,13 +28,10 @@
 				    $category_id = get_cat_ID( 'Gallery' );
 				    $category_link = get_category_link( $category_id );
 				?>
-				<a href="<?php echo $category_link; ?>" title="<?php esc_attr_e('View posts in the Gallery category', 'twentyten'); ?>"><?php _e('More Galleries', 'twentyten'); ?></a>
-
-				<span class="meta-sep"> | </span>
-
+				<a href="<?php echo $category_link; ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
+				<span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span>
 				<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
-
-			<?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" ) ?>
+				<?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" ); ?>
 			</div><!-- #entry-utility -->
 		</div>
 
@@ -50,17 +39,17 @@
 	<?php } elseif ( in_category( 'asides' ) ) { ?>
 		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 			<div class="entry-content">
-<?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
+				<?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
 			</div><!-- .entry-content -->
 
 			<div class="entry-utility">
-				<span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span>
+				<span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
 				<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>
-				<span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
-				<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>
-				<span class="meta-sep"> | </span>
-				<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
+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>
+				<span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span>
+				<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>
+				<span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span>
+				<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
 				<?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" ) ?>
 			</div><!-- #entry-utility -->
 		</div><!-- #post-<?php the_ID(); ?> -->
@@ -71,28 +60,26 @@
 			<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>
 
 			<div class="entry-meta">
-				<span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span>
-				<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>
-				<span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
-				<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>
+				<span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
+				<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>
+				<span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span>
+				<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>
 			</div><!-- .entry-meta -->
 
 			<div class="entry-content">
-<?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
-<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>') ?>
+				<?php the_content( __( 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
+				<?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?>
 			</div><!-- .entry-content -->
 
 			<div class="entry-utility">
-				<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>
-				<span class="meta-sep"> | </span>
-				<?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" ) ?>
+				<?php twentyten_terms_lists(); ?>
+				<span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span>
 				<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
 				<?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" ) ?>
 			</div><!-- #entry-utility -->
 		</div><!-- #post-<?php the_ID(); ?> -->
 
-<?php comments_template(); ?>
+		<?php comments_template( '', true ); ?>
 
     <?php } ?>
     <?php endwhile; ?>
@@ -104,15 +91,10 @@
 		</div>
     <?php endif; ?>
 
-<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
-				<div id="nav-below" class="navigation">
-					<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
-					<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
-				</div><!-- #nav-below -->
-<?php } ?>
+<?php twentyten_page_links(); ?>
 
 			</div><!-- #content -->
 		</div><!-- #container -->
 
 <?php get_sidebar(); ?>
-<?php get_footer(); ?>
+<?php get_footer(); ?>
\ No newline at end of file
Index: wp-content/themes/twentyten/functions.php
===================================================================
--- wp-content/themes/twentyten/functions.php	(revision 13052)
+++ wp-content/themes/twentyten/functions.php	(working copy)
@@ -1,12 +1,14 @@
 <?php
-
 // Set the content width based on the Theme CSS
-$content_width = apply_filters('twentyten_content_width', 640 );
+$content_width = apply_filters( 'twentyten_content_width', 640 );
 
+// Enables automatic general feed link outputting
+automatic_feed_links();
+
 // Your Changeable header business starts here
 // No CSS, just IMG call
-define( 'HEADER_TEXTCOLOR', '');
-define( 'HEADER_IMAGE', '%s/images/header-1.jpg'); // %s is theme dir uri
+define( 'HEADER_TEXTCOLOR', '' );
+define( 'HEADER_IMAGE', '%s/images/header-1.jpg' ); // %s is theme dir uri
 define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width',  940 ) );
 define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height',  198 ) );
 define( 'NO_HEADER_TEXT', true );
@@ -25,7 +27,7 @@
 <?php
 }
 
-add_custom_image_header('', 'twentyten_admin_header_style');
+add_custom_image_header( '', 'twentyten_admin_header_style' );
 // and thus ends the changeable header business
 
 add_custom_background();
@@ -44,74 +46,190 @@
 $locale = get_locale();
 $locale_file = TEMPLATEPATH . "/languages/$locale.php";
 if ( is_readable($locale_file) )
-	require_once($locale_file);
+	require_once( $locale_file );
 
 
+// Get the page title
+function twentyten_document_title( $sep = '|' ) {
+	$title = null;
+	
+	if ( is_single() ) {
+		$title = sprintf( '%1$s %2$s %3$s', single_post_title( '', false ), $sep, get_bloginfo( 'name' ) );
+		
+	} elseif ( is_home() OR is_front_page() ) {
+		$title = sprintf( '%1$s %2$s %3$s %4$s', get_bloginfo( 'name' ), $sep, get_bloginfo( 'description' ), twentyten_get_page_number($sep) );
+		
+	} elseif ( is_page() ) {
+		$title = sprintf( '%1$s %2$s %3$s', single_post_title( '', false ), $sep, get_bloginfo( 'name' ) );
+		
+	} elseif ( is_search() ) {
+		$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') );
+		
+	} elseif ( is_404() ) {
+		$title = sprintf( __( 'Not Found %1$s %1$s', 'twentyten' ), $sep, get_bloginfo( 'name' ) );
+		
+	} else {
+		$title = sprintf( '%1$s %2$s %3$s', get_bloginfo( 'name' ), wp_title($sep, false), twentyten_get_page_number($sep) );
+	}
+	
+	echo apply_filters( 'twentyten_page_title', $title );
+}
 
 // Get the page number
-function get_page_number() {
+function twentyten_get_page_number( $sep = '|' ) {
 	if ( get_query_var('paged') )
-		print ' | ' . __( 'Page ' , 'twentyten') . get_query_var('paged');
-} // end get_page_number
+		return sprintf( __( ' %1$s Page %2$s' , 'twentyten' ), $sep, get_query_var( 'paged' ) );
+}
 
 
+// Enqueue the CSS stylesheets
+function twentyten_enqueue_styles() {
+	if ( !is_admin() ) {
+		wp_enqueue_style( 'twentyten_style', get_bloginfo( 'stylesheet_url' ) );
+		wp_enqueue_style( 'twentyten_print', get_stylesheet_directory_uri() . '/print.css', null, false, 'print' );
+	}
+}
+add_action( 'init', 'twentyten_enqueue_styles' );
 
+
+// Enqueues the javascript for comment replys
+function twentyten_enqueue_scripts() {
+	if ( is_singular() and get_site_option('thread_comments') )
+		wp_print_scripts( 'comment-reply' );
+}
+add_action( 'wp_head', 'twentyten_enqueue_scripts' );
+
+
+// Displays the post thumbnail image on singular pages. All other pages get the header image.
+function twentyten_header_image() {
+	global $post;
+	
+	if ( is_singular() && has_post_thumbnail( $post->ID ) ) {
+		echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
+	} else { ?>
+		<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
+<?php
+	}
+}
+
+
 // Control excerpt length
-function new_excerpt_length($length) {
+function twentyten_new_excerpt_length() {
 	return 40;
 }
-add_filter('excerpt_length', 'new_excerpt_length');
+add_filter( 'excerpt_length', 'twentyten_new_excerpt_length' );
 
 
-
 // Make a nice read more link on excerpts
-function new_excerpt_more($more) {
+function twentyten_new_excerpt_more( $more ) {
 	return '&nbsp;&hellip; <a href="'. get_permalink() . '">' . 'Continue&nbsp;reading&nbsp;<span class="meta-nav">&rarr;</span>' . '</a>';
 }
-add_filter('excerpt_more', 'new_excerpt_more');
+add_filter( 'excerpt_more', 'twentyten_new_excerpt_more' );
 
+// Displays the archive title
+function twentyten_page_title() {
+	$title = null;
+	$description = '';
+	
+	if ( is_search() ) {
+		$title = sprintf( __( 'Search Results for: <span>%s</span>', 'twentyten' ), esc_attr( apply_filters('the_search_query', get_search_query()) ) );
+		
+	} elseif ( is_tax() ) {
+		global $wp_query;
+		$term = $wp_query->get_queried_object();
+		$title = sprintf( __( 'Taxonomy Archives: <span>%s</span>', 'twentyten' ), esc_html($term->name) );
+		if ( $term->description )
+			$description = apply_filters( 'archive_meta', '<div class="archive-meta"><p>' . esc_html($term->description) . '</p></div>' );
+		
+	} elseif ( is_category() ) {
+		$title = sprintf( __( 'Category Archives: <span>%s</span>', 'twentyten' ), single_cat_title( '', false ) );
+		if ( category_description() )
+			$description = apply_filters( 'archive_meta', '<div class="archive-meta">' . category_description() . '</div>' );
+		
+	} elseif ( is_tag() ) {
+		$title = sprintf( __( 'Tag Archives: <span>%s</span>', 'twentyten' ), single_tag_title( '', false ) );
+		if ( tag_description() )
+			$description = apply_filters( 'archive_meta', '<div class="archive-meta">' . tag_description() . '</div>' );
+		
+	} elseif ( is_author() ) {
+		$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>' );
+		if ( get_the_author_meta( 'description' ) ) {
+			$description  = '<div id="entry-author-info">' . "\n" . '<div id="author-avatar">' . "\n";
+			$description .= get_avatar( get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60) );
+			$description .= '</div><!-- #author-avatar 	-->' . "\n" . '<div id="author-description">' . "\n";
+			$description .= '<h2>'. sprintf( __( 'About %s', 'twentyten' ), get_the_author() ) .'</h2>';
+			$description .= get_the_author_meta( 'description' ) . '</div><!-- #author-description	-->' . "\n" . '</div><!-- .entry-author-info -->';
+		}
+		
+	} elseif ( is_day() ) {
+		$title = sprintf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_time(get_option('date_format')) );
+		
+	} elseif ( is_month() ) {
+		$title = sprintf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_time('F Y') );
+		
+	} elseif ( is_year() ) {
+		$title = sprintf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_time('Y') );
+		
+	} elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) {
+		$title = __( 'Archives', 'twentyten' );
+	}
 
+	echo apply_filters( 'twentyten_page_title', '<h1 class="page-title">'. $title .'</h1>' . $description );
+}
 
+// Displays the Newer Posts|Older Posts links
+function twentyten_page_links() {
+	global $wp_query;
+	$total_pages = $wp_query->max_num_pages;
+	$pagelinks = '';
+	
+	if ( $total_pages > 1 ) {
+		$pagelinks  = '<div id="nav-above" class="navigation">' . "\n";
+		$pagelinks .= '<div class="nav-previous">' . get_next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) . "</div>\n";
+		$pagelinks .= '<div class="nav-next">' . get_previous_posts_page_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) . "</div>\n";
+		$pagelinks .= '</div><!-- #nav-above -->' . "\n";
+	}
+	echo apply_filters( 'twentyten_page_links', $pagelinks );
+}
+
 // Template for comments and pingbacks
-function twentyten_comment($comment, $args, $depth) {
-	$GLOBALS ['comment'] = $comment; ?>
-	<?php if ('' == $comment->comment_type) { ?>
-	<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
+function twentyten_list_comments( $comment, $args, $depth ) {
+	$GLOBALS['comment'] = $comment; ?>
+	<?php if ( '' == $comment->comment_type ) { ?>
+	<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
 		<div id="comment-<?php comment_ID(); ?>">
 		<div class="comment-author vcard">
-			<?php echo get_avatar($comment,$size='40'); ?>
+			<?php echo get_avatar( $comment, $size = 40 ); ?>
 
-			<?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?>
+			<?php printf( __( '<cite class="fn">%s</cite> <span class="says">says:</span>', 'twentyten' ), get_comment_author_link() ); ?>
 		</div>
 		<?php if ($comment->comment_approved == '0') : ?>
-			<em><?php _e('Your comment is awaiting moderation.') ?></em>
+			<em><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
 			<br />
 		<?php endif; ?>
 
-		<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>
+		<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>
 
-		<div class="comment-body"><?php comment_text() ?></div>
+		<div class="comment-body"><?php comment_text(); ?></div>
 
 		<div class="reply">
-			<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
+			<?php comment_reply_link( array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth'])) ); ?>
 		</div>
 	</div>
 
 	<?php } else { ?>
 	<li class="post pingback">
-		<p><?php _e('Pingback:') ?> <?php comment_author_link ()?><?php edit_comment_link ( 'edit', '&nbsp;&nbsp;', '' ); ?></p>
+		<p><?php _e( 'Pingback: ', 'twentyten' ) ?><?php comment_author_link(); ?><?php edit_comment_link( __( 'edit', 'twentyten' ), '&nbsp;&nbsp;', '' ); ?></p>
 	<?php }
 }
 
 
-
 // Make the Visual Editor styles match the theme's styles
-	add_filter('mce_css', 'my_editor_style');
-	function my_editor_style($url) {
+add_filter( 'mce_css', 'twentyten_editor_style' );
+function twentyten_editor_style( $url ) {
+	if ( !empty($url) )
+		$url .= ',';
 
-		if ( !empty($url) )
-			$url .= ',';
-
 	// Change the path here if using sub-directory
 	$url .= trailingslashit( get_stylesheet_directory_uri() ) . 'editor-style.css';
 
@@ -119,57 +237,66 @@
 }
 
 
-
 // Remove inline styles on gallery shortcode
-
-function remove_gallery_css() {
-	return "<div class='gallery'>";
+function twentyten_remove_gallery_css() {
+	return '<div class="gallery">';
 }
-add_filter('gallery_style', 'remove_gallery_css');
+add_filter( 'gallery_style', 'twentyten_remove_gallery_css' );
 
 
-
-// For category lists on category archives: Returns other categories except the current one (redundant)
-function cats_meow($glue) {
-	$current_cat = single_cat_title( '', false );
+// Displays a list of all the terms the post has
+function twentyten_terms_lists( $args = array() ) {
+	global $wp_query;
+	
+	$defaults = array(
+		'category' => __( 'Also posted in ', 'twentyten' ),
+		'post_tag' => __( 'Tagged ', 'twentyten' ),
+		'glue' => ', ',
+		'sep' => ' | ',
+		'end' => ' | ',
+	);
+	
+	$args = wp_parse_args( $args, $defaults );
+	
+	$taxonomies = get_the_taxonomies();
+	$current_tax = $wp_query->get_queried_object();
+	$current_tax = isset($current_tax->name) ? $current_tax->name : ' ';
 	$separator = "\n";
-	$cats = explode( $separator, get_the_category_list($separator) );
-	foreach ( $cats as $i => $str ) {
-		if ( strstr( $str, ">$current_cat<" ) ) {
-			unset($cats[$i]);
-			break;
-		}
-	}
-	if ( empty($cats) )
+	
+	if ( empty($taxonomies) )
 		return false;
-
-	return trim(join( $glue, $cats ));
-} // end cats_meow
-
-
-
-// For tag lists on tag archives: Returns other tags except the current one (redundant)
-function tag_ur_it($glue) {
-	$current_tag = single_tag_title( '', '',  false );
-	$separator = "\n";
-	$tags = explode( $separator, get_the_tag_list( "", "$separator", "" ) );
-	foreach ( $tags as $i => $str ) {
-		if ( strstr( $str, ">$current_tag<" ) ) {
-			unset($tags[$i]);
-			break;
+		
+	$tax_terms = array();
+	$_tax_terms = array();
+	
+	$c = count( $taxonomies );
+	$keys = array_keys( $taxonomies );
+	foreach ( $taxonomies as $key => $value ) {
+		$tax_terms[$key] = explode( $separator, get_the_term_list(0, $key, '', $separator, '') );		
+		foreach ( $tax_terms[$key] as $i => $term ) {
+			if ( strstr( strip_tags($term), $current_tax ) ) {
+				unset( $tax_terms[$key][$i] );
+				break;
+			}
 		}
+		
+		if ( empty($tax_terms[$key]) )
+			continue;
+		
+		$tax_name = isset($args[$key]) ? $args[$key] : ' ' . ucwords($key) .' ';
+		
+		$_tax_terms[$key] = '<span class="entry-tax-'. $key .'">';
+		$_tax_terms[$key] .= '<span class="entry-tax-name">'. $tax_name .'</span>';
+		$_tax_terms[$key] .= trim( join( $args['glue'], $tax_terms[$key] ) ) . '</span>';
 	}
-	if ( empty($tags) )
-		return false;
+	echo apply_filters( 'twenty_terms_lists', join( $args['sep'], $_tax_terms ) . $args['end'] );
+}
 
-	return trim(join( $glue, $tags ));
-} // end tag_ur_it
 
-
 // Register widgetized areas
-function theme_widgets_init() {
+function twentyten_widgets_init() {
 	// Area 1
-	register_sidebar( array (
+	register_sidebar( array(
 		'name' => 'Primary Widget Area',
 		'id' => 'primary-widget-area',
 		'description' => __('The primary widget area' , 'twentyten'),
@@ -180,7 +307,7 @@
 	) );
 
 	// Area 2
-	register_sidebar( array (
+	register_sidebar( array(
 		'name' => 'Secondary Widget Area',
 		'id' => 'secondary-widget-area',
 		'description' => __('The secondary widget area' , 'twentyten'),
@@ -191,7 +318,7 @@
 	) );
 
 	// Area 3
-	register_sidebar( array (
+	register_sidebar( array(
 		'name' => 'First Footer Widget Area',
 		'id' => 'first-footer-widget-area',
 		'description' => __('The first footer widget area' , 'twentyten'),
@@ -202,7 +329,7 @@
 	) );
 
 	// Area 4
-	register_sidebar( array (
+	register_sidebar( array(
 		'name' => 'Second Footer Widget Area',
 		'id' => 'second-footer-widget-area',
 		'description' => __('The second footer widget area' , 'twentyten'),
@@ -213,7 +340,7 @@
 	) );
 
 	// Area 5
-	register_sidebar( array (
+	register_sidebar( array(
 		'name' => 'Third Footer Widget Area',
 		'id' => 'third-footer-widget-area',
 		'description' => __('The third footer widget area' , 'twentyten'),
@@ -224,7 +351,7 @@
 	) );
 
 	// Area 6
-	register_sidebar( array (
+	register_sidebar( array(
 		'name' => 'Fourth Footer Widget Area',
 		'id' => 'fourth-footer-widget-area',
 		'description' => __('The fourth footer widget area' , 'twentyten'),
@@ -234,9 +361,7 @@
 		'after_title' => '</h3>',
 	) );
 
-} // end theme_widgets_init
+}
 
-
-
 // Add all the groovy widget areas
-add_action( 'init', 'theme_widgets_init' );
+add_action( 'init', 'twentyten_widgets_init' );
\ No newline at end of file
Index: wp-content/themes/twentyten/sidebar.php
===================================================================
--- wp-content/themes/twentyten/sidebar.php	(revision 13052)
+++ wp-content/themes/twentyten/sidebar.php	(working copy)
@@ -6,20 +6,18 @@
 			</li>
 
 			<li id="archives" class="widget-container">
-				<h3 class="widget-title"><?php _e('Archives', 'twentyten') ?></h3>
+				<h3 class="widget-title"><?php _e( 'Archives', 'twentyten' ); ?></h3>
 				<ul>
-<?php wp_get_archives('type=monthly') ?>
+<?php wp_get_archives( 'type=monthly' ); ?>
 				</ul>
 			</li>
 
 			<li id="meta" class="widget-container">
-				<h3 class="widget-title"><?php _e('Meta', 'twentyten') ?></h3>
+				<h3 class="widget-title"><?php _e( 'Meta', 'twentyten' ); ?></h3>
 				<ul>
-					<?php wp_register() ?>
-
-					<li><?php wp_loginout() ?></li>
-					<?php wp_meta() ?>
-
+					<?php wp_register(); ?>
+					<li><?php wp_loginout(); ?></li>
+					<?php wp_meta(); ?>
 				</ul>
 			</li>
 <?php endif; // end primary widget area  ?>
@@ -29,7 +27,7 @@
 <?php if ( is_active_sidebar('secondary-widget-area') ) : // Nothing here by default and design ?>
 		<div id="secondary" class="widget-area">
 			<ul class="xoxo">
-				<?php dynamic_sidebar('secondary-widget-area'); ?>
+				<?php dynamic_sidebar( 'secondary-widget-area' ); ?>
 			</ul>
 		</div><!-- #secondary .widget-area -->
 <?php endif; ?>
\ No newline at end of file
Index: wp-content/themes/twentyten/tag.php
===================================================================
--- wp-content/themes/twentyten/tag.php	(revision 13052)
+++ wp-content/themes/twentyten/tag.php	(working copy)
@@ -3,41 +3,29 @@
 		<div id="container">
 			<div id="content">
 
-<?php the_post(); ?>
+				<?php the_post(); ?>
+				<?php twentyten_page_title(); ?>
+				<?php twentyten_page_links(); ?>
+				<?php rewind_posts(); ?>
 
-				<h1 class="page-title"><?php _e( 'Tag Archives:', 'twentyten' ) ?> <span><?php single_tag_title() ?></span></h1>
-
-<?php rewind_posts(); ?>
-
-<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
-				<div id="nav-above" class="navigation">
-					<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
-					<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
-				</div><!-- #nav-above -->
-<?php } ?>
-
 <?php while ( have_posts() ) : the_post(); ?>
 
 				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 					<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>
 
 					<div class="entry-meta">
-						<span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span>
-						<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>
-						<span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
-						<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>
+						<span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
+						<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>
+						<span class="meta-sep"> <?php _e( 'by ', 'twentyten' ); ?> </span>
+						<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>
 					</div><!-- .entry-meta -->
 
 					<div class="entry-summary">
-<?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
+						<?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
 					</div><!-- .entry-summary -->
 
 					<div class="entry-utility">
-						<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>
-						<span class="meta-sep"> | </span>
-<?php if ( $tag_ur_it = tag_ur_it(', ') ) : // Returns tags other than the one queried ?>
-						<span class="tag-links"><?php printf( __( 'Also tagged %s', 'twentyten' ), $tag_ur_it ) ?></span>
-<?php endif; ?>
+						<?php twentyten_terms_lists(); ?>
 						<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
 						<?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" ) ?>
 					</div><!-- #entry-utility -->
@@ -45,12 +33,7 @@
 
 <?php endwhile; ?>
 
-<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
-				<div id="nav-below" class="navigation">
-					<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
-					<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
-				</div><!-- #nav-below -->
-<?php } ?>
+				<?php twentyten_page_links(); ?>
 
 			</div><!-- #content -->
 		</div><!-- #container -->
Index: wp-content/themes/twentyten/page.php
===================================================================
--- wp-content/themes/twentyten/page.php	(revision 13052)
+++ wp-content/themes/twentyten/page.php	(working copy)
@@ -8,13 +8,13 @@
 				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 					<h1 class="entry-title"><?php the_title(); ?></h1>
 					<div class="entry-content">
-<?php the_content(); ?>
-<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>') ?>
-<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ) ?>
+						<?php the_content(); ?>
+						<?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?>
+						<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
 					</div><!-- .entry-content -->
 				</div><!-- #post-<?php the_ID(); ?> -->
 
-<?php comments_template(); ?>
+<?php comments_template( '', true ); ?>
 
 			</div><!-- #content -->
 		</div><!-- #container -->
Index: wp-content/themes/twentyten/category.php
===================================================================
--- wp-content/themes/twentyten/category.php	(revision 13052)
+++ wp-content/themes/twentyten/category.php	(working copy)
@@ -1,46 +1,31 @@
-
 <?php get_header(); ?>
 
 		<div id="container">
 			<div id="content">
 
-<?php the_post(); ?>
+				<?php the_post(); ?>
+				<?php twentyten_page_title(); ?>
+				<?php twentyten_page_links(); ?>
+				<?php rewind_posts(); ?>
 
-				<h1 class="page-title"><?php _e( 'Category Archives:', 'twentyten' ) ?> <span><?php single_cat_title() ?></span></span></h1>
-				<?php $categorydesc = category_description(); if ( !empty($categorydesc) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?>
-
-<?php rewind_posts(); ?>
-
-<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
-				<div id="nav-above" class="navigation">
-					<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
-					<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
-				</div><!-- #nav-above -->
-<?php } ?>
-
 <?php while ( have_posts() ) : the_post(); ?>
 
 				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 					<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>
 
 					<div class="entry-meta">
-						<span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span>
-						<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>
-						<span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
-						<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>
+						<span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
+						<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>
+						<span class="meta-sep"><?php _e( ' by ', 'twentyten' ); ?></span>
+						<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>
 					</div><!-- .entry-meta -->
 
 					<div class="entry-summary">
 <?php the_excerpt( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
 					</div><!-- .entry-summary -->
-
+					
 					<div class="entry-utility">
-<?php if ( $cats_meow = cats_meow(', ') ) : // Returns categories other than the one queried ?>
-						<span class="cat-links"><?php printf( __( 'Also posted in %s', 'twentyten' ), $cats_meow ) ?></span>
-						<span class="meta-sep"> | </span>
-<?php endif ?>
-						<?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" ) ?>
+						<?php twentyten_terms_lists(); ?>
 						<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
 						<?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" ) ?>
 					</div><!-- #entry-utility -->
@@ -48,12 +33,7 @@
 
 <?php endwhile; ?>
 
-<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
-				<div id="nav-below" class="navigation">
-					<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
-					<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
-				</div><!-- #nav-below -->
-<?php } ?>
+				<?php twentyten_page_links(); ?>
 
 			</div><!-- #content -->
 		</div><!-- #container -->
Index: wp-content/themes/twentyten/archive.php
===================================================================
--- wp-content/themes/twentyten/archive.php	(revision 13052)
+++ wp-content/themes/twentyten/archive.php	(working copy)
@@ -3,37 +3,20 @@
 		<div id="container">
 			<div id="content">
 
-<?php the_post(); ?>
+				<?php the_post(); ?>
+				<?php twentyten_page_title(); ?>
+				<?php twentyten_page_links(); ?>
+				<?php rewind_posts(); ?>
 
-<?php if ( is_day() ) : ?>
-				<h1 class="page-title"><?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_time(get_option('date_format')) ) ?></h1>
-<?php elseif ( is_month() ) : ?>
-				<h1 class="page-title"><?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_time('F Y') ) ?></h1>
-<?php elseif ( is_year() ) : ?>
-				<h1 class="page-title"><?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_time('Y') ) ?></h1>
-<?php elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) : ?>
-				<h1 class="page-title"><?php _e( 'Blog Archives', 'twentyten' ) ?></h1>
-<?php endif; ?>
-
-<?php rewind_posts(); ?>
-
-<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
-				<div id="nav-above" class="navigation">
-					<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
-					<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
-				</div><!-- #nav-above -->
-<?php } ?>
-
 <?php while ( have_posts() ) : the_post(); ?>
 
 				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 					<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>
 
 					<div class="entry-meta">
-						<span class="meta-prep meta-prep-author"><?php _e('Posted on ', 'twentyten'); ?></span>
-						<a href="<?php
-		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>
-						<span class="meta-sep"> <?php _e('by ', 'twentyten'); ?> </span>
+						<span class="meta-prep meta-prep-author"><?php _e( 'Posted on ', 'twentyten' ); ?></span>
+						<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>
+						<span class="meta-sep"><?php _e( ' by ', 'twentyten'); ?></span>
 						<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>
 					</div><!-- .entry-meta -->
 
@@ -42,22 +25,15 @@
 					</div><!-- .entry-summary -->
 
 					<div class="entry-utility">
-						<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>
-						<span class="meta-sep"> | </span>
-						<?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" ) ?>
-						<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ) ?></span>
-						<?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" ) ?>
+						<?php twentyten_terms_lists(); ?>
+						<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
+						<?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" ); ?>
 					</div><!-- #entry-utility -->
 				</div><!-- #post-<?php the_ID(); ?> -->
 
 <?php endwhile; ?>
 
-<?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
-				<div id="nav-below" class="navigation">
-					<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' )) ?></div>
-					<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' )) ?></div>
-				</div><!-- #nav-below -->
-<?php } ?>
+				<?php twentyten_page_links(); ?>
 
 			</div><!-- #content -->
 		</div><!-- #container -->
Index: wp-content/themes/twentyten/single.php
===================================================================
--- wp-content/themes/twentyten/single.php	(revision 13052)
+++ wp-content/themes/twentyten/single.php	(working copy)
@@ -6,35 +6,34 @@
 <?php the_post(); ?>
 
 				<div id="nav-above" class="navigation">
-					<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&larr;</span> %title' ) ?></div>
-					<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&rarr;</span>' ) ?></div>
+					<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&larr;</span> %title' ); ?></div>
+					<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&rarr;</span>' ); ?></div>
 				</div><!-- #nav-above -->
 
 				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 					<h1 class="entry-title"><?php the_title(); ?></h1>
 
 					<div class="entry-meta">
-						<span class="meta-prep meta-prep-author"><?php _e('Posted by ', 'twentyten'); ?></span>
-						<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>
-						<span class="meta-sep"> <?php _e('on ', 'twentyten'); ?> </span>
-						<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>
+						<span class="meta-prep meta-prep-author"><?php _e( 'Posted by ', 'twentyten' ); ?></span>
+						<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>
+						<span class="meta-sep"> <?php _e( 'on ', 'twentyten' ); ?> </span>
+						<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>
 						<?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" ) ?>
 					</div><!-- .entry-meta -->
 
 					<div class="entry-content">
-<?php the_content(); ?>
-<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>') ?>
+						<?php the_content(); ?>
+						<?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?>
 					</div><!-- .entry-content -->
 
 <?php if ( get_the_author_meta('description') ) : // If a user has filled out their decscription show a bio on their entries  ?>
 					<div id="entry-author-info">
 						<div id="author-avatar">
-<?php echo get_avatar( get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60) ); ?>
+							<?php echo get_avatar( get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60) ); ?>
 						</div><!-- #author-avatar 	-->
 						<div id="author-description">
 							<h2><?php _e('About ', 'twentyten'); ?><?php the_author(); ?></h2>
-<?php the_author_meta('description'); ?>
+							<?php the_author_meta( 'description' ); ?>
 							<div id="author-link">
 								<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>
 							</div><!-- #author-link	-->
@@ -43,23 +42,38 @@
 <?php endif; ?>
 
 					<div class="entry-utility">
-					<?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' ),
-						get_the_category_list(', '),
-						get_the_tag_list( __( ' and tagged ', 'twentyten' ), ', ', '' ),
-						get_permalink(),
-						the_title_attribute('echo=0'),
-						get_post_comments_feed_link() ) ?>
-
-<?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
+						<?php twentyten_terms_lists( $args = array(
+							'category' => __( 'This entry was posted in ', 'twentyten' ),
+							'post_tag' => __( ' and tagged ', 'twentyten' ),
+							'glue' => ', ',
+							'sep' => '',
+							'end' => '. ',
+						) );
+						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' ),
+							get_permalink(),
+							the_title_attribute( 'echo=0' ),
+							get_post_comments_feed_link()
+						); ?>
+						
+						<?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
+							<?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() ); ?>
+						<?php elseif ( !comments_open() && pings_open() ) : // Only trackbacks open ?>
+							<?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() ); ?>
+						<?php elseif ( comments_open() && !pings_open() ) : // Only comments open ?>
+							<?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyten' ); ?>
+						<?php elseif ( !comments_open() && !pings_open() ) : // Comments and trackbacks closed ?>
+							<?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ); ?>
+						<?php endif; ?>
+						<?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ); ?>
 					</div><!-- .entry-utility -->
 				</div><!-- #post-<?php the_ID(); ?> -->
 
 				<div id="nav-below" class="navigation">
-					<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&larr;</span> %title' ) ?></div>
-					<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&rarr;</span>' ) ?></div>
+					<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&larr;</span> %title' ); ?></div>
+					<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&rarr;</span>' ); ?></div
 				</div><!-- #nav-below -->
 
-<?php comments_template('', true); ?>
+				<?php comments_template( '', true ); ?>
 
 			</div><!-- #content -->
 		</div><!-- #container -->
Index: wp-content/themes/twentyten/comments.php
===================================================================
--- wp-content/themes/twentyten/comments.php	(revision 13052)
+++ wp-content/themes/twentyten/comments.php	(working copy)
@@ -1,12 +1,12 @@
 			<div id="comments">
 <?php
 	// Do not delete these lines
-	$req = get_option('require_name_email'); // Checks if fields are required.
+	$req = (bool) get_option( 'require_name_email' ); // Checks if fields are required.
 	if ( 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']) )
 		die ( 'Please do not load this page directly. Thanks!' );
 	if ( post_password_required() ) :
 ?>
-				<div class="nopassword"><?php _e('This post is password protected. Enter the password to view any comments.', 'twentyten') ?></div>
+				<div class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></div>
 			</div><!-- .comments -->
 <?php
 		return;
@@ -22,19 +22,19 @@
 
 <?php $total_pages = get_comment_pages_count(); if ( $total_pages > 1 ) : // are there comments to navigate through ?>
 			<div class="navigation">
-				<div class="nav-previous"><?php previous_comments_link( __('&larr; Older Comments', 'twentyten') ) ?></div>
-				<div class="nav-next"><?php next_comments_link( __('Newer Comments &rarr;', 'twentyten') ) ?></div>
+				<div class="nav-previous"><?php previous_comments_link( __('&larr; Older Comments', 'twentyten') ); ?></div>
+				<div class="nav-next"><?php next_comments_link( __('Newer Comments &rarr;', 'twentyten') ); ?></div>
 			</div>
 <?php endif; // check for comment navigation ?>
 
 			<ol class="commentlist">
-			<?php wp_list_comments( array('callback' => 'twentyten_comment') ); ?>
+			<?php wp_list_comments( array('callback' => 'twentyten_list_comments') ); ?>
 			</ol>
 
 <?php $total_pages = get_comment_pages_count(); if ( $total_pages > 1 ) : // are there comments to navigate through ?>
 			<div class="navigation">
-				<div class="nav-previous"><?php previous_comments_link( __('&larr; Older Comments', 'twentyten') ) ?></div>
-				<div class="nav-next"><?php next_comments_link( __('Newer Comments &rarr;', 'twentyten') ) ?></div>
+				<div class="nav-previous"><?php previous_comments_link( __('&larr; Older Comments', 'twentyten') ); ?></div>
+				<div class="nav-next"><?php next_comments_link( __('Newer Comments &rarr;', 'twentyten') ); ?></div>
 			</div>
 <?php endif; // check for comment navigation ?>
 
@@ -44,7 +44,7 @@
 
 <?php else : // if comments are closed ?>
 
-		<p class="nocomments"><?php _e('Comments are closed.', 'twentyten'); ?></p>
+		<p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p>
 
 <?php endif; ?>
 <?php endif; ?>
Index: wp-content/themes/twentyten/header.php
===================================================================
--- wp-content/themes/twentyten/header.php	(revision 13052)
+++ wp-content/themes/twentyten/header.php	(working copy)
@@ -1,28 +1,16 @@
 <!DOCTYPE html>
 <html <?php language_attributes(); ?>>
 <head>
-    <title><?php
-        if ( is_single() ) { single_post_title(); print ' | '; bloginfo('name'); }
-        elseif ( is_home() || is_front_page() ) { bloginfo('name'); print ' | '; bloginfo('description'); get_page_number(); }
-        elseif ( is_page() ) { single_post_title(''); print ' | '; bloginfo('name'); }
-        elseif ( is_search() ) { print 'Search results for ' . wp_specialchars($s); get_page_number(); print ' | '; bloginfo('name'); }
-        elseif ( is_404() ) { print 'Not Found | '; bloginfo('name'); }
-        else { bloginfo('name'); wp_title('|'); get_page_number(); }
-    ?></title>
+    <title><?php twentyten_document_title(); ?></title>
 
-	<meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
-
+	<meta http-equiv="content-type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
 	<link rel="profile" href="http://gmpg.org/xfn/11">
-	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
-	<link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo('stylesheet_directory'); ?>/print.css" />
-
-	<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
-
+	
 	<?php wp_head(); ?>
 
-	<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 ) ); ?>" />
-	<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 ) ); ?>" />
-	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
+	<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 ) ); ?>" />
+	<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 ) ); ?>" />
+	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
 </head>
 
 <body <?php body_class(); ?>>
@@ -32,20 +20,13 @@
 		<div id="masthead">
 
 			<div id="branding">
-				<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>
-				<div id="site-description"><?php bloginfo( 'description' ) ?></div>
-
-				<?php
-					global $post;
-					if ( is_singular() && has_post_thumbnail( $post->ID ) ) {
-						echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
-					} else { ?>
-					<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
-				<?php } ?>
+				<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>
+				<div id="site-description"><?php bloginfo( 'description' ); ?></div>
+				<?php twentyten_header_image(); ?>
 			</div><!-- #branding -->
 
 			<div id="access">
-				<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>
+				<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>
 				<?php wp_page_menu( 'sort_column=menu_order' ); ?>
 			</div><!-- #access -->
 
Index: wp-content/themes/twentyten/attachment.php
===================================================================
--- wp-content/themes/twentyten/attachment.php	(revision 13052)
+++ wp-content/themes/twentyten/attachment.php	(working copy)
@@ -5,64 +5,68 @@
 
 <?php the_post(); ?>
 
-				<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>
+				<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>
 
 				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 					<h2 class="entry-title"><?php the_title(); ?></h2>
 
 					<div class="entry-meta">
-						<span class="meta-prep meta-prep-author"><?php _e('By ', 'twentyten'); ?></span>
-						<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>
-						<span class="meta-sep"> | </span>
-						<span class="meta-prep meta-prep-entry-date"><?php _e('Published ', 'twentyten'); ?></span>
-						<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>
-						<?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" ) ?>
+						<span class="meta-prep meta-prep-author"><?php _e( 'By ', 'twentyten' ); ?></span>
+						<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>
+						<span class="meta-sep"><?php _e( ' | ', 'twentyten' ); ?></span>
+						<span class="meta-prep meta-prep-entry-date"><?php _e( 'Published ', 'twentyten' ); ?></span>
+						<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>
+						<?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" ); ?>
 					</div><!-- .entry-meta -->
-
+					
 					<div class="entry-content">
 						<div class="entry-attachment">
-<?php if ( wp_attachment_is_image( $post->id ) ) : $att_image = wp_get_attachment_image_src( $post->id, array(640,640)); ?>
-						<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>
-
-
-				<div id="nav-below" class="navigation">
-					<div class="nav-previous"><?php previous_image_link( false ); ?></div>
-					<div class="nav-next"><?php next_image_link( false ); ?></div>
-				</div><!-- #nav-below -->
+<?php if ( wp_attachment_is_image( $post->id ) ) : $att_image = wp_get_attachment_image_src( $post->id, array(640,640) ); ?>
+							<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>
+						
+							<div id="nav-below" class="navigation">
+								<div class="nav-previous"><?php previous_image_link( false ); ?></div>
+								<div class="nav-next"><?php next_image_link( false ); ?></div>
+							</div><!-- #nav-below -->
 <?php else : ?>
-						<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>
+						<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>
 <?php endif; ?>
-						</div>
-						<div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt() ?></div>
+						</div><!-- .entry-attachment -->
+						<div class="entry-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?></div>
 
-<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' )  ); ?>
-<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>') ?>
+						<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
+						<?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'twentyten' ) . '&after=</div>' ); ?>
 
 					</div><!-- .entry-content -->
 
 					<div class="entry-utility">
-					<?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' ),
-						get_the_category_list(', '),
-						get_the_tag_list( __( ' and tagged ', 'twentyten' ), ', ', '' ),
-						get_permalink(),
-						the_title_attribute('echo=0'),
-						comments_rss() ) ?>
-
-<?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
-						<?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() ) ?>
-<?php elseif ( !comments_open() && pings_open() ) : // Only trackbacks open ?>
-						<?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() ) ?>
-<?php elseif ( comments_open() && !pings_open() ) : // Only comments open ?>
-						<?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyten' ) ?>
-<?php elseif ( !comments_open() && !pings_open() ) : // Comments and trackbacks closed ?>
-						<?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ) ?>
-<?php endif; ?>
-<?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
+						<?php twentyten_terms_lists( $args = array(
+							'category' => __( 'This entry was posted in ', 'twentyten' ),
+							'post_tag' => __( ' and tagged ', 'twentyten' ),
+							'glue' => ', ',
+							'sep' => '',
+							'end' => '. ',
+						) );
+						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' ),
+							get_permalink(),
+							the_title_attribute( 'echo=0' ),
+							get_post_comments_feed_link()
+						); ?>
+						
+						<?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
+							<?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() ); ?>
+						<?php elseif ( !comments_open() && pings_open() ) : // Only trackbacks open ?>
+							<?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() ); ?>
+						<?php elseif ( comments_open() && !pings_open() ) : // Only comments open ?>
+							<?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'twentyten' ); ?>
+						<?php elseif ( !comments_open() && !pings_open() ) : // Comments and trackbacks closed ?>
+							<?php _e( 'Both comments and trackbacks are currently closed.', 'twentyten' ); ?>
+						<?php endif; ?>
+						<?php edit_post_link( __( 'Edit', 'twentyten' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ); ?>
 					</div><!-- .entry-utility -->
 				</div><!-- #post-<?php the_ID(); ?> -->
 
-<?php comments_template(); ?>
+				<?php comments_template( '', true ); ?>
 
 			</div><!-- #content -->
 		</div><!-- #container -->
