Changes in trunk/wp-admin/themes.php [17364:18248]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/themes.php
r17364 r18248 41 41 $help .= '<p>' . __('You can see your active theme at the top of the screen. Below are the other themes you have installed that are not currently in use. You can see what your site would look like with one of these themes by clicking the Preview link. To change themes, click the Activate link.') . '</p>'; 42 42 if ( current_user_can('install_themes') ) 43 $help .= '<p>' . sprintf(__('If you would like to see more themes to choose from, click on the “Install Themes” tab and you will be able to browse or search for additional themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. Themes in the WordPress.org Theme Directory are designed and developed by third parties, and are licensed under the GNU General Public License, version 2, just like WordPress. Oh, and they’re free!'), 'http://wordpress.org/extend/themes/') . '</p>';43 $help .= '<p>' . sprintf(__('If you would like to see more themes to choose from, click on the “Install Themes” tab and you will be able to browse or search for additional themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. Themes in the WordPress.org Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!'), 'http://wordpress.org/extend/themes/') . '</p>'; 44 44 45 45 $help .= '<p><strong>' . __('For more information:') . '</strong></p>'; … … 72 72 <div class="wrap"><?php 73 73 screen_icon(); 74 if ( ! is_multisite() ) : ?>74 if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 75 75 <h2 class="nav-tab-wrapper"> 76 <a href="themes.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a> 77 <?php if ( current_user_can('install_themes') ) : ?> 78 <a href="<?php echo admin_url( 'theme-install.php'); ?>" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a> 79 <?php endif; 80 else : ?> 81 <h2> 82 <?php echo esc_html( $title ); ?> 76 <a href="themes.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a><a href="<?php echo admin_url( 'theme-install.php'); ?>" class="nav-tab"><?php echo esc_html_x('Install Themes', 'theme'); ?></a> 77 <?php else : ?> 78 <h2><?php echo esc_html( $title ); ?> 83 79 <?php endif; ?> 84 80 </h2> … … 148 144 149 145 <p class="search-box"> 150 <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Themes'); ?>:</label>146 <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Installed Themes'); ?>:</label> 151 147 <input type="text" id="theme-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 152 <?php submit_button( __( 'Search Themes' ), 'button', 'submit', false); ?>148 <?php submit_button( __( 'Search Installed Themes' ), 'button', false, false, array( 'id' => 'search-submit' ) ); ?> 153 149 <a id="filter-click" href="?filter=1"><?php _e( 'Feature Filter' ); ?></a> 154 150 </p> … … 185 181 186 182 <div class="feature-container"> 187 <?php submit_button( __( 'Apply Filters' ), 'button-secondary submitter', 'submit', false, array( 'style' => 'margin-left: 120px' ) ); ?>183 <?php submit_button( __( 'Apply Filters' ), 'button-secondary submitter', false, false, array( 'style' => 'margin-left: 120px', 'id' => 'filter-submit' ) ); ?> 188 184 189 185 <small><a id="mini-filter-click" href="<?php echo esc_url( remove_query_arg( array('filter', 'features', 'submit') ) ); ?>"><?php _e( 'Close filters' )?></a></small> … … 214 210 <table id="broken-themes"> 215 211 <tr> 216 <th><?php _e ('Name'); ?></th>212 <th><?php _ex('Name', 'theme name'); ?></th> 217 213 <th><?php _e('Description'); ?></th> 218 214 </tr>
Note: See TracChangeset
for help on using the changeset viewer.