Skip to content
Snippets Groups Projects
Commit 6093fe7b authored by lechuck's avatar lechuck Committed by lechuck
Browse files

upgrade twentytew theme to 1.5

parent d65a9544
No related branches found
No related tags found
No related merge requests found
Showing
with 35 additions and 34 deletions
......@@ -62,15 +62,13 @@
</div><!-- .navigation -->
<?php endif; // check for comment navigation ?>
<?php else : // or, if we don't have comments:
/* If there are no comments and comments are closed,
* let's leave a little note, shall we?
<?php
/* If there are no comments and comments are closed, let's leave a little note, shall we?
* But we only want the note on posts and pages that had comments in the first place.
*/
if ( ! comments_open() ) :
?>
<p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p>
<?php endif; // end ! comments_open() ?>
if ( ! comments_open() && get_comments_number() ) : ?>
<p class="nocomments"><?php _e( 'Comments are closed.' , 'twentyten' ); ?></p>
<?php endif; ?>
<?php endif; // end have_comments() ?>
......
......@@ -30,7 +30,7 @@
<div id="site-generator">
<?php do_action( 'twentyten_credits' ); ?>
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>
</div><!-- #site-generator -->
</div><!-- #colophon -->
......
......@@ -115,9 +115,9 @@ function twentyten_setup() {
// Callback for styling the header preview in the admin.
'admin-head-callback' => 'twentyten_admin_header_style',
);
add_theme_support( 'custom-header', $custom_header_support );
if ( ! function_exists( 'get_custom_header' ) ) {
// This is all for compatibility with versions of WordPress prior to 3.4.
define( 'HEADER_TEXTCOLOR', '' );
......@@ -224,7 +224,8 @@ endif;
* @since Twenty Ten 1.0
*/
function twentyten_page_menu_args( $args ) {
$args['show_home'] = true;
if ( ! isset( $args['show_home'] ) )
$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' );
......@@ -243,6 +244,7 @@ function twentyten_excerpt_length( $length ) {
}
add_filter( 'excerpt_length', 'twentyten_excerpt_length' );
if ( ! function_exists( 'twentyten_continue_reading_link' ) ) :
/**
* Returns a "Continue Reading" link for excerpts
*
......@@ -252,6 +254,7 @@ add_filter( 'excerpt_length', 'twentyten_excerpt_length' );
function twentyten_continue_reading_link() {
return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) . '</a>';
}
endif;
/**
* Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link().
......@@ -330,28 +333,28 @@ function twentyten_comment( $comment, $args, $depth ) {
?>
<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, 40 ); ?>
<?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
</div><!-- .comment-author .vcard -->
<?php if ( $comment->comment_approved == '0' ) : ?>
<em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
<br />
<?php endif; ?>
<div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
<?php
/* translators: 1: date, 2: time */
printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(), get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
?>
</div><!-- .comment-meta .commentmetadata -->
<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'] ) ) ); ?>
</div><!-- .reply -->
</div><!-- #comment-## -->
<div class="comment-author vcard">
<?php echo get_avatar( $comment, 40 ); ?>
<?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
</div><!-- .comment-author .vcard -->
<?php if ( $comment->comment_approved == '0' ) : ?>
<em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
<br />
<?php endif; ?>
<div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
<?php
/* translators: 1: date, 2: time */
printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(), get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' );
?>
</div><!-- .comment-meta .commentmetadata -->
<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'] ) ) ); ?>
</div><!-- .reply -->
</div><!-- #comment-## -->
<?php
break;
......
wp-content/themes/twentyten/images/headers/berries-thumbnail.jpg

5.59 KiB | W: | H:

wp-content/themes/twentyten/images/headers/berries-thumbnail.jpg

5.49 KiB | W: | H:

wp-content/themes/twentyten/images/headers/berries-thumbnail.jpg
wp-content/themes/twentyten/images/headers/berries-thumbnail.jpg
wp-content/themes/twentyten/images/headers/berries-thumbnail.jpg
wp-content/themes/twentyten/images/headers/berries-thumbnail.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/berries.jpg

59.3 KiB | W: | H:

wp-content/themes/twentyten/images/headers/berries.jpg

59.1 KiB | W: | H:

wp-content/themes/twentyten/images/headers/berries.jpg
wp-content/themes/twentyten/images/headers/berries.jpg
wp-content/themes/twentyten/images/headers/berries.jpg
wp-content/themes/twentyten/images/headers/berries.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/cherryblossoms-thumbnail.jpg

6.39 KiB | W: | H:

wp-content/themes/twentyten/images/headers/cherryblossoms-thumbnail.jpg

6.27 KiB | W: | H:

wp-content/themes/twentyten/images/headers/cherryblossoms-thumbnail.jpg
wp-content/themes/twentyten/images/headers/cherryblossoms-thumbnail.jpg
wp-content/themes/twentyten/images/headers/cherryblossoms-thumbnail.jpg
wp-content/themes/twentyten/images/headers/cherryblossoms-thumbnail.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/cherryblossoms.jpg

80.1 KiB | W: | H:

wp-content/themes/twentyten/images/headers/cherryblossoms.jpg

79.7 KiB | W: | H:

wp-content/themes/twentyten/images/headers/cherryblossoms.jpg
wp-content/themes/twentyten/images/headers/cherryblossoms.jpg
wp-content/themes/twentyten/images/headers/cherryblossoms.jpg
wp-content/themes/twentyten/images/headers/cherryblossoms.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/concave-thumbnail.jpg

5.63 KiB | W: | H:

wp-content/themes/twentyten/images/headers/concave-thumbnail.jpg

5.56 KiB | W: | H:

wp-content/themes/twentyten/images/headers/concave-thumbnail.jpg
wp-content/themes/twentyten/images/headers/concave-thumbnail.jpg
wp-content/themes/twentyten/images/headers/concave-thumbnail.jpg
wp-content/themes/twentyten/images/headers/concave-thumbnail.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/concave.jpg

37.6 KiB | W: | H:

wp-content/themes/twentyten/images/headers/concave.jpg

37.4 KiB | W: | H:

wp-content/themes/twentyten/images/headers/concave.jpg
wp-content/themes/twentyten/images/headers/concave.jpg
wp-content/themes/twentyten/images/headers/concave.jpg
wp-content/themes/twentyten/images/headers/concave.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/fern-thumbnail.jpg

5.4 KiB | W: | H:

wp-content/themes/twentyten/images/headers/fern-thumbnail.jpg

5.37 KiB | W: | H:

wp-content/themes/twentyten/images/headers/fern-thumbnail.jpg
wp-content/themes/twentyten/images/headers/fern-thumbnail.jpg
wp-content/themes/twentyten/images/headers/fern-thumbnail.jpg
wp-content/themes/twentyten/images/headers/fern-thumbnail.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/fern.jpg

24.7 KiB | W: | H:

wp-content/themes/twentyten/images/headers/fern.jpg

24.3 KiB | W: | H:

wp-content/themes/twentyten/images/headers/fern.jpg
wp-content/themes/twentyten/images/headers/fern.jpg
wp-content/themes/twentyten/images/headers/fern.jpg
wp-content/themes/twentyten/images/headers/fern.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/forestfloor-thumbnail.jpg

6.56 KiB | W: | H:

wp-content/themes/twentyten/images/headers/forestfloor-thumbnail.jpg

6.49 KiB | W: | H:

wp-content/themes/twentyten/images/headers/forestfloor-thumbnail.jpg
wp-content/themes/twentyten/images/headers/forestfloor-thumbnail.jpg
wp-content/themes/twentyten/images/headers/forestfloor-thumbnail.jpg
wp-content/themes/twentyten/images/headers/forestfloor-thumbnail.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/forestfloor.jpg

63.3 KiB | W: | H:

wp-content/themes/twentyten/images/headers/forestfloor.jpg

63.1 KiB | W: | H:

wp-content/themes/twentyten/images/headers/forestfloor.jpg
wp-content/themes/twentyten/images/headers/forestfloor.jpg
wp-content/themes/twentyten/images/headers/forestfloor.jpg
wp-content/themes/twentyten/images/headers/forestfloor.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/inkwell-thumbnail.jpg

3.97 KiB | W: | H:

wp-content/themes/twentyten/images/headers/inkwell-thumbnail.jpg

3.94 KiB | W: | H:

wp-content/themes/twentyten/images/headers/inkwell-thumbnail.jpg
wp-content/themes/twentyten/images/headers/inkwell-thumbnail.jpg
wp-content/themes/twentyten/images/headers/inkwell-thumbnail.jpg
wp-content/themes/twentyten/images/headers/inkwell-thumbnail.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/inkwell.jpg

38.4 KiB | W: | H:

wp-content/themes/twentyten/images/headers/inkwell.jpg

38.2 KiB | W: | H:

wp-content/themes/twentyten/images/headers/inkwell.jpg
wp-content/themes/twentyten/images/headers/inkwell.jpg
wp-content/themes/twentyten/images/headers/inkwell.jpg
wp-content/themes/twentyten/images/headers/inkwell.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/path-thumbnail.jpg

4.45 KiB | W: | H:

wp-content/themes/twentyten/images/headers/path-thumbnail.jpg

4.43 KiB | W: | H:

wp-content/themes/twentyten/images/headers/path-thumbnail.jpg
wp-content/themes/twentyten/images/headers/path-thumbnail.jpg
wp-content/themes/twentyten/images/headers/path-thumbnail.jpg
wp-content/themes/twentyten/images/headers/path-thumbnail.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/path.jpg

50.5 KiB | W: | H:

wp-content/themes/twentyten/images/headers/path.jpg

50.3 KiB | W: | H:

wp-content/themes/twentyten/images/headers/path.jpg
wp-content/themes/twentyten/images/headers/path.jpg
wp-content/themes/twentyten/images/headers/path.jpg
wp-content/themes/twentyten/images/headers/path.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/sunset-thumbnail.jpg

2.16 KiB | W: | H:

wp-content/themes/twentyten/images/headers/sunset-thumbnail.jpg

2.14 KiB | W: | H:

wp-content/themes/twentyten/images/headers/sunset-thumbnail.jpg
wp-content/themes/twentyten/images/headers/sunset-thumbnail.jpg
wp-content/themes/twentyten/images/headers/sunset-thumbnail.jpg
wp-content/themes/twentyten/images/headers/sunset-thumbnail.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/headers/sunset.jpg

22.3 KiB | W: | H:

wp-content/themes/twentyten/images/headers/sunset.jpg

21.6 KiB | W: | H:

wp-content/themes/twentyten/images/headers/sunset.jpg
wp-content/themes/twentyten/images/headers/sunset.jpg
wp-content/themes/twentyten/images/headers/sunset.jpg
wp-content/themes/twentyten/images/headers/sunset.jpg
  • 2-up
  • Swipe
  • Onion skin
wp-content/themes/twentyten/images/wordpress.png

849 B | W: | H:

wp-content/themes/twentyten/images/wordpress.png

794 B | W: | H:

wp-content/themes/twentyten/images/wordpress.png
wp-content/themes/twentyten/images/wordpress.png
wp-content/themes/twentyten/images/wordpress.png
wp-content/themes/twentyten/images/wordpress.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment