Ticket #26602: 26602.patch
File 26602.patch, 2.2 KB (added by , 11 years ago) |
---|
-
wp-admin/themes.php
192 192 */ 193 193 194 194 foreach ( $themes as $theme ) : ?> 195 <div class="theme<?php if ( $theme['active'] ) echo ' active'; ?> ">195 <div class="theme<?php if ( $theme['active'] ) echo ' active'; ?> tabindex="0" aria-describedby="<?php echo $theme['id']; ?>-action <?php echo $theme['id']; ?>-name"> 196 196 <?php if ( ! empty( $theme['screenshot'][0] ) ) { ?> 197 197 <div class="theme-screenshot"> 198 198 <img src="<?php echo $theme['screenshot'][0]; ?>" alt="" /> … … 204 204 <div class="theme-author"><?php printf( __( 'By %s' ), $theme['author'] ); ?></div> 205 205 206 206 <?php if ( $theme['active'] ) { ?> 207 <h3 class="theme-name" ><span><?php _ex( 'Active:', 'theme' ); ?></span> <?php echo $theme['name']; ?></h3>207 <h3 class="theme-name" id="<?php echo $theme['id']; ?>-name"><span><?php _ex( 'Active:', 'theme' ); ?></span> <?php echo $theme['name']; ?></h3> 208 208 <?php } else { ?> 209 209 <h3 class="theme-name"><?php echo $theme['name']; ?></h3> 210 210 <?php } ?> … … 213 213 214 214 <?php if ( $theme['active'] ) { ?> 215 215 <?php if ( $theme['actions']['customize'] ) { ?> 216 <a class="button button-primary customize load-customize hide-if-no-customize" href="<?php echo $theme['actions']['customize']; ?>" ><?php _e( 'Customize' ); ?></a>216 <a class="button button-primary customize load-customize hide-if-no-customize" href="<?php echo $theme['actions']['customize']; ?>" id="<?php echo $theme['id']; ?>-action"><?php _e( 'Customize' ); ?></a> 217 217 <?php } ?> 218 218 <?php } else { ?> 219 <a class="button button-primary activate" href="<?php echo $theme['actions']['activate']; ?>" ><?php _e( 'Activate' ); ?></a>219 <a class="button button-primary activate" href="<?php echo $theme['actions']['activate']; ?>" id="<?php echo $theme['id']; ?>"><?php _e( 'Activate' ); ?></a> 220 220 <a class="button button-secondary load-customize hide-if-no-customize" href="<?php echo $theme['actions']['customize']; ?>"><?php _e( 'Live Preview' ); ?></a> 221 221 <a class="button button-secondary hide-if-customize" href="<?php echo $theme['actions']['preview']; ?>"><?php _e( 'Preview' ); ?></a> 222 222 <?php } ?>