Changes from trunk/src/wp-admin/themes.php at r26853 to branches/3.8/src/wp-admin/themes.php at r27876
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8/src/wp-admin/themes.php
r26853 r27876 143 143 144 144 if ( $ct->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) { 145 echo '< p class="error-message">' . sprintf( __( 'ERROR: %s' ), $ct->errors()->get_error_message() ) . '</p>';145 echo '<div class="error"><p>' . sprintf( __( 'ERROR: %s' ), $ct->errors()->get_error_message() ) . '</p></div>'; 146 146 } 147 147 … … 192 192 */ 193 193 194 foreach ( $themes as $theme ) : ?> 195 <div class="theme<?php if ( $theme['active'] ) echo ' active'; ?>"> 194 foreach ( $themes as $theme ) : 195 $aria_action = esc_attr( $theme['id'] . '-action' ); 196 $aria_name = esc_attr( $theme['id'] . '-name' ); 197 ?> 198 <div class="theme<?php if ( $theme['active'] ) echo ' active'; ?>" tabindex="0" aria-describedby="<?php echo $aria_action . ' ' . $aria_name; ?>"> 196 199 <?php if ( ! empty( $theme['screenshot'][0] ) ) { ?> 197 200 <div class="theme-screenshot"> … … 201 204 <div class="theme-screenshot blank"></div> 202 205 <?php } ?> 203 <span class="more-details" ><?php _e( 'Theme Details' ); ?></span>206 <span class="more-details" id="<?php echo $aria_action; ?>"><?php _e( 'Theme Details' ); ?></span> 204 207 <div class="theme-author"><?php printf( __( 'By %s' ), $theme['author'] ); ?></div> 205 208 206 209 <?php if ( $theme['active'] ) { ?> 207 <h3 class="theme-name" ><span><?php _ex( 'Active:', 'theme' ); ?></span> <?php echo $theme['name']; ?></h3>210 <h3 class="theme-name" id="<?php echo $aria_name; ?>"><span><?php _ex( 'Active:', 'theme' ); ?></span> <?php echo $theme['name']; ?></h3> 208 211 <?php } else { ?> 209 <h3 class="theme-name" ><?php echo $theme['name']; ?></h3>212 <h3 class="theme-name" id="<?php echo $aria_name; ?>"><?php echo $theme['name']; ?></h3> 210 213 <?php } ?> 211 214 … … 278 281 <div class="theme-screenshot blank"></div> 279 282 <# } #> 280 <span class="more-details" ><?php _e( 'Theme Details' ); ?></span>283 <span class="more-details" id="{{ data.id }}-action"><?php _e( 'Theme Details' ); ?></span> 281 284 <div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div> 282 285 283 286 <# if ( data.active ) { #> 284 <h3 class="theme-name" ><span><?php _ex( 'Active:', 'theme' ); ?></span> {{{ data.name }}}</h3>287 <h3 class="theme-name" id="{{ data.id }}-name"><span><?php _ex( 'Active:', 'theme' ); ?></span> {{{ data.name }}}</h3> 285 288 <# } else { #> 286 <h3 class="theme-name" >{{{ data.name }}}</h3>289 <h3 class="theme-name" id="{{ data.id }}-name">{{{ data.name }}}</h3> 287 290 <# } #> 288 291 … … 310 313 <div class="theme-wrap"> 311 314 <div class="theme-header"> 312 < div alt="<?php _e( 'Close overlay' ); ?>" class="close dashicons dashicons-no"></div>313 < div alt="<?php _e( 'Show previous theme' ); ?>" class="left dashicons dashicons-no"></div>314 < div alt="<?php _e( 'Show next theme' ); ?>" class="right dashicons dashicons-no"></div>315 <button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button> 316 <button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button> 317 <button class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close overlay' ); ?></span></button> 315 318 </div> 316 319 <div class="theme-about">
Note: See TracChangeset
for help on using the changeset viewer.