Making WordPress.org


Ignore:
Timestamp:
04/15/2015 08:56:26 AM (11 years ago)
Author:
dd32
Message:

Theme Directory: Improve localisation by properly using a consistent text domain, and not relying upon strings contained within wp-admin.
This removes the Nav menu, replacing it with a hard-coded menu, and hard-coded site title.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-preview.php

    r1453 r1477  
    22        <div class="wp-full-overlay-sidebar">
    33                <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>
    88                </div>
    99                <div class="wp-full-overlay-sidebar-content">
    1010                        <div class="install-theme-info">
    1111                                <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>
    1313
    1414                                <img class="theme-screenshot" src="{{ data.screenshot_url }}?w=520&strip=all" alt="" />
     
    2525                                                <small class="ratings">{{ data.rating_text }}</small>
    2626                                                <# } else { #>
    27                                                 <small class="ratings"><?php _e( 'No ratings.' ); ?></small>
     27                                                <small class="ratings"><?php _e( 'No ratings.', 'wporg-themes' ); ?></small>
    2828                                                <# } #>
    2929                                        </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>
    3131                                        <div class="theme-description">{{{ data.description }}}</div>
    3232                                </div>
     
    3434                </div>
    3535                <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>
    3838                                <span class="collapse-sidebar-arrow"></span>
    3939                        </a>
Note: See TracChangeset for help on using the changeset viewer.