Changeset 19582
- Timestamp:
- 12/10/2011 07:18:51 PM (12 years ago)
- Location:
- trunk/wp-content/themes
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/content-image.php
r19375 r19582 37 37 get_the_date(), 38 38 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 39 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),39 esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ), 40 40 get_the_author() 41 41 ); -
trunk/wp-content/themes/twentyeleven/content-single.php
r18385 r19582 58 58 </div><!-- #author-avatar --> 59 59 <div id="author-description"> 60 <h2><?php printf( esc_attr__( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>60 <h2><?php printf( __( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2> 61 61 <?php the_author_meta( 'description' ); ?> 62 62 <div id="author-link"> -
trunk/wp-content/themes/twentyeleven/functions.php
r19289 r19582 568 568 esc_html( get_the_date() ), 569 569 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 570 sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),571 esc_html( get_the_author())570 esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ), 571 get_the_author() 572 572 ); 573 573 } … … 583 583 function twentyeleven_body_classes( $classes ) { 584 584 585 if ( ! is_multi_author() ) {585 if ( function_exists( 'is_multi_author' ) && ! is_multi_author() ) 586 586 $classes[] = 'single-author'; 587 }588 587 589 588 if ( is_singular() && ! is_home() && ! is_page_template( 'showcase.php' ) && ! is_page_template( 'sidebar-page.php' ) ) -
trunk/wp-content/themes/twentyeleven/image.php
r19379 r19582 28 28 <?php 29 29 $metadata = wp_get_attachment_metadata(); 30 printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">% 7$s</a>', 'twentyeleven' ),30 printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', 'twentyeleven' ), 31 31 esc_attr( get_the_time() ), 32 32 get_the_date(), … … 35 35 $metadata['height'], 36 36 esc_url( get_permalink( $post->post_parent ) ), 37 esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ), 37 38 get_the_title( $post->post_parent ) 38 39 ); … … 71 72 } 72 73 ?> 73 <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php echo esc_attr( get_the_title()); ?>" rel="attachment"><?php74 <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php 74 75 $attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 ); 75 76 echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height. -
trunk/wp-content/themes/twentyeleven/style.css
r19543 r19582 5 5 Author URI: http://wordpress.org/ 6 6 Description: The 2011 theme for WordPress is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background -- then go further with available theme options for light or dark color scheme, custom link colors, and three layout choices. Twenty Eleven comes equipped with a Showcase page template that transforms your front page into a showcase to show off your best content, widget support galore (sidebar, three footer areas, and a Showcase page widget area), and a custom "Ephemera" widget to display your Aside, Link, Quote, or Status posts. Included are styles for print and for the admin editor, support for featured images (as custom header images on posts and pages and as large images on featured "sticky" posts), and special styles for six different post formats. 7 Version: 1. 27 Version: 1.3 8 8 License: GNU General Public License 9 9 License URI: license.txt -
trunk/wp-content/themes/twentyten/functions.php
r19058 r19582 474 474 sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', 475 475 get_author_posts_url( get_the_author_meta( 'ID' ) ), 476 sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),476 esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ), 477 477 get_the_author() 478 478 ) -
trunk/wp-content/themes/twentyten/loop-attachment.php
r18189 r19582 19 19 20 20 <?php if ( ! empty( $post->post_parent ) ) : ?> 21 <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php e sc_attr( printf( __( 'Return to %s', 'twentyten' ), get_the_title( $post->post_parent) ) ); ?>" rel="gallery"><?php21 <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php echo esc_attr( sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) ) ); ?>" rel="gallery"><?php 22 22 /* translators: %s - title of parent post */ 23 23 printf( __( '<span class="meta-nav">←</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) ); … … 34 34 sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', 35 35 get_author_posts_url( get_the_author_meta( 'ID' ) ), 36 sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),36 esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ), 37 37 get_the_author() 38 38 ) … … 86 86 } 87 87 ?> 88 <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title()); ?>" rel="attachment"><?php88 <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php 89 89 $attachment_width = apply_filters( 'twentyten_attachment_size', 900 ); 90 90 $attachment_height = apply_filters( 'twentyten_attachment_height', 900 ); … … 97 97 </div><!-- #nav-below --> 98 98 <?php else : ?> 99 <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title()); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>99 <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a> 100 100 <?php endif; ?> 101 101 </div><!-- .entry-attachment --> -
trunk/wp-content/themes/twentyten/loop-single.php
r18189 r19582 41 41 </div><!-- #author-avatar --> 42 42 <div id="author-description"> 43 <h2><?php printf( esc_attr__( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>43 <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2> 44 44 <?php the_author_meta( 'description' ); ?> 45 45 <div id="author-link"> -
trunk/wp-content/themes/twentyten/style.css
r19300 r19582 4 4 Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar. 5 5 Author: the WordPress team 6 Version: 1. 26 Version: 1.3 7 7 License: GNU General Public License 8 8 License URI: license.txt
Note: See TracChangeset
for help on using the changeset viewer.