@@ 302-313 (lines=12) @@ | ||
299 | <?php endif; ?> |
|
300 | ||
301 | <?php $default_image = get_theme_support( 'custom-background', 'default-image' ); ?> |
|
302 | <?php if ( $default_image && get_background_image() != $default_image ) : ?> |
|
303 | <tr> |
|
304 | <th scope="row"><?php _e('Restore Original Image'); ?></th> |
|
305 | <td> |
|
306 | <form method="post"> |
|
307 | <?php wp_nonce_field('custom-background-reset', '_wpnonce-custom-background-reset'); ?> |
|
308 | <?php submit_button( __( 'Restore Original Image' ), '', 'reset-background', false ); ?><br/> |
|
309 | <?php _e('This will restore the original background image. You will not be able to restore any customizations.') ?> |
|
310 | </form> |
|
311 | </td> |
|
312 | </tr> |
|
313 | <?php endif; ?> |
|
314 | ||
315 | <?php if ( current_user_can( 'upload_files' ) ): ?> |
|
316 | <tr> |
@@ 632-640 (lines=9) @@ | ||
629 | </td> |
|
630 | </tr> |
|
631 | <?php endif; |
|
632 | if ( get_header_image() ) : ?> |
|
633 | <tr> |
|
634 | <th scope="row"><?php _e( 'Remove Image' ); ?></th> |
|
635 | <td> |
|
636 | <p><?php _e( 'This will remove the header image. You will not be able to restore any customizations.' ) ?></p> |
|
637 | <?php submit_button( __( 'Remove Header Image' ), '', 'removeheader', false ); ?> |
|
638 | </td> |
|
639 | </tr> |
|
640 | <?php endif; |
|
641 | ||
642 | $default_image = sprintf( get_theme_support( 'custom-header', 'default-image' ), get_template_directory_uri(), get_stylesheet_directory_uri() ); |
|
643 | if ( $default_image && get_header_image() != $default_image ) : ?> |
|
@@ 643-651 (lines=9) @@ | ||
640 | <?php endif; |
|
641 | ||
642 | $default_image = sprintf( get_theme_support( 'custom-header', 'default-image' ), get_template_directory_uri(), get_stylesheet_directory_uri() ); |
|
643 | if ( $default_image && get_header_image() != $default_image ) : ?> |
|
644 | <tr> |
|
645 | <th scope="row"><?php _e( 'Reset Image' ); ?></th> |
|
646 | <td> |
|
647 | <p><?php _e( 'This will restore the original header image. You will not be able to restore any customizations.' ) ?></p> |
|
648 | <?php submit_button( __( 'Restore Original Header Image' ), '', 'resetheader', false ); ?> |
|
649 | </td> |
|
650 | </tr> |
|
651 | <?php endif; ?> |
|
652 | </tbody> |
|
653 | </table> |
|
654 |