PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.13
Elementor Website Builder – more than just a page builder v3.0.13
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 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | modules/history/views/revisions-panel-template.php +26 -37 4.3.1 → 3.0.13 View file →
@@ -5,41 +5,36 @@
5 5
6 6 ?>
7 7 <script type="text/template" id="tmpl-elementor-panel-revisions">
8 8 <div class="elementor-panel-box">
9 - <div class="elementor-panel-revisions-buttons">
10 - <button class="elementor-button e-btn-txt e-revision-discard" disabled>
11 - <?php echo esc_html__( 'Discard', 'elementor' ); ?>
12 - </button>
13 - <button class="elementor-button e-revision-save" disabled>
14 - <?php echo esc_html__( 'Apply', 'elementor' ); ?>
15 - </button>
9 + <div class="elementor-panel-scheme-buttons">
10 + <div class="elementor-panel-scheme-button-wrapper elementor-panel-scheme-discard">
11 + <button class="elementor-button" disabled>
12 + <i class="eicon-close" aria-hidden="true"></i>
13 + <?php echo __( 'Discard', 'elementor' ); ?>
14 + </button>
15 + </div>
16 + <div class="elementor-panel-scheme-button-wrapper elementor-panel-scheme-save">
17 + <button class="elementor-button elementor-button-success" disabled>
18 + <?php echo __( 'Apply', 'elementor' ); ?>
19 + </button>
20 + </div>
16 21 </div>
17 22 </div>
18 23
19 24 <div class="elementor-panel-box">
25 + <div class="elementor-panel-heading">
26 + <div class="elementor-panel-heading-title"><?php echo __( 'Revisions', 'elementor' ); ?></div>
27 + </div>
20 28 <div id="elementor-revisions-list" class="elementor-panel-box-content"></div>
21 29 </div>
22 30 </script>
23 31
24 32 <script type="text/template" id="tmpl-elementor-panel-revisions-no-revisions">
25 - <#
26 - var no_revisions_1 = '<?php echo esc_html__( 'Revision history lets you save your previous versions of your work, and restore them any time.', 'elementor' ); ?>',
27 - no_revisions_2 = '<?php echo esc_html__( 'Start designing your page and you will be able to see the entire revision history here.', 'elementor' ); ?>',
28 - revisions_disabled_1 = '<?php echo esc_html__( 'It looks like the post revision feature is unavailable in your website.', 'elementor' ); ?>',
29 - revisions_disabled_2 = '<?php printf(
30 - /* translators: %1$s Link open tag, %2$s: Link close tag. */
31 - esc_html__( 'Learn more about %1$sWordPress revisions%2$s', 'elementor' ),
32 - '<a target="_blank" href="https://go.elementor.com/wordpress-revisions/">',
33 - '</a>'
34 - ); ?>';
35 - #>
36 - <img class="elementor-nerd-box-icon" src="<?php
37 - // PHPCS - Safe Elementor SVG
38 - echo ELEMENTOR_ASSETS_URL . 'images/information.svg' // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" loading="lazy" alt="<?php echo esc_attr__( 'Elementor', 'elementor' ); ?>" />
39 - <div class="elementor-nerd-box-title"><?php echo esc_html__( 'No Revisions Saved Yet', 'elementor' ); ?></div>
40 - <div class="elementor-nerd-box-message">{{{ elementor.config.document.revisions.enabled ? no_revisions_1 : revisions_disabled_1 }}}</div>
41 - <div class="elementor-nerd-box-message">{{{ elementor.config.document.revisions.enabled ? no_revisions_2 : revisions_disabled_2 }}}</div>
33 + <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/information.svg'; ?>" />
34 + <div class="elementor-nerd-box-title"><?php echo __( 'No Revisions Saved Yet', 'elementor' ); ?></div>
35 + <div class="elementor-nerd-box-message">{{{ elementor.translate( elementor.config.document.revisions.enabled ? 'no_revisions_1' : 'revisions_disabled_1' ) }}}</div>
36 + <div class="elementor-nerd-box-message">{{{ elementor.translate( elementor.config.document.revisions.enabled ? 'no_revisions_2' : 'revisions_disabled_2' ) }}}</div>
42 37 </script>
43 38
44 39 <script type="text/template" id="tmpl-elementor-panel-revisions-loading">
45 40 <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i>
@@ -45,30 +40,24 @@
45 40 <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i>
46 41 </script>
47 42
48 43 <script type="text/template" id="tmpl-elementor-panel-revisions-revision-item">
49 - <button class="elementor-revision-item__wrapper {{ type }}">
44 + <div class="elementor-revision-item__wrapper {{ type }}">
50 45 <div class="elementor-revision-item__gravatar">{{{ gravatar }}}</div>
51 46 <div class="elementor-revision-item__details">
52 47 <div class="elementor-revision-date" title="{{{ new Date( timestamp * 1000 ) }}}">{{{ date }}}</div>
53 48 <div class="elementor-revision-meta">
54 - <span>{{{ typeLabel }}}</span>
55 - <?php echo esc_html__( 'By', 'elementor' ); ?> {{{ author }}}
49 + <span>{{{ elementor.translate( type ) }}}</span>
50 + <?php echo __( 'By', 'elementor' ); ?> {{{ author }}}
56 51 <span>(#{{{ id }}})</span>&nbsp;
57 52 </div>
58 53 </div>
59 54 <div class="elementor-revision-item__tools">
60 - <i class="elementor-revision-item__tools-spinner eicon-loading eicon-animation-spin" aria-hidden="true"></i>
61 -
62 55 <# if ( 'current' === type ) { #>
63 - <i class="elementor-revision-item__tools-current eicon-check" aria-hidden="true"></i>
64 - <span class="elementor-screen-only"><?php echo esc_html__( 'Published', 'elementor' ); ?></span>
56 + <i class="elementor-revision-item__tools-current eicon-star" aria-hidden="true"></i>
57 + <span class="elementor-screen-only"><?php echo __( 'Current', 'elementor' ); ?></span>
65 58 <# } #>
66 59
67 -<!-- <# if ( 'revision' === type ) { #>-->
68 -<!-- <i class="eicon-undo" aria-hidden="true"></i>-->
69 -<!-- <span class="elementor-screen-only">--><?php // echo esc_html__( 'Restore', 'elementor' ); ?><!--</span>-->
70 -<!-- <# } #>-->
71 -
60 + <i class="elementor-revision-item__tools-spinner eicon-loading eicon-animation-spin" aria-hidden="true"></i>
72 61 </div>
73 - </button>
62 + </div>
74 63 </script>