Changeset 6284 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/section-advanced.php
- Timestamp:
- 12/18/2017 05:42:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/section-advanced.php
r6251 r6284 9 9 10 10 namespace WordPressdotorg\Plugin_Directory\Theme; 11 11 12 use WordPressdotorg\Plugin_Directory\Template; 12 13 … … 17 18 <?php the_closed_plugin_notice(); ?> 18 19 19 <h2><?php _e( 'Plugin Stats', 'wporg-plugins' ); ?></h2>20 <h2><?php esc_html_e( 'Plugin Stats', 'wporg-plugins' ); ?></h2> 20 21 21 <h4><?php _e( 'Active versions', 'wporg-plugins' ); ?></h4>22 <h4><?php esc_html_e( 'Active versions', 'wporg-plugins' ); ?></h4> 22 23 <div id="plugin-version-stats" class="chart version-stats"></div> 23 24 24 <h4><?php _e( 'Downloads Per Day', 'wporg-plugins' ); ?></h4>25 <h4><?php esc_html_e( 'Downloads Per Day', 'wporg-plugins' ); ?></h4> 25 26 <div id="plugin-download-stats" class="chart download-stats"></div> 26 27 27 <h4><?php _e( 'Active Install Growth', 'wporg-plugins' ); ?></h4>28 <h4><?php esc_html_e( 'Active Install Growth', 'wporg-plugins' ); ?></h4> 28 29 <div id="plugin-growth-stats" class="chart download-stats"></div> 29 30 30 <h5><?php _e( 'Downloads history', 'wporg-plugins' ); ?></h5>31 <h5><?php esc_html_e( 'Downloads history', 'wporg-plugins' ); ?></h5> 31 32 <table id="plugin-download-history-stats" class="download-history-stats"> 32 33 <tbody></tbody> … … 47 48 $tags = array_reverse( $tags ); 48 49 49 echo '<h5>' . __( 'Previous Versions', 'wporg-plugins' ) . '</h5>';50 echo '<div class="plugin-notice notice notice-info notice-alt"><p>' . __( 'Previous versions of this plugin may not be secure or stable and are available for testing purposes only.', 'wporg-plugins' ) . '</p></div>';50 echo '<h5>' . esc_html__( 'Previous Versions', 'wporg-plugins' ) . '</h5>'; 51 echo '<div class="plugin-notice notice notice-info notice-alt"><p>' . esc_html__( 'Previous versions of this plugin may not be secure or stable and are available for testing purposes only.', 'wporg-plugins' ) . '</p></div>'; 51 52 52 53 echo '<select class="previous-versions" onchange="getElementById(\'download-previous-link\').href=this.value;">'; 53 54 foreach ( $tags as $version ) { 54 $text = ( 'trunk' == $version ?__( 'Development Version', 'wporg-plugins' ) : $version );55 $text = ( 'trunk' === $version ? esc_html__( 'Development Version', 'wporg-plugins' ) : $version ); 55 56 printf( '<option value="%s">%s</option>', esc_attr( Template::download_link( $post, $version ) ), esc_html( $text ) ); 56 57 } … … 60 61 '<a href="%s" id="download-previous-link" class="button">%s</a>', 61 62 esc_url( Template::download_link( $post, reset( $tags ) ) ), 62 __( 'Download', 'wporg-plugins' )63 esc_html__( 'Download', 'wporg-plugins' ) 63 64 ); 64 65 }
Note: See TracChangeset
for help on using the changeset viewer.