trash-kit-confirmation.php (1647B)
1 <?php 2 if ( ! defined( 'ABSPATH' ) ) { 3 exit; // Exit if accessed directly. 4 } 5 6 /** 7 * @var int $post_id 8 * @var boolean $is_permanently_delete 9 */ 10 11 $config_url = add_query_arg( 12 [ 'force_delete_kit' => '1' ], 13 get_delete_post_link( $post_id, '', $is_permanently_delete ) 14 ); 15 ?> 16 <h4> 17 <?php echo esc_html__( 'Are you sure you want to delete your Site Settings?', 'elementor' ); ?> 18 </h4> 19 20 <p> 21 <?php echo esc_html__( 'By removing this template you will delete your entire Site Settings. If this template is deleted, all associated settings: Global Colors & Fonts, Theme Style, Layout, Background, and Lightbox settings will be removed from your existing site. This action can not be undone.', 'elementor' ); ?> 22 </p> 23 24 <br/> 25 26 <a class="btn btn-danger" href="<?php 27 // PHPCS - the link is generated by WordPress. 28 echo $config_url; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 29 ?>"> 30 <?php echo esc_html__( 'Delete', 'elementor' ); ?> 31 </a> 32 <a class="btn btn-primary" href="javascript:history.back()"> 33 <?php echo esc_html__( 'Keep my settings', 'elementor' ); ?> 34 </a> 35 36 <style> 37 /* In WordPress "die" screen there is very basic style, so the current css is required for basic button styles. */ 38 .btn { 39 text-decoration: none; 40 padding: 9px 20px; 41 font-weight: 500; 42 border-radius: 3px; 43 } 44 45 .btn-danger { 46 display: inline-block; 47 color: #a00; 48 } 49 50 .btn-danger:hover, .btn-danger:focus, .btn-danger:active { 51 color: #dc3232; 52 } 53 54 .btn-primary { 55 color: #fff; 56 background-color: #007cba; 57 margin: 0 10px; 58 } 59 60 .btn-primary:hover, .btn-primary:focus, .btn-primary:active { 61 background-color: #0071a1; 62 color: #fff; 63 } 64 </style>