Changeset 1477
- Timestamp:
- 04/15/2015 08:56:26 AM (10 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r1473 r1477 417 417 $subject = sprintf( __( '[WordPress Themes] %s - feedback', 'wporg-themes' ), $post->post_title ); 418 418 // Translators: 1: Theme name; 2: Ticket URL. 419 $content = sprintf( __( 'Feedback for the %1$s theme is at %2$s', 'wporg ' ) . "\n\n--\n", $post->post_title, "https://themes.trac.wordpress.org/ticket/{$ticket_id}" );419 $content = sprintf( __( 'Feedback for the %1$s theme is at %2$s', 'wporg-themes' ) . "\n\n--\n", $post->post_title, "https://themes.trac.wordpress.org/ticket/{$ticket_id}" ); 420 420 $content .= __( 'The WordPress.org Themes Team', 'wporg-themes' ) . "\n"; 421 421 $content .= 'https://make.wordpress.org/themes'; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content-single.php
r1462 r1477 28 28 <div class="theme-head"> 29 29 <div class="theme-actions clear"> 30 <a href="<?php echo esc_url( '//wp-themes.com/' . $slug ); ?>" class="button button-secondary alignleft"><?php _e( 'Preview' ); ?></a>31 <a href="<?php echo esc_url( '//downloads.wordpress.org/theme/' . $slug . '.' . $theme->version . '.zip' ); ?>" class="button button-primary alignright"><?php _e( 'Download' ); ?></a>30 <a href="<?php echo esc_url( '//wp-themes.com/' . $slug ); ?>" class="button button-secondary alignleft"><?php _e( 'Preview', 'wporg-themes' ); ?></a> 31 <a href="<?php echo esc_url( '//downloads.wordpress.org/theme/' . $slug . '.' . $theme->version . '.zip' ); ?>" class="button button-primary alignright"><?php _e( 'Download', 'wporg-themes' ); ?></a> 32 32 </div> 33 33 … … 37 37 ?> 38 38 <div class="theme-notice notice notice-info"> 39 <p class="parent-theme"><?php printf( __( 'This is a child theme of %s.' ), sprintf( '<a href="%1$s">%2$s</a>', get_permalink( $parent->ID ), $parent->post_title ) ); ?></p>39 <p class="parent-theme"><?php printf( __( 'This is a child theme of %s.', 'wporg-themes' ), sprintf( '<a href="%1$s">%2$s</a>', get_permalink( $parent->ID ), $parent->post_title ) ); ?></p> 40 40 </div> 41 41 <?php endif; ?> … … 58 58 59 59 <div class="theme-tags"> 60 <?php the_tags( '<h4>' . __( 'Tags:' ) . '</h4>' ); ?>60 <?php the_tags( '<h4>' . __( 'Tags:', 'wporg-themes' ) . '</h4>' ); ?> 61 61 </div><!-- .theme-tags --> 62 62 … … 65 65 66 66 <div id="theme-download-stats-<?php echo esc_attr( $slug ); ?>" class="chart"></div> 67 <p class="total-downloads"><?php printf( __( 'Total downloads: %s' ), '<strong>' . number_format_i18n( $theme->downloaded ) . '</strong>' ); ?></p>67 <p class="total-downloads"><?php printf( __( 'Total downloads: %s', 'wporg-themes' ), '<strong>' . number_format_i18n( $theme->downloaded ) . '</strong>' ); ?></p> 68 68 </div><!-- .theme-downloads --> 69 69 </div><!-- .theme-info --> … … 125 125 <a href="//themes.trac.wordpress.org/log/<?php echo esc_attr( $slug ); ?>?limit=100&mode=stop_on_copy&format=rss"> 126 126 <img src="//s.w.org/style/images/feedicon.png" /> 127 <?php _e( 'Development Log', 'wporg ' ); ?>127 <?php _e( 'Development Log', 'wporg-themes' ); ?> 128 128 </a> 129 129 </li> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/content.php
r1440 r1477 15 15 </a> 16 16 <div class="theme-actions"> 17 <a class="button button-primary preview install-theme-preview" href="<?php echo esc_url( '//downloads.wordpress.org/theme/' . $post->post_name . '.' . $theme->latest_version() . '.zip' ); ?>"><?php esc_html_e( 'Download' ); ?></a>17 <a class="button button-primary preview install-theme-preview" href="<?php echo esc_url( '//downloads.wordpress.org/theme/' . $post->post_name . '.' . $theme->latest_version() . '.zip' ); ?>"><?php _e( 'Download', 'wporg-themes' ); ?></a> 18 18 </div> 19 19 </article> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
r1467 r1477 20 20 21 21 add_theme_support( 'automatic-feed-links' ); 22 23 // This theme uses wp_nav_menu() in one location.24 register_nav_menus( array(25 'primary' => __( 'Primary Menu', 'wporg-themes' ),26 ) );27 22 28 23 add_theme_support( 'html5', array( … … 64 59 'search' => __( 'Search Themes', 'wporg-themes' ), 65 60 'searchPlaceholder' => __( 'Search themes...', 'wporg-themes' ), // placeholder (no ellipsis) 66 'error' => __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' ),61 'error' => __( 'An unexpected error occurred.', 'wporg-themes' ), 67 62 68 63 // Downloads Graph -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/header.php
r1406 r1477 6 6 */ 7 7 8 $GLOBALS['pagetitle'] = __( 'Theme Directory « Free WordPress Themes', 'wporg-themes' ); 8 9 9 $GLOBALS['pagetitle'] = wp_title( '«', false, 'right' );10 10 require WPORGPATH . 'header.php'; 11 11 ?> … … 13 13 <div id="headline"> 14 14 <div class="wrapper"> 15 <h2 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' );?></a></h2>15 <h2 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php _e( 'Theme Directory', 'wporg-themes' ) ?></a></h2> 16 16 </div> 17 17 </div> 18 18 <nav id="site-navigation" class="main-navigation" role="navigation"> 19 <?php 20 wp_nav_menu( array( 21 'theme_location' => 'primary', 22 'container' => false, 23 'depth' => 1, 24 ) ); 25 ?> 19 <ul id="menu-theme-directory" class="menu"> 20 <li><a href="<?php echo home_url( '/commercial/' ); ?>"><?php _e( 'Commercial Themes', 'wporg-themes' ); ?></a></li> 21 <li><a href="<?php echo home_url( '/getting-started/' ); ?>"><?php _e( 'Upload Your Theme', 'wporg-themes' ); ?></a></li> 22 </ul> 26 23 </nav> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/index.php
r1375 r1477 25 25 26 26 <ul class="filter-links"> 27 <li><a href="<?php echo esc_url( home_url( 'browse/featured/' ) ); ?>" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li>28 <li><a href="<?php echo esc_url( home_url( 'browse/popular/' ) ); ?>" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li>29 <li><a href="<?php echo esc_url( home_url( 'browse/new/' ) ); ?>" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li>27 <li><a href="<?php echo esc_url( home_url( 'browse/featured/' ) ); ?>" data-sort="featured"><?php _ex( 'Featured', 'themes', 'wporg-themes' ); ?></a></li> 28 <li><a href="<?php echo esc_url( home_url( 'browse/popular/' ) ); ?>" data-sort="popular"><?php _ex( 'Popular', 'themes', 'wporg-themes' ); ?></a></li> 29 <li><a href="<?php echo esc_url( home_url( 'browse/new/' ) ); ?>" data-sort="new"><?php _ex( 'Latest', 'themes', 'wporg-themes' ); ?></a></li> 30 30 </ul> 31 31 32 <a class="drawer-toggle" href="#"><?php _e( 'Feature Filter' ); ?></a>32 <a class="drawer-toggle" href="#"><?php _e( 'Feature Filter', 'wporg-themes' ); ?></a> 33 33 34 34 <div class="search-form"></div> … … 36 36 <div class="filter-drawer"> 37 37 <div class="buttons"> 38 <button type="button" disabled="disabled" class="apply-filters button button-secondary"><?php _e( 'Apply Filters' ); ?><span></span></button>39 <button type="button" class="clear-filters button button-secondary"><?php _e( 'Clear' ); ?></button>38 <button type="button" disabled="disabled" class="apply-filters button button-secondary"><?php _e( 'Apply Filters', 'wporg-themes' ); ?><span></span></button> 39 <button type="button" class="clear-filters button button-secondary"><?php _e( 'Clear', 'wporg-themes' ); ?></button> 40 40 </div> 41 41 42 42 <div class="filtered-by"> 43 <span><?php _e( 'Filtering by:' ); ?></span>43 <span><?php _e( 'Filtering by:', 'wporg-themes' ); ?></span> 44 44 <div class="tags"></div> 45 <a href="#"><?php _e( 'Edit' ); ?></a>45 <a href="#"><?php _e( 'Edit', 'wporg-themes' ); ?></a> 46 46 </div> 47 47 … … 76 76 ?> 77 77 </div> 78 <p class="no-themes"><?php _e( 'No themes found. Try a different search.' ); ?></p>78 <p class="no-themes"><?php _e( 'No themes found. Try a different search.', 'wporg-themes' ); ?></p> 79 79 </div> 80 80 <div class="theme-install-overlay"></div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/page-commercial.php
r1370 r1477 72 72 </ul> 73 73 74 <?php the_content(); ?>75 74 </div><!-- .entry-content --> 76 75 77 <?php edit_post_link( __( 'Edit', 'wporg-themes' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?>78 76 </article><!-- #post-## --> 79 77 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/page-getting-started.php
r1367 r1477 54 54 </p> 55 55 56 <?php the_content(); ?> 56 <p> 57 <a class="button button-primary" href="<?php echo home_url('/upload/'); ?>"><?php _e( 'Upload your theme', 'wporg-themes' ); ?></a> 58 </p> 57 59 </div><!-- .entry-content --> 58 60 59 <?php edit_post_link( __( 'Edit', 'wporg-themes' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?>60 61 </article><!-- #post-## --> 61 62 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/page-upload.php
r1300 r1477 19 19 20 20 <div class="entry-content"> 21 <?php the_content(); ?>21 <?php do_shortcode( '[wporg-themes-upload]' ); ?> 22 22 </div><!-- .entry-content --> 23 23 24 <?php edit_post_link( __( 'Edit', 'wporg-themes' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?>25 24 </article><!-- #post-## --> 26 25 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-preview.php
r1453 r1477 2 2 <div class="wp-full-overlay-sidebar"> 3 3 <div class="wp-full-overlay-header"> 4 <a href="#" class="close-full-overlay"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></a>5 <a href="#" class="previous-theme"><span class="screen-reader-text"><?php _ex( 'Previous', 'Button label for a theme' ); ?></span></a>6 <a href="#" class="next-theme"><span class="screen-reader-text"><?php _ex( 'Next', 'Button label for a theme' ); ?></span></a>7 <a href="//downloads.wordpress.org/theme/{{ data.slug }}.{{ data.version }}.zip" class="button button-primary theme-install"><?php _e( 'Download' ); ?></a>4 <a href="#" class="close-full-overlay"><span class="screen-reader-text"><?php _e( 'Close', 'wporg-themes' ); ?></span></a> 5 <a href="#" class="previous-theme"><span class="screen-reader-text"><?php _ex( 'Previous', 'Button label for a theme', 'wporg-themes' ); ?></span></a> 6 <a href="#" class="next-theme"><span class="screen-reader-text"><?php _ex( 'Next', 'Button label for a theme', 'wporg-themes' ); ?></span></a> 7 <a href="//downloads.wordpress.org/theme/{{ data.slug }}.{{ data.version }}.zip" class="button button-primary theme-install"><?php _e( 'Download', 'wporg-themes' ); ?></a> 8 8 </div> 9 9 <div class="wp-full-overlay-sidebar-content"> 10 10 <div class="install-theme-info"> 11 11 <h3 class="theme-name">{{ data.name }}</h3> 12 <span class="theme-by"><?php printf( __( 'By %s' ), '{{ data.author.display_name }}' ); ?></span>12 <span class="theme-by"><?php printf( __( 'By %s', 'wporg-themes' ), '{{ data.author.display_name }}' ); ?></span> 13 13 14 14 <img class="theme-screenshot" src="{{ data.screenshot_url }}?w=520&strip=all" alt="" /> … … 25 25 <small class="ratings">{{ data.rating_text }}</small> 26 26 <# } else { #> 27 <small class="ratings"><?php _e( 'No ratings.' ); ?></small>27 <small class="ratings"><?php _e( 'No ratings.', 'wporg-themes' ); ?></small> 28 28 <# } #> 29 29 </div> 30 <div class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></div>30 <div class="theme-version"><?php printf( __( 'Version: %s', 'wporg-themes' ), '{{ data.version }}' ); ?></div> 31 31 <div class="theme-description">{{{ data.description }}}</div> 32 32 </div> … … 34 34 </div> 35 35 <div class="wp-full-overlay-footer"> 36 <a href="#" class="collapse-sidebar" title="<?php esc_attr_e( 'Collapse Sidebar' ); ?>">37 <span class="collapse-sidebar-label"><?php _e( 'Collapse' ); ?></span>36 <a href="#" class="collapse-sidebar" title="<?php esc_attr_e( 'Collapse Sidebar', 'wporg-themes' ); ?>"> 37 <span class="collapse-sidebar-label"><?php _e( 'Collapse', 'wporg-themes' ); ?></span> 38 38 <span class="collapse-sidebar-arrow"></span> 39 39 </a> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php
r1465 r1477 3 3 <button class="close"><?php _e( 'Return to Themes List', 'wporg-themes' ); ?></button> 4 4 <div class="navigation post-navigation"> 5 <button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>6 <button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>5 <button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme', 'wporg-themes' ); ?></span></button> 6 <button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme', 'wporg-themes' ); ?></span></button> 7 7 </div> 8 8 </div> … … 17 17 <div> 18 18 <h3 class="theme-name entry-title" itemprop="name">{{{ data.name }}}</h3> 19 <h4 class="theme-author"><?php printf( __( 'by %s' ), '<a href="https://wordpress.org/themes/author/{{ data.author.user_nicename }}/"><span class="author" itemprop="author">{{{ data.author.display_name }}}</span></a>' ); ?></h4>19 <h4 class="theme-author"><?php printf( __( 'by %s', 'wporg-themes' ), '<a href="https://wordpress.org/themes/author/{{ data.author.user_nicename }}/"><span class="author" itemprop="author">{{{ data.author.display_name }}}</span></a>' ); ?></h4> 20 20 </div> 21 21 22 22 <div class="theme-head"> 23 23 <div class="theme-actions clear"> 24 <a href="{{{ data.preview_url }}}" class="button button-secondary alignleft"><?php _e( 'Preview' ); ?></a>25 <a href="//downloads.wordpress.org/theme/{{ data.slug }}.{{ data.version }}.zip" class="button button-primary alignright"><?php _e( 'Download' ); ?></a>24 <a href="{{{ data.preview_url }}}" class="button button-secondary alignleft"><?php _e( 'Preview', 'wporg-themes' ); ?></a> 25 <a href="//downloads.wordpress.org/theme/{{ data.slug }}.{{ data.version }}.zip" class="button button-primary alignright"><?php _e( 'Download', 'wporg-themes' ); ?></a> 26 26 </div> 27 27 28 28 <# if ( data.parent ) { #> 29 29 <div class="theme-notice notice notice-info"> 30 <p class="parent"><?php printf( __( 'This is a child theme of %s.' ), sprintf( '<a href="/themes/%1$s/">%2$s</a>', '{{{ data.parent.slug }}}', '{{{ data.parent.name }}}' ) ); ?></p>30 <p class="parent"><?php printf( __( 'This is a child theme of %s.', 'wporg-themes' ), sprintf( '<a href="/themes/%1$s/">%2$s</a>', '{{{ data.parent.slug }}}', '{{{ data.parent.name }}}' ) ); ?></p> 31 31 </div> 32 32 <# } #> … … 51 51 <# if ( data.tags ) { #> 52 52 <div class="theme-tags"> 53 <h4><?php _e( 'Tags:' ); ?></h4>53 <h4><?php _e( 'Tags:', 'wporg-themes' ); ?></h4> 54 54 {{{ data.tags }}} 55 55 </div><!-- .theme-tags --> … … 57 57 58 58 <div class="theme-downloads"> 59 <h4><?php _e( 'Downloads Per Day' ); ?></h4>59 <h4><?php _e( 'Downloads Per Day', 'wporg-themes' ); ?></h4> 60 60 <div id="theme-download-stats-{{data.id}}" class="chart"></div> 61 <p class="total-downloads"><?php printf( __( 'Total downloads: %s' ), '<strong>{{ data.downloaded }}</strong>' ); ?></p>61 <p class="total-downloads"><?php printf( __( 'Total downloads: %s', 'wporg-themes' ), '<strong>{{ data.downloaded }}</strong>' ); ?></p> 62 62 </div><!-- .theme-downloads --> 63 63 </div> … … 87 87 <li class="counter-container"> 88 88 <a href="//wordpress.org/support/view/theme-reviews/{{ data.id }}?filter=5" title="<?php echo esc_attr( sprintf( __( 'Click to see reviews that provided a rating of %d stars', 'wporg-themes' ), 5 ) ); ?>"> 89 <span class="counter-label"><?php printf( _ _( '%d stars', 'wporg-themes' ), 5 ); ?></span>89 <span class="counter-label"><?php printf( _n( '%d star', '%d stars', 5, 'wporg-themes' ), 5 ); ?></span> 90 90 <span class="counter-back"> 91 91 <span class="counter-bar" style="width: {{ 100 * data.ratings[5] / data.num_ratings }}%;"></span> … … 96 96 <li class="counter-container"> 97 97 <a href="//wordpress.org/support/view/theme-reviews/{{ data.id }}?filter=4" title="<?php echo esc_attr( sprintf( __( 'Click to see reviews that provided a rating of %d stars', 'wporg-themes' ), 4 ) ); ?>"> 98 <span class="counter-label"><?php printf( _ _( '%d stars', 'wporg-themes' ), 4 ); ?></span>98 <span class="counter-label"><?php printf( _n( '%d star', '%d stars', 4, 'wporg-themes' ), 4 ); ?></span> 99 99 <span class="counter-back"> 100 100 <span class="counter-bar" style="width: {{ 100 * data.ratings[4] / data.num_ratings }}%;"></span> … … 105 105 <li class="counter-container"> 106 106 <a href="//wordpress.org/support/view/theme-reviews/{{ data.id }}?filter=3" title="<?php echo esc_attr( sprintf( __( 'Click to see reviews that provided a rating of %d stars', 'wporg-themes' ), 3 ) ); ?>"> 107 <span class="counter-label"><?php printf( _ _( '%d stars', 'wporg-themes' ), 3 ); ?></span>107 <span class="counter-label"><?php printf( _n( '%d star', '%d stars', 3, 'wporg-themes' ), 3 ); ?></span> 108 108 <span class="counter-back"> 109 109 <span class="counter-bar" style="width: {{ 100 * data.ratings[3] / data.num_ratings }}%;"></span> … … 114 114 <li class="counter-container"> 115 115 <a href="//wordpress.org/support/view/theme-reviews/{{ data.id }}?filter=2" title="<?php echo esc_attr( sprintf( __( 'Click to see reviews that provided a rating of %d stars', 'wporg-themes' ), 2 ) ); ?>"> 116 <span class="counter-label"><?php printf( _ _( '%d stars', 'wporg-themes' ), 2 ); ?></span>116 <span class="counter-label"><?php printf( _n( '%d star', '%d stars', 2, 'wporg-themes' ), 2 ); ?></span> 117 117 <span class="counter-back"> 118 118 <span class="counter-bar" style="width: {{ 100 * data.ratings[2] / data.num_ratings }}%;"></span> … … 123 123 <li class="counter-container"> 124 124 <a href="//wordpress.org/support/view/theme-reviews/{{ data.id }}?filter=1" title="<?php esc_attr_e( 'Click to see reviews that provided a rating of 1 star', 'wporg-themes' ); ?>"> 125 <span class="counter-label"><?php _e( '1 star', 'wporg-themes'); ?></span>125 <span class="counter-label"><?php printf( _n( '%d star', '%d stars', 1, 'wporg-themes' ), 1 ); ?></span> 126 126 <span class="counter-back"> 127 127 <span class="counter-bar" style="width: {{ 100 * data.ratings[1] / data.num_ratings }}%;"></span> … … 149 149 <a href="//themes.trac.wordpress.org/log/{{data.id}}?limit=100&mode=stop_on_copy&format=rss"> 150 150 <img src="//s.w.org/style/images/feedicon.png" /> 151 <?php _e( 'Development Log', 'wporg ' ); ?>151 <?php _e( 'Development Log', 'wporg-themes' ); ?> 152 152 </a> 153 153 </li> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme.php
r1440 r1477 8 8 <div class="theme-screenshot blank"></div> 9 9 <# } #> 10 <span class="more-details"><?php _ex( 'More Info', 'theme' ); ?></span>11 <div class="theme-author"><?php printf( __( 'By %s' ), '<span class="author">{{ data.author.display_name }}</span>' ); ?></div>10 <span class="more-details"><?php _ex( 'More Info', 'theme', 'wporg-themes' ); ?></span> 11 <div class="theme-author"><?php printf( __( 'By %s', 'wporg-themes' ), '<span class="author">{{ data.author.display_name }}</span>' ); ?></div> 12 12 <h3 class="theme-name entry-title">{{{ data.name }}}</h3> 13 13 </a> 14 14 <div class="theme-actions"> 15 <a class="button button-primary preview install-theme-preview" href="//downloads.wordpress.org/theme/{{ data.slug }}.{{ data.version }}.zip"><?php esc_html_e( 'Download' ); ?></a>15 <a class="button button-primary preview install-theme-preview" href="//downloads.wordpress.org/theme/{{ data.slug }}.{{ data.version }}.zip"><?php esc_html_e( 'Download', 'wporg-themes' ); ?></a> 16 16 </div> 17 17 </script>
Note: See TracChangeset
for help on using the changeset viewer.