- Timestamp:
- 12/16/2014 12:59:59 PM (9 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfifteen
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/404.php
r30394 r30896 15 15 <section class="error-404 not-found"> 16 16 <header class="page-header"> 17 <h1 class="page-title"><?php esc_html_e( 'Oops! That page can’t be found.', 'twentyfifteen' ); ?></h1>17 <h1 class="page-title"><?php _e( 'Oops! That page can’t be found.', 'twentyfifteen' ); ?></h1> 18 18 </header><!-- .page-header --> 19 19 20 20 <div class="page-content"> 21 <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyfifteen' ); ?></p>21 <p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentyfifteen' ); ?></p> 22 22 23 23 <?php get_search_form(); ?> -
trunk/src/wp-content/themes/twentyfifteen/author-bio.php
r30805 r30896 10 10 11 11 <div class="author-info"> 12 <h2 class="author-heading"><?php esc_html_e( 'Published by', 'twentyfifteen' ); ?></h2>12 <h2 class="author-heading"><?php _e( 'Published by', 'twentyfifteen' ); ?></h2> 13 13 <div class="author-avatar"> 14 14 <?php -
trunk/src/wp-content/themes/twentyfifteen/comments.php
r30394 r30896 51 51 if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : 52 52 ?> 53 <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'twentyfifteen' ); ?></p>53 <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfifteen' ); ?></p> 54 54 <?php endif; ?> 55 55 -
trunk/src/wp-content/themes/twentyfifteen/content-link.php
r30394 r30896 29 29 /* translators: %s: Name of current post */ 30 30 the_content( sprintf( 31 esc_html__( 'Continue reading %s', 'twentyfifteen' ),31 __( 'Continue reading %s', 'twentyfifteen' ), 32 32 the_title( '<span class="screen-reader-text">', '</span>', false ) 33 33 ) ); 34 34 35 35 wp_link_pages( array( 36 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'twentyfifteen' ) . '</span>',36 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', 37 37 'after' => '</div>', 38 38 'link_before' => '<span>', 39 39 'link_after' => '</span>', 40 'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'twentyfifteen' ) . ' </span>%',40 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', 41 41 'separator' => '<span class="screen-reader-text">, </span>', 42 42 ) ); … … 54 54 <footer class="entry-footer"> 55 55 <?php twentyfifteen_entry_meta(); ?> 56 <?php edit_post_link( esc_html__( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>56 <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> 57 57 </footer> 58 58 <!-- .entry-footer --> -
trunk/src/wp-content/themes/twentyfifteen/content-none.php
r30394 r30896 13 13 <section class="no-results not-found"> 14 14 <header class="page-header"> 15 <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'twentyfifteen' ); ?></h1>15 <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfifteen' ); ?></h1> 16 16 </header><!-- .page-header --> 17 17 … … 24 24 <?php elseif ( is_search() ) : ?> 25 25 26 <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfifteen' ); ?></p>26 <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfifteen' ); ?></p> 27 27 <?php get_search_form(); ?> 28 28 29 29 <?php else : ?> 30 30 31 <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfifteen' ); ?></p>31 <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfifteen' ); ?></p> 32 32 <?php get_search_form(); ?> 33 33 -
trunk/src/wp-content/themes/twentyfifteen/content-page.php
r30394 r30896 23 23 <?php 24 24 wp_link_pages( array( 25 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'twentyfifteen' ) . '</span>',25 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', 26 26 'after' => '</div>', 27 27 'link_before' => '<span>', 28 28 'link_after' => '</span>', 29 'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'twentyfifteen' ) . ' </span>%',29 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', 30 30 'separator' => '<span class="screen-reader-text">, </span>', 31 31 ) ); … … 33 33 </div><!-- .entry-content --> 34 34 35 <?php edit_post_link( esc_html__( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?>35 <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?> 36 36 37 37 </article><!-- #post-## --> -
trunk/src/wp-content/themes/twentyfifteen/content-search.php
r30394 r30896 26 26 <footer class="entry-footer"> 27 27 <?php twentyfifteen_entry_meta(); ?> 28 <?php edit_post_link( esc_html__( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>28 <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> 29 29 </footer><!-- .entry-footer --> 30 30 31 31 <?php else : ?> 32 32 33 <?php edit_post_link( esc_html__( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?>33 <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?> 34 34 35 35 <?php endif; ?> -
trunk/src/wp-content/themes/twentyfifteen/content.php
r30394 r30896 31 31 /* translators: %s: Name of current post */ 32 32 the_content( sprintf( 33 esc_html__( 'Continue reading %s', 'twentyfifteen' ),33 __( 'Continue reading %s', 'twentyfifteen' ), 34 34 the_title( '<span class="screen-reader-text">', '</span>', false ) 35 35 ) ); 36 36 37 37 wp_link_pages( array( 38 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'twentyfifteen' ) . '</span>',38 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', 39 39 'after' => '</div>', 40 40 'link_before' => '<span>', 41 41 'link_after' => '</span>', 42 'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'twentyfifteen' ) . ' </span>%',42 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', 43 43 'separator' => '<span class="screen-reader-text">, </span>', 44 44 ) ); … … 55 55 <footer class="entry-footer"> 56 56 <?php twentyfifteen_entry_meta(); ?> 57 <?php edit_post_link( esc_html__( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>57 <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> 58 58 </footer><!-- .entry-footer --> 59 59 -
trunk/src/wp-content/themes/twentyfifteen/footer.php
r30394 r30896 23 23 do_action( 'twentyfifteen_credits' ); 24 24 ?> 25 <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfifteen' ) ); ?>"><?php printf( esc_html__( 'Proudly powered by %s', 'twentyfifteen' ), 'WordPress' ); ?></a>25 <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfifteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfifteen' ), 'WordPress' ); ?></a> 26 26 </div><!-- .site-info --> 27 27 </footer><!-- .site-footer --> -
trunk/src/wp-content/themes/twentyfifteen/functions.php
r30865 r30896 229 229 wp_enqueue_script( 'twentyfifteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20141212', true ); 230 230 wp_localize_script( 'twentyfifteen-script', 'screenReaderText', array( 231 'expand' => '<span class="screen-reader-text">' . esc_html__( 'expand child menu', 'twentyfifteen' ) . '</span>',232 'collapse' => '<span class="screen-reader-text">' . esc_html__( 'collapse child menu', 'twentyfifteen' ) . '</span>',231 'expand' => '<span class="screen-reader-text">' . __( 'expand child menu', 'twentyfifteen' ) . '</span>', 232 'collapse' => '<span class="screen-reader-text">' . __( 'collapse child menu', 'twentyfifteen' ) . '</span>', 233 233 ) ); 234 234 } -
trunk/src/wp-content/themes/twentyfifteen/header.php
r30798 r30896 25 25 <body <?php body_class(); ?>> 26 26 <div id="page" class="hfeed site"> 27 <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'twentyfifteen' ); ?></a>27 <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyfifteen' ); ?></a> 28 28 29 29 <div id="sidebar" class="sidebar"> … … 42 42 <?php endif; 43 43 ?> 44 <button class="secondary-toggle"><?php esc_html_e( 'Menu and widgets', 'twentyfifteen' ); ?></button>44 <button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button> 45 45 </div><!-- .site-branding --> 46 46 </header><!-- .site-header --> -
trunk/src/wp-content/themes/twentyfifteen/image.php
r30394 r30896 22 22 <nav id="image-navigation" class="navigation image-navigation"> 23 23 <div class="nav-links"> 24 <div class="nav-previous"><?php previous_image_link( false, esc_html__( 'Previous Image', 'twentyfifteen' ) ); ?></div><div class="nav-next"><?php next_image_link( false, esc_html__( 'Next Image', 'twentyfifteen' ) ); ?></div>24 <div class="nav-previous"><?php previous_image_link( false, __( 'Previous Image', 'twentyfifteen' ) ); ?></div><div class="nav-next"><?php next_image_link( false, __( 'Next Image', 'twentyfifteen' ) ); ?></div> 25 25 </div><!-- .nav-links --> 26 26 </nav><!-- .image-navigation --> … … 57 57 the_content(); 58 58 wp_link_pages( array( 59 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'twentyfifteen' ) . '</span>',59 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>', 60 60 'after' => '</div>', 61 61 'link_before' => '<span>', 62 62 'link_after' => '</span>', 63 'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'twentyfifteen' ) . ' </span>%',63 'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%', 64 64 'separator' => '<span class="screen-reader-text">, </span>', 65 65 ) ); … … 69 69 <footer class="entry-footer"> 70 70 <?php twentyfifteen_entry_meta(); ?> 71 <?php edit_post_link( esc_html__( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?>71 <?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<span class="edit-link">', '</span>' ); ?> 72 72 </footer><!-- .entry-footer --> 73 73 -
trunk/src/wp-content/themes/twentyfifteen/inc/customizer.php
r30893 r30896 29 29 30 30 $wp_customize->add_control( 'color_scheme', array( 31 'label' => esc_html__( 'Base Color Scheme', 'twentyfifteen' ),31 'label' => __( 'Base Color Scheme', 'twentyfifteen' ), 32 32 'section' => 'colors', 33 33 'type' => 'select', … … 44 44 45 45 $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_textcolor', array( 46 'label' => esc_html__( 'Header and Sidebar Text Color', 'twentyfifteen' ),47 'description' => esc_html__( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ),46 'label' => __( 'Header and Sidebar Text Color', 'twentyfifteen' ), 47 'description' => __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ), 48 48 'section' => 'colors', 49 49 ) ) ); … … 60 60 61 61 $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array( 62 'label' => esc_html__( 'Header and Sidebar Background Color', 'twentyfifteen' ),63 'description' => esc_html__( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ),62 'label' => __( 'Header and Sidebar Background Color', 'twentyfifteen' ), 63 'description' => __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ), 64 64 'section' => 'colors', 65 65 ) ) ); 66 66 67 67 // Add an additional description to the header image section. 68 $wp_customize->get_section( 'header_image' )->description = esc_html__( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' );68 $wp_customize->get_section( 'header_image' )->description = __( 'Applied to the header on small screens and the sidebar on wide screens.', 'twentyfifteen' ); 69 69 } 70 70 add_action( 'customize_register', 'twentyfifteen_customize_register', 11 ); … … 90 90 return apply_filters( 'twentyfifteen_color_schemes', array( 91 91 'default' => array( 92 'label' => esc_html__( 'Default', 'twentyfifteen' ),92 'label' => __( 'Default', 'twentyfifteen' ), 93 93 'colors' => array( 94 94 '#f1f1f1', … … 101 101 ), 102 102 'dark' => array( 103 'label' => esc_html__( 'Dark', 'twentyfifteen' ),103 'label' => __( 'Dark', 'twentyfifteen' ), 104 104 'colors' => array( 105 105 '#111111', … … 112 112 ), 113 113 'yellow' => array( 114 'label' => esc_html__( 'Yellow', 'twentyfifteen' ),114 'label' => __( 'Yellow', 'twentyfifteen' ), 115 115 'colors' => array( 116 116 '#f4ca16', … … 123 123 ), 124 124 'pink' => array( 125 'label' => esc_html__( 'Pink', 'twentyfifteen' ),125 'label' => __( 'Pink', 'twentyfifteen' ), 126 126 'colors' => array( 127 127 '#ffe5d1', … … 134 134 ), 135 135 'purple' => array( 136 'label' => esc_html__( 'Purple', 'twentyfifteen' ),136 'label' => __( 'Purple', 'twentyfifteen' ), 137 137 'colors' => array( 138 138 '#674970', … … 145 145 ), 146 146 'blue' => array( 147 'label' => esc_html__( 'Blue', 'twentyfifteen' ),147 'label' => __( 'Blue', 'twentyfifteen' ), 148 148 'colors' => array( 149 149 '#e9f2f9', -
trunk/src/wp-content/themes/twentyfifteen/inc/template-tags.php
r30781 r30896 21 21 ?> 22 22 <nav class="navigation comment-navigation" role="navigation"> 23 <h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'twentyfifteen' ); ?></h2>23 <h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfifteen' ); ?></h2> 24 24 <div class="nav-links"> 25 25 <?php 26 if ( $prev_link = get_previous_comments_link( esc_html__( 'Older Comments', 'twentyfifteen' ) ) ) :26 if ( $prev_link = get_previous_comments_link( __( 'Older Comments', 'twentyfifteen' ) ) ) : 27 27 printf( '<div class="nav-previous">%s</div>', $prev_link ); 28 28 endif; 29 29 30 if ( $next_link = get_next_comments_link( esc_html__( 'Newer Comments', 'twentyfifteen' ) ) ) :30 if ( $next_link = get_next_comments_link( __( 'Newer Comments', 'twentyfifteen' ) ) ) : 31 31 printf( '<div class="nav-next">%s</div>', $next_link ); 32 32 endif; … … 47 47 function twentyfifteen_entry_meta() { 48 48 if ( is_sticky() && is_home() && ! is_paged() ) { 49 printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'twentyfifteen' ) );49 printf( '<span class="sticky-post">%s</span>', __( 'Featured', 'twentyfifteen' ) ); 50 50 } 51 51 … … 120 120 if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { 121 121 echo '<span class="comments-link">'; 122 comments_popup_link( esc_html__( 'Leave a comment', 'twentyfifteen' ), esc_html__( '1 Comment', 'twentyfifteen' ), esc_html__( '% Comments', 'twentyfifteen' ) );122 comments_popup_link( __( 'Leave a comment', 'twentyfifteen' ), __( '1 Comment', 'twentyfifteen' ), __( '% Comments', 'twentyfifteen' ) ); 123 123 echo '</span>'; 124 124 } … … 235 235 esc_url( get_permalink( get_the_ID() ) ), 236 236 /* translators: %s: Name of current post */ 237 sprintf( esc_html__( 'Continue reading %s', 'twentyfifteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )237 sprintf( __( 'Continue reading %s', 'twentyfifteen' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' ) 238 238 ); 239 239 return ' … ' . $link; -
trunk/src/wp-content/themes/twentyfifteen/search.php
r30824 r30896 16 16 17 17 <header class="page-header"> 18 <h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'twentyfifteen' ), get_search_query() ); ?></h1>18 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyfifteen' ), get_search_query() ); ?></h1> 19 19 </header><!-- .page-header --> 20 20
Note: See TracChangeset
for help on using the changeset viewer.