Changeset 44574 for trunk/src/wp-admin/custom-header.php
- Timestamp:
- 01/12/2019 06:40:16 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/custom-header.php
r43571 r44574 643 643 <?php 644 644 endif; 645 if ( ! empty( $this->default_headers ) ) :646 ?>645 if ( ! empty( $this->default_headers ) ) : 646 ?> 647 647 <tr> 648 648 <th scope="row"><?php _e( 'Default Images' ); ?></th> 649 649 <td> 650 <?php if ( current_theme_supports( 'custom-header', 'uploads' ) ) : ?>650 <?php if ( current_theme_supports( 'custom-header', 'uploads' ) ) : ?> 651 651 <p><?php _e( 'If you don‘t want to upload your own image, you can use one of these cool headers, or show a random one.' ); ?></p> 652 652 <?php else : ?> 653 653 <p><?php _e( 'You can use one of these cool headers or show a random one on each page.' ); ?></p> 654 654 <?php endif; ?> 655 <?php656 $this->show_header_selector( 'default' );657 ?>655 <?php 656 $this->show_header_selector( 'default' ); 657 ?> 658 658 </td> 659 659 </tr> 660 <?php660 <?php 661 661 endif; 662 if ( get_header_image() ) :663 ?>662 if ( get_header_image() ) : 663 ?> 664 664 <tr> 665 665 <th scope="row"><?php _e( 'Remove Image' ); ?></th> 666 666 <td> 667 667 <p><?php _e( 'This will remove the header image. You will not be able to restore any customizations.' ); ?></p> 668 <?php submit_button( __( 'Remove Header Image' ), '', 'removeheader', false ); ?>668 <?php submit_button( __( 'Remove Header Image' ), '', 'removeheader', false ); ?> 669 669 </td> 670 670 </tr> 671 <?php671 <?php 672 672 endif; 673 673 674 $default_image = sprintf( get_theme_support( 'custom-header', 'default-image' ), get_template_directory_uri(), get_stylesheet_directory_uri() );675 if ( $default_image && get_header_image() != $default_image ) :676 ?>674 $default_image = sprintf( get_theme_support( 'custom-header', 'default-image' ), get_template_directory_uri(), get_stylesheet_directory_uri() ); 675 if ( $default_image && get_header_image() != $default_image ) : 676 ?> 677 677 <tr> 678 678 <th scope="row"><?php _e( 'Reset Image' ); ?></th> 679 679 <td> 680 680 <p><?php _e( 'This will restore the original header image. You will not be able to restore any customizations.' ); ?></p> 681 <?php submit_button( __( 'Restore Original Header Image' ), '', 'resetheader', false ); ?>681 <?php submit_button( __( 'Restore Original Header Image' ), '', 'resetheader', false ); ?> 682 682 </td> 683 683 </tr> … … 742 742 743 743 wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); 744 ?>744 ?> 745 745 746 746 <?php submit_button( null, 'primary', 'save-header-options' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.