Ticket #12695: 14750.diff
File 14750.diff, 19.1 KB (added by , 14 years ago) |
---|
-
wp-content/themes/twentyten/footer.php
26 26 <a href="<?php echo home_url( '/' ) ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> 27 27 <?php bloginfo( 'name' ); ?> 28 28 </a> 29 </div> 29 </div><!-- #site-info --> 30 30 31 31 <div id="site-generator"> 32 32 <?php do_action( 'twentyten_credits' ); ?> … … 34 34 title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentyten'); ?>" rel="generator"> 35 35 <?php printf( __('Proudly powered by %s.', 'twentyten'), 'WordPress' ); ?> 36 36 </a> 37 </div> 37 </div><!-- #site-generator --> 38 38 39 39 </div><!-- #colophon --> 40 40 </div><!-- #footer --> 41 41 42 42 </div><!-- #wrapper --> 43 43 44 <?php /* Always have wp_footer() just before the closing </body> tag of your theme if you want many plugins to work */ ?> 44 45 <?php wp_footer(); ?> 45 46 46 47 </body> -
wp-content/themes/twentyten/author.php
32 32 <div id="entry-author-info"> 33 33 <div id="author-avatar"> 34 34 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?> 35 </div><!-- #author-avatar 35 </div><!-- #author-avatar --> 36 36 <div id="author-description"> 37 37 <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2> 38 38 <?php the_author_meta( 'description' ); ?> 39 39 </div><!-- #author-description --> 40 </div><!-- .entry-author-info -->40 </div><!-- #entry-author-info --> 41 41 <?php endif; ?> 42 42 43 43 <?php -
wp-content/themes/twentyten/search.php
29 29 <p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'twentyten' ); ?></p> 30 30 <?php get_search_form(); ?> 31 31 </div><!-- .entry-content --> 32 </div> 32 </div><!-- #post-0 --> 33 33 <?php endif; ?> 34 34 </div><!-- #content --> 35 35 </div><!-- #container --> -
wp-content/themes/twentyten/functions.php
31 31 * } 32 32 * </code> 33 33 * 34 * For more information on hooks , see http://codex.wordpress.org/Plugin_API.34 * For more information on hooks and filters, see http://codex.wordpress.org/Plugin_API. 35 35 * 36 36 * @package WordPress 37 37 * @subpackage Twenty_Ten … … 110 110 define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 198 ) ); 111 111 112 112 // We'll be using post thumbnails for custom header images on posts and pages. 113 // We want them to be 940 pixels wide by 198 pixels tall (larger images will be auto-cropped to fit ).113 // We want them to be 940 pixels wide by 198 pixels tall (larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php). 114 114 set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); 115 115 116 116 // Don't support text inside the header image. … … 133 133 'cherryblossom' => array( 134 134 'url' => '%s/images/headers/cherryblossoms.jpg', 135 135 'thumbnail_url' => '%s/images/headers/cherryblossoms-thumbnail.jpg', 136 /* translators: header image description */ 136 /* translators: header image description */ 137 137 'description' => __( 'Cherry Blossoms', 'twentyten' ) 138 138 ), 139 139 'concave' => array( 140 140 'url' => '%s/images/headers/concave.jpg', 141 141 'thumbnail_url' => '%s/images/headers/concave-thumbnail.jpg', 142 /* translators: header image description */ 142 /* translators: header image description */ 143 143 'description' => __( 'Concave', 'twentyten' ) 144 144 ), 145 145 'fern' => array( 146 146 'url' => '%s/images/headers/fern.jpg', 147 147 'thumbnail_url' => '%s/images/headers/fern-thumbnail.jpg', 148 /* translators: header image description */ 148 /* translators: header image description */ 149 149 'description' => __( 'Fern', 'twentyten' ) 150 150 ), 151 151 'forestfloor' => array( 152 152 'url' => '%s/images/headers/forestfloor.jpg', 153 153 'thumbnail_url' => '%s/images/headers/forestfloor-thumbnail.jpg', 154 /* translators: header image description */ 154 /* translators: header image description */ 155 155 'description' => __( 'Forest Floor', 'twentyten' ) 156 156 ), 157 157 'inkwell' => array( 158 158 'url' => '%s/images/headers/inkwell.jpg', 159 159 'thumbnail_url' => '%s/images/headers/inkwell-thumbnail.jpg', 160 /* translators: header image description */ 160 /* translators: header image description */ 161 161 'description' => __( 'Inkwell', 'twentyten' ) 162 162 ), 163 163 'path' => array( 164 164 'url' => '%s/images/headers/path.jpg', 165 165 'thumbnail_url' => '%s/images/headers/path-thumbnail.jpg', 166 /* translators: header image description */ 166 /* translators: header image description */ 167 167 'description' => __( 'Path', 'twentyten' ) 168 168 ), 169 169 'sunset' => array( 170 170 'url' => '%s/images/headers/sunset.jpg', 171 171 'thumbnail_url' => '%s/images/headers/sunset-thumbnail.jpg', 172 /* translators: header image description */ 172 /* translators: header image description */ 173 173 'description' => __( 'Sunset', 'twentyten' ) 174 174 ) 175 175 ) ); … … 288 288 <div class="comment-author vcard"> 289 289 <?php echo get_avatar( $comment, 40 ); ?> 290 290 <?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?> 291 </div> 291 </div><!-- .comment-author .vcard --> 292 292 <?php if ( $comment->comment_approved == '0' ) : ?> 293 293 <em><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> 294 294 <br /> … … 299 299 /* translators: 1: date, 2: time */ 300 300 printf( __( '%1$s at %2$s', 'twentyten' ), get_comment_date(), get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)', 'twentyten' ), ' ' ); 301 301 ?> 302 </div> 302 </div><!-- .comment-meta .commentmetadata --> 303 303 304 304 <div class="comment-body"><?php comment_text(); ?></div> 305 305 306 306 <div class="reply"> 307 307 <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> 308 </div> 309 </div> 308 </div><!-- .reply --> 309 </div><!-- #comment-<?php comment_ID(); ?> --> 310 310 311 311 <?php else : ?> 312 312 <li class="post pingback"> … … 325 325 * @uses register_sidebar 326 326 */ 327 327 function twentyten_widgets_init() { 328 // Area 1 328 // Area 1 located at the top of the sidebar 329 329 register_sidebar( array( 330 330 'name' => __( 'Primary Widget Area', 'twentyten' ), 331 331 'id' => 'primary-widget-area', … … 336 336 'after_title' => '</h3>', 337 337 ) ); 338 338 339 // Area 2 339 // Area 2 located below the Primary Widget Area in the sidebar. Empty by default and design 340 340 register_sidebar( array( 341 341 'name' => __( 'Secondary Widget Area', 'twentyten' ), 342 342 'id' => 'secondary-widget-area', … … 347 347 'after_title' => '</h3>', 348 348 ) ); 349 349 350 // Area 3 350 // Area 3 located in the footer. Empty by default 351 351 register_sidebar( array( 352 352 'name' => __( 'First Footer Widget Area', 'twentyten' ), 353 353 'id' => 'first-footer-widget-area', … … 358 358 'after_title' => '</h3>', 359 359 ) ); 360 360 361 // Area 4 361 // Area 4 located in the footer. Empty by default 362 362 register_sidebar( array( 363 363 'name' => __( 'Second Footer Widget Area', 'twentyten' ), 364 364 'id' => 'second-footer-widget-area', … … 369 369 'after_title' => '</h3>', 370 370 ) ); 371 371 372 // Area 5 372 // Area 5 located in the footer. Empty by default 373 373 register_sidebar( array( 374 374 'name' => __( 'Third Footer Widget Area', 'twentyten' ), 375 375 'id' => 'third-footer-widget-area', … … 380 380 'after_title' => '</h3>', 381 381 ) ); 382 382 383 // Area 6 383 // Area 6 located in the footer. Empty by default 384 384 register_sidebar( array( 385 385 'name' => __( 'Fourth Footer Widget Area', 'twentyten' ), 386 386 'id' => 'fourth-footer-widget-area', … … 422 422 esc_attr( get_the_time() ), 423 423 get_the_date() 424 424 ), 425 sprintf( '</span> <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 425 sprintf( '</span> <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 426 426 get_author_posts_url( get_the_author_meta( 'ID' ) ), 427 427 sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), 428 428 get_the_author() 429 429 ) 430 430 ); 431 431 432 432 } 433 433 endif; 434 434 … … 453 453 $tag_list, 454 454 get_permalink(), 455 455 the_title_attribute( 'echo=0' ) 456 ); 456 ); 457 457 } 458 458 endif; -
wp-content/themes/twentyten/loop.php
7 7 * http://codex.wordpress.org/Template_Tags to understand 8 8 * the tags used in it. 9 9 * 10 * This can be overridden on a template by templat basis 11 * by having your child theme contain a loop-(template file 12 * being used).php. For example loop-index.php would be used 13 * when the index.php template is used. 14 * 15 * 10 16 * @package WordPress 11 17 * @subpackage Twenty_Ten 12 18 * @since Twenty Ten 1.0 … … 68 74 $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); 69 75 ?> 70 76 <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> 71 </div> 77 </div><!-- .gallery-thumb --> 72 78 <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ), 73 79 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', 74 80 $total_images … … 82 88 <span class="meta-sep">|</span> 83 89 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 84 90 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> 85 </div><!-- #entry-utility -->86 </div> 91 </div><!-- .entry-utility --> 92 </div><!-- #post-<?php the_ID(); ?> --> 87 93 88 94 <?php /* How to display posts in the asides category */ ?> 89 95 … … 105 111 <span class="meta-sep">|</span> 106 112 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 107 113 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> 108 </div><!-- #entry-utility -->109 </div><!-- #post- (id)-->114 </div><!-- .entry-utility --> 115 </div><!-- #post-<?php the_ID(); ?> --> 110 116 111 117 <?php /* How to display all other posts. */ ?> 112 118 … … 147 153 <?php endif; ?> 148 154 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 149 155 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> 150 </div><!-- #entry-utility -->156 </div><!-- .entry-utility --> 151 157 </div><!-- #post-<?php the_ID(); ?> --> 152 158 153 159 <?php comments_template( '', true ); ?> -
wp-content/themes/twentyten/single.php
46 46 </a> 47 47 </div><!-- #author-link --> 48 48 </div><!-- #author-description --> 49 </div><!-- .entry-author-info -->49 </div><!-- #entry-author-info --> 50 50 <?php endif; ?> 51 51 52 52 <div class="entry-utility"> 53 53 <?php twentyten_posted_in(); ?> 54 54 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> 55 55 </div><!-- .entry-utility --> 56 </div><!-- #post- (id)-->56 </div><!-- #post-<?php the_ID(); ?> --> 57 57 58 58 <div id="nav-below" class="navigation"> 59 59 <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div> -
wp-content/themes/twentyten/editor-style-rtl.css
1 /* 2 Theme Name: Twenty Ten 3 */ 4 /* 5 RTL style used inside the tiny mce editor to make it a What you see is what you really get editor 6 */ 1 7 html .mceContentBody{ 2 8 direction:rtl; 3 9 unicode-bidi:embed; -
wp-content/themes/twentyten/editor-style.css
1 /* 2 Theme Name: Twenty Ten 3 */ 4 /* 5 Style used inside the tiny mce editor to make it a What you see is what you really get editor 6 */ 1 7 html .mceContentBody { 2 8 max-width:640px; 3 9 } -
wp-content/themes/twentyten/comments.php
16 16 <div id="comments"> 17 17 <?php if ( post_password_required() ) : ?> 18 18 <div class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></div> 19 </div><!-- .comments -->19 </div><!-- #comments --> 20 20 <?php 21 21 /* Stop the rest of comments.php from being processed, 22 22 * but don't kill the script entirely -- we still have … … 40 40 <div class="navigation"> 41 41 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyten' ) ); ?></div> 42 42 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyten' ) ); ?></div> 43 </div> 43 </div> <!-- .navigation --> 44 44 <?php endif; // check for comment navigation ?> 45 45 46 46 <ol class="commentlist"> … … 59 59 <div class="navigation"> 60 60 <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyten' ) ); ?></div> 61 61 <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyten' ) ); ?></div> 62 </div> 62 </div><!-- .navigation --> 63 63 <?php endif; // check for comment navigation ?> 64 64 65 65 <?php else : // or, if we don't have comments: … … 70 70 if ( ! comments_open() ) : 71 71 ?> 72 72 <p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p> 73 <?php endif; // end ! comments_open ed() ?>73 <?php endif; // end ! comments_open() ?> 74 74 75 75 <?php endif; // end have_comments() ?> 76 76 -
wp-content/themes/twentyten/header.php
13 13 <head> 14 14 <meta charset="<?php bloginfo( 'charset' ); ?>" /> 15 15 <title> 16 <?php 17 if ( is_single() ) { 16 <?php // Returns the title based on the type of page being viewed 17 if ( is_single() ) { // Single post pages 18 18 single_post_title(); echo ' | '; bloginfo( 'name' ); 19 } elseif ( is_home() || is_front_page() ) { 20 bloginfo( 'name' ); 21 if( get_bloginfo( 'description' ) ) 22 echo ' | ' ; bloginfo( 'description' ); 19 } elseif ( is_home() || is_front_page() ) { // Both the home page and if using a static front page, the blog post page 20 bloginfo( 'name' ); 21 if( get_bloginfo( 'description' ) ) 22 echo ' | ' ; bloginfo( 'description' ); 23 23 twentyten_the_page_number(); 24 } elseif ( is_page() ) { 24 } elseif ( is_page() ) { // All Pages 25 25 single_post_title( '' ); echo ' | '; bloginfo( 'name' ); 26 } elseif ( is_search() ) { 26 } elseif ( is_search() ) { // Search result pages 27 27 printf( __( 'Search results for %s', 'twentyten' ), '"'.get_search_query().'"' ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' ); 28 } elseif ( is_404() ) { 28 } elseif ( is_404() ) { // 404, nothing found pages 29 29 _e( 'Not Found', 'twentyten' ); echo ' | '; bloginfo( 'name' ); 30 } else { 30 } else { // Everything else 31 31 wp_title( '' ); echo ' | '; bloginfo( 'name' ); twentyten_the_page_number(); 32 32 } 33 33 ?> 34 34 </title> 35 35 <link rel="profile" href="http://gmpg.org/xfn/11" /> 36 36 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> 37 <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>37 <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' );//On pages that have comment forms, we add some javascript to make threaded comments work ?> 38 38 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 39 <?php /* Always have wp_head() in the </head> of your theme if you want many plugins to work */ ?> 39 40 <?php wp_head(); ?> 40 41 </head> 41 42 … … 66 67 </div><!-- #branding --> 67 68 68 69 <div id="access" role="navigation"> 70 <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?> 69 71 <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> 72 <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?> 70 73 <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> 71 74 </div><!-- #access --> 72 75 </div><!-- #masthead --> -
wp-content/themes/twentyten/attachment.php
51 51 $metadata['height'] 52 52 ) 53 53 ); 54 } 54 } 55 55 ?> 56 56 <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> 57 57 </div><!-- .entry-meta --> … … 82 82 <?php else : ?> 83 83 <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a> 84 84 <?php endif; ?> 85 </div> 85 </div><!-- .entry-attachment --> 86 86 <div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div> 87 87 88 88 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> 89 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div> ' ) ); ?>89 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div><!-- .page-link -->' ) ); ?> 90 90 91 91 </div><!-- .entry-content --> 92 92