PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.0-dev1
Elementor Website Builder – more than just a page builder v3.32.0-dev1
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 4.1.0-beta1 4.1.0-dev1 All 452 releases
elementor / modules / history / views / revisions-panel-template.php

revisions-panel-template.php in Elementor Website Builder – more than just a page builder 3.32.0-dev1, at modules/history/views/revisions-panel-template.php

75 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly.
4 }
5
6 ?>
7 <script type="text/template" id="tmpl-elementor-panel-revisions">
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>
16 </div>
17 </div>
18
19 <div class="elementor-panel-box">
20 <div id="elementor-revisions-list" class="elementor-panel-box-content"></div>
21 </div>
22 </script>
23
24 <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>
42 </script>
43
44 <script type="text/template" id="tmpl-elementor-panel-revisions-loading">
45 <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i>
46 </script>
47
48 <script type="text/template" id="tmpl-elementor-panel-revisions-revision-item">
49 <button class="elementor-revision-item__wrapper {{ type }}">
50 <div class="elementor-revision-item__gravatar">{{{ gravatar }}}</div>
51 <div class="elementor-revision-item__details">
52 <div class="elementor-revision-date" title="{{{ new Date( timestamp * 1000 ) }}}">{{{ date }}}</div>
53 <div class="elementor-revision-meta">
54 <span>{{{ typeLabel }}}</span>
55 <?php echo esc_html__( 'By', 'elementor' ); ?> {{{ author }}}
56 <span>(#{{{ id }}})</span>&nbsp;
57 </div>
58 </div>
59 <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 <# 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>
65 <# } #>
66
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
72 </div>
73 </button>
74 </script>
75