Changeset 47924 for trunk/src/wp-admin/theme-install.php
- Timestamp:
- 06/08/2020 06:14:19 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-install.php
r47855 r47924 73 73 ), 74 74 'installedThemes' => array_keys( $installed_themes ), 75 'activeTheme' => get_stylesheet(), 75 76 ) 76 77 ); … … 290 291 ?> 291 292 <# if ( data.activate_url ) { #> 292 <a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> 293 <# if ( ! data.active ) { #> 294 <a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> 295 <# } else { #> 296 <button class="button button-primary disabled"><?php _ex( 'Activated', 'theme' ); ?></button> 297 <# } #> 293 298 <# } #> 294 299 <# if ( data.customize_url ) { #> 295 <a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Live Preview' ); ?></a> 300 <# if ( ! data.active ) { #> 301 <a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Live Preview' ); ?></a> 302 <# } else { #> 303 <a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Customize' ); ?></a> 304 <# } #> 296 305 <# } else { #> 297 306 <button class="button preview install-theme-preview"><?php _e( 'Preview' ); ?></button> … … 344 353 <# if ( data.installed ) { #> 345 354 <# if ( data.compatible_wp && data.compatible_php ) { #> 346 <a class="button button-primary activate" href="{{ data.activate_url }}"><?php _e( 'Activate' ); ?></a> 355 <?php 356 /* translators: %s: Theme name. */ 357 $aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' ); 358 ?> 359 <# if ( ! data.active ) { #> 360 <a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> 361 <# } else { #> 362 <button class="button button-primary disabled"><?php _ex( 'Activated', 'theme' ); ?></button> 363 <# } #> 347 364 <# } else { #> 348 365 <a class="button button-primary disabled" ><?php _ex( 'Cannot Activate', 'theme' ); ?></a>
Note: See TracChangeset
for help on using the changeset viewer.