Changeset 56639 for trunk/src/wp-admin/themes.php
- Timestamp:
- 09/20/2023 09:01:02 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/themes.php
r56600 r56639 1222 1222 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 1223 1223 ?> 1224 <# if ( ! data.blockTheme ) { #> 1225 <a href="{{{ data.actions.customize }}}" class="button button-primary load-customize hide-if-no-customize"><?php _e( 'Live Preview' ); ?></a> 1226 <# } #> 1224 1227 <# if ( data.actions.activate ) { #> 1225 1228 <a href="{{{ data.actions.activate }}}" class="button activate" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> 1226 1229 <# } #> 1227 <# if ( ! data.blockTheme ) { #>1228 <a href="{{{ data.actions.customize }}}" class="button button-primary load-customize hide-if-no-customize"><?php _e( 'Live Preview' ); ?></a>1229 <# } #>1230 1230 <# } else { #> 1231 1231 <?php … … 1233 1233 $aria_label = sprintf( _x( 'Cannot Activate %s', 'theme' ), '{{ data.name }}' ); 1234 1234 ?> 1235 <# if ( ! data.blockTheme ) { #> 1236 <a class="button button-primary hide-if-no-customize disabled"><?php _e( 'Live Preview' ); ?></a> 1237 <# } #> 1235 1238 <# if ( data.actions.activate ) { #> 1236 1239 <a class="button disabled" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Activate', 'theme' ); ?></a> 1237 <# } #>1238 <# if ( ! data.blockTheme ) { #>1239 <a class="button button-primary hide-if-no-customize disabled"><?php _e( 'Live Preview' ); ?></a>1240 1240 <# } #> 1241 1241 <# } #>
Note: See TracChangeset
for help on using the changeset viewer.