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/content-single.php

    r1462 r1477  
    2828                <div class="theme-head">
    2929                        <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>
    3232                        </div>
    3333
     
    3737                        ?>
    3838                        <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>
    4040                        </div>
    4141                        <?php endif; ?>
     
    5858
    5959                        <div class="theme-tags">
    60                                 <?php the_tags( '<h4>' . __( 'Tags:' ) . '</h4>' ); ?>
     60                                <?php the_tags( '<h4>' . __( 'Tags:', 'wporg-themes' ) . '</h4>' ); ?>
    6161                        </div><!-- .theme-tags -->
    6262
     
    6565
    6666                                <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>
    6868                        </div><!-- .theme-downloads -->
    6969                </div><!-- .theme-info -->
     
    125125                                                <a href="//themes.trac.wordpress.org/log/<?php echo esc_attr( $slug ); ?>?limit=100&mode=stop_on_copy&format=rss">
    126126                                                        <img src="//s.w.org/style/images/feedicon.png" />
    127                                                         <?php _e( 'Development Log', 'wporg' ); ?>
     127                                                        <?php _e( 'Development Log', 'wporg-themes' ); ?>
    128128                                                </a>
    129129                                        </li>
Note: See TracChangeset for help on using the changeset viewer.