PluginProbe
Elementor Website Builder – more than just a page builder / 3.1.0-beta1
Elementor Website Builder – more than just a page builder v3.1.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
← All changes | core/kits/views/trash-kit-confirmation.php +17 -46 4.2.0-dev2 → 3.1.0-beta1 View file →
@@ -12,53 +12,24 @@
12 12 [ 'force_delete_kit' => '1' ],
13 13 get_delete_post_link( $post_id, '', $is_permanently_delete )
14 14 );
15 15 ?>
16 -<h4>
17 - <?php echo esc_html__( 'Are you sure you want to delete your Site Settings?', 'elementor' ); ?>
18 -</h4>
19 16
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>
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 +?>
23 24
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' ); ?>
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 + ?>
31 34 </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>
35 +<a class="button" href="javascript:history.back()"> <?php echo __( 'Cancel', 'elementor' ); ?> </a>