Changeset 62516 for trunk/src/wp-admin/theme-install.php
- Timestamp:
- 06/17/2026 10:56:19 AM (2 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/theme-install.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-install.php
r62353 r62516 409 409 <# if ( data.activate_url ) { #> 410 410 <# if ( ! data.active ) { #> 411 <a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>411 <a class="button button-primary button-compact activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> 412 412 <# } else { #> 413 <button class="button button-primary disabled"><?php _ex( 'Activated', 'theme' ); ?></button>413 <button class="button button-primary button-compact disabled"><?php _ex( 'Activated', 'theme' ); ?></button> 414 414 <# } #> 415 415 <# } #> … … 417 417 <# if ( ! data.active ) { #> 418 418 <# if ( ! data.block_theme ) { #> 419 <a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Live Preview' ); ?></a>419 <a class="button button-compact load-customize" href="{{ data.customize_url }}"><?php _e( 'Live Preview' ); ?></a> 420 420 <# } #> 421 421 <# } else { #> 422 <a class="button load-customize" href="{{ data.customize_url }}"><?php _e( 'Customize' ); ?></a>422 <a class="button button-compact load-customize" href="{{ data.customize_url }}"><?php _e( 'Customize' ); ?></a> 423 423 <# } #> 424 424 <# } else { #> 425 <button class="button preview install-theme-preview"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>425 <button class="button button-compact preview install-theme-preview"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button> 426 426 <# } #> 427 427 <# } else { #> … … 431 431 ?> 432 432 <# if ( data.activate_url ) { #> 433 <a class="button button-primary disabled" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Activate', 'theme' ); ?></a>433 <a class="button button-primary button-compact disabled" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Activate', 'theme' ); ?></a> 434 434 <# } #> 435 435 <# if ( data.customize_url ) { #> 436 <a class="button disabled"><?php _e( 'Live Preview' ); ?></a>436 <a class="button button-compact disabled"><?php _e( 'Live Preview' ); ?></a> 437 437 <# } else { #> 438 <button class="button disabled"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>438 <button class="button button-compact disabled"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button> 439 439 <# } #> 440 440 <# } #> … … 445 445 $aria_label = sprintf( _x( 'Install %s', 'theme' ), '{{ data.name }}' ); 446 446 ?> 447 <a class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}" href="{{ data.install_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Install' ); ?></a>448 <button class="button preview install-theme-preview"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>447 <a class="button button-primary button-compact theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}" href="{{ data.install_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Install' ); ?></a> 448 <button class="button button-compact preview install-theme-preview"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button> 449 449 <# } else { #> 450 450 <?php … … 452 452 $aria_label = sprintf( _x( 'Cannot Install %s', 'theme' ), '{{ data.name }}' ); 453 453 ?> 454 <a class="button button-primary disabled" data-name="{{ data.name }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Install', 'theme' ); ?></a>455 <button class="button disabled"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button>454 <a class="button button-primary button-compact disabled" data-name="{{ data.name }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Install', 'theme' ); ?></a> 455 <button class="button button-compact disabled"><?php echo esc_html_x( 'Preview', 'verb' ); ?></button> 456 456 <# } #> 457 457 <# } #> … … 488 488 ?> 489 489 <# if ( ! data.active ) { #> 490 <a class="button button-primary button-compactactivate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a>490 <a class="button button-primary activate" href="{{ data.activate_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Activate' ); ?></a> 491 491 <# } else { #> 492 <button class="button button-primary button-compactdisabled"><?php _ex( 'Activated', 'theme' ); ?></button>492 <button class="button button-primary disabled"><?php _ex( 'Activated', 'theme' ); ?></button> 493 493 <# } #> 494 494 <# } else { #> 495 <a class="button button-primary button-compactdisabled" ><?php _ex( 'Cannot Activate', 'theme' ); ?></a>495 <a class="button button-primary disabled" ><?php _ex( 'Cannot Activate', 'theme' ); ?></a> 496 496 <# } #> 497 497 <# } else { #> 498 498 <# if ( data.compatible_wp && data.compatible_php ) { #> 499 <a href="{{ data.install_url }}" class="button button-primary button-compacttheme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></a>499 <a href="{{ data.install_url }}" class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}"><?php _e( 'Install' ); ?></a> 500 500 <# } else { #> 501 <a class="button button-primary button-compactdisabled" ><?php _ex( 'Cannot Install', 'theme' ); ?></a>501 <a class="button button-primary disabled" ><?php _ex( 'Cannot Install', 'theme' ); ?></a> 502 502 <# } #> 503 503 <# } #>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)