Changeset 26291 for trunk/src/wp-admin/themes.php
- Timestamp:
- 11/20/2013 07:43:36 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/themes.php
r26288 r26291 97 97 'confirmDelete' => __( "Are you sure you want to delete this theme?\n\nClick 'Cancel' to go back, 'OK' to confirm the delete." ), 98 98 'root' => '/wp-admin/themes.php', 99 'container' => '#appearance',100 99 'extraRoutes' => '', 101 100 ), 102 'i18n' => array( 103 'addNew' => __( 'Add New Theme' ), 104 ), 101 'l10n' => array( 102 'addNew' => __( 'Add New Theme' ), 103 'search' => __( 'Search...' ), 104 ), 105 105 ) ); 106 106 … … 113 113 ?> 114 114 115 <div id="appearance"class="wrap">115 <div class="wrap"> 116 116 <h2><?php esc_html_e( 'Themes' ); ?> 117 <span id="theme-count"class="theme-count"></span>117 <span class="theme-count"></span> 118 118 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 119 119 <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="add-new-h2"><?php echo esc_html( _x( 'Add New', 'Add new theme' ) ); ?></a> 120 120 <?php endif; ?> 121 121 </h2> 122 123 <div class="theme-browser"></div> 122 124 123 125 <?php … … 184 186 ?> 185 187 188 <div class="broken-themes"> 186 189 <h3><?php _e('Broken Themes'); ?></h3> 187 190 <p><?php _e('The following themes are installed but incomplete. Themes must have a stylesheet and a template.'); ?></p> 188 191 189 <table id="broken-themes">192 <table> 190 193 <tr> 191 194 <th><?php _ex('Name', 'theme name'); ?></th> … … 196 199 echo " 197 200 <tr> 198 <td>" . $broken_theme->get('Name') ."</td>201 <td>" . ( $broken_theme->get( 'Name' ) ? $broken_theme->get( 'Name' ) : $broken_theme->get_stylesheet() ) . "</td> 199 202 <td>" . $broken_theme->errors()->get_error_message() . "</td> 200 203 </tr>"; … … 202 205 ?> 203 206 </table> 207 </div> 208 204 209 <?php 205 210 } … … 236 241 </script> 237 242 238 <script id="tmpl-theme-search" type="text/template">239 <input type="text" name="theme-search" id="theme-search" placeholder="<?php esc_attr_e( 'Search...' ); ?>" />240 </script>241 242 243 <script id="tmpl-theme-single" type="text/template"> 243 244 <div class="theme-backdrop"></div> … … 249 250 </div> 250 251 251 <div class="theme-screenshots" id="theme-screenshots">252 <div class="theme-screenshots"> 252 253 <div class="screenshot first"><img src="{{ data.screenshot[0] }}" alt="" /></div> 253 254 <#
Note: See TracChangeset
for help on using the changeset viewer.