| 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 |
|
| 17 |
<?php |
| 18 |
if ( $is_permanently_delete ) { |
| 19 |
echo __( 'If you delete this template, all associated global settings, typography and colors will be deleted', 'elementor' ); |
| 20 |
} else { |
| 21 |
echo __( 'If you move this template to trash, all associated global settings, typography and colors will be deleted', 'elementor' ); |
| 22 |
} |
| 23 |
?> |
| 24 |
|
| 25 |
<br><br> |
| 26 |
<a class="button" href="<?php echo $config_url; ?>"> |
| 27 |
<?php |
| 28 |
if ( $is_permanently_delete ) { |
| 29 |
echo __( 'Confirm delete', 'elementor' ); |
| 30 |
} else { |
| 31 |
echo __( 'Confirm trash', 'elementor' ); |
| 32 |
} |
| 33 |
?> |
| 34 |
</a> |
| 35 |
<a class="button" href="javascript:history.back()"> <?php echo __( 'Cancel', 'elementor' ); ?> </a> |
| 36 |
|