← All changes
|
modules/history/views/revisions-panel-template.php
+26
-41
4.3.0
→
3.0.4
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,20 @@ | ||
| 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 | - <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> | |
| 57 | - </div> | |
| 47 | + <div class="elementor-revision-date">{{{ date }}}</div> | |
| 48 | + <div class="elementor-revision-meta"><span>{{{ elementor.translate( type ) }}}</span> <?php echo __( 'By', 'elementor' ); ?> {{{ author }}}</div> | |
| 58 | 49 | </div> |
| 59 | 50 | <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 | 51 | <# 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> | |
| 52 | + <i class="elementor-revision-item__tools-current eicon-star" aria-hidden="true"></i> | |
| 53 | + <span class="elementor-screen-only"><?php echo __( 'Current', 'elementor' ); ?></span> | |
| 65 | 54 | <# } #> |
| 66 | 55 | |
| 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 | - | |
| 56 | + <i class="elementor-revision-item__tools-spinner eicon-loading eicon-animation-spin" aria-hidden="true"></i> | |
| 72 | 57 | </div> |
| 73 | - </button> | |
| 58 | + </div> | |
| 74 | 59 | </script> |