Changeset 31954 for trunk/src/wp-includes/class-wp-customize-control.php
- Timestamp:
- 04/01/2015 12:35:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-control.php
r31950 r31954 1201 1201 */ 1202 1202 public function content_template() { 1203 ?> 1204 <div class="theme<# if ( data.theme.active ) { #> active<# } #>" tabindex="0" aria-describedby="{{ data.theme.id }}-action {{ data.theme.id }}-name"> 1203 $preview_url = site_url( add_query_arg( 'theme', '{{ data.theme.id }}' ) ); 1204 ?> 1205 <div class="theme<# if ( data.theme.active ) { #> active<# } #>"<# if ( ! data.theme.active ) { #> tabindex="0"<# } #> data-preview-url="<?php echo esc_attr( $preview_url ); ?>" aria-describedby="{{ data.theme.id }}-action {{ data.theme.id }}-name"> 1205 1206 <# if ( data.theme.screenshot[0] ) { #> 1206 1207 <div class="theme-screenshot"> … … 1210 1211 <div class="theme-screenshot blank"></div> 1211 1212 <# } #> 1212 <span class="more-details" id="{{ data.theme.id }}-action"><?php _e( ' Theme Details' ); ?></span>1213 <span class="more-details" id="{{ data.theme.id }}-action"><?php _e( 'Live Preview' ); ?></span> 1213 1214 <div class="theme-author"><?php printf( __( 'By %s' ), '{{ data.theme.author }}' ); ?></div> 1214 1215 … … 1226 1227 <# if ( ! data.theme.active ) { #> 1227 1228 <div class="theme-actions"> 1228 < a class="button" href="<?php echo add_query_arg( 'theme', '{{ data.theme.id }}' ); ?>" target="_top"><?php _e( 'Live Preview' ); ?></a>1229 <button type="button" class="button theme-details"><?php _e( 'Theme Details' ); ?></button> 1229 1230 </div> 1230 1231 <# } #>
Note: See TracChangeset
for help on using the changeset viewer.