| @@ -1,30 +1,25 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor; |
| 3 | 3 | |
| 4 | -use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager; | |
| 5 | - | |
| 6 | 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | 5 | exit; // Exit if accessed directly. |
| 8 | 6 | } |
| 9 | 7 | |
| 10 | -$show_editing_panel_sticky_promotion = ! Utils::has_pro(); | |
| 11 | -$editing_panel_sticky_promotion = $show_editing_panel_sticky_promotion ? Filtered_Promotions_Manager::get_editor_panel_sticky_promotion() : []; | |
| 8 | +$document = Plugin::$instance->documents->get( Plugin::$instance->editor->get_post_id() ); | |
| 12 | 9 | ?> |
| 13 | 10 | <script type="text/template" id="tmpl-elementor-panel"> |
| 11 | + <div id="elementor-mode-switcher"></div> | |
| 14 | 12 | <div id="elementor-panel-state-loading"> |
| 15 | 13 | <i class="eicon-loading eicon-animation-spin"></i> |
| 16 | 14 | </div> |
| 17 | 15 | <header id="elementor-panel-header-wrapper"></header> |
| 18 | 16 | <main id="elementor-panel-content-wrapper"></main> |
| 19 | - <footer id="elementor-panel-footer" class="elementor-panel-footer-back-compat-wrapper" hidden></footer> | |
| 20 | - <div id="elementor-mode-switcher"></div> | |
| 17 | + <footer id="elementor-panel-footer"> | |
| 18 | + <div class="elementor-panel-container"></div> | |
| 19 | + </footer> | |
| 21 | 20 | </script> |
| 22 | 21 | |
| 23 | -<script type="text/template" id="tmpl-elementor-panel-footer-back-compat"> | |
| 24 | - <button type="button" class="elementor-panel-footer-back-compat-preview" tabindex="-1" hidden></button> | |
| 25 | -</script> | |
| 26 | - | |
| 27 | 22 | <script type="text/template" id="tmpl-elementor-panel-menu"> |
| 28 | 23 | <div id="elementor-panel-page-menu-content"></div> |
| 29 | 24 | <# if ( elementor.config.document.panel.needHelpUrl ) { #> |
| 30 | 25 | <div id="elementor-panel__editor__help"> |
| @@ -29,9 +24,9 @@ | ||
| 29 | 24 | <# if ( elementor.config.document.panel.needHelpUrl ) { #> |
| 30 | 25 | <div id="elementor-panel__editor__help"> |
| 31 | 26 | <a id="elementor-panel__editor__help__link" href="{{{ elementor.config.document.panel.needHelpUrl }}}" target="_blank"> |
| 32 | 27 | <?php echo esc_html__( 'Need Help', 'elementor' ); ?> |
| 33 | - <i class="eicon-help-o" aria-hidden="true"></i> | |
| 28 | + <i class="eicon-help-o"></i> | |
| 34 | 29 | </a> |
| 35 | 30 | </div> |
| 36 | 31 | <# } #> |
| 37 | 32 | </script> |
| @@ -53,38 +48,88 @@ | ||
| 53 | 48 | <a href="{{ link }}" target="{{ target }}"><div class="elementor-panel-menu-item-title">{{{ title }}}</div></a> |
| 54 | 49 | <# } #> |
| 55 | 50 | </script> |
| 56 | 51 | |
| 57 | -<script type="text/template" id="tmpl-elementor-exit-dialog"> | |
| 58 | - <div><?php echo esc_html__( 'Now you can choose where you want to go on the site from the following options', 'elementor' ); ?></div> | |
| 59 | - <div> | |
| 60 | - <?php printf( | |
| 61 | - /* translators: 1: Opening HTML <a> tag, 2: closing HTML <a> tag. */ | |
| 62 | - esc_html__( 'Any time you can change the settings in %1$sUser Preferences%2$s', 'elementor' ), | |
| 63 | - '<a id="user-preferences">', | |
| 64 | - '</a>' | |
| 65 | - ); ?> | |
| 52 | +<script type="text/template" id="tmpl-elementor-panel-header"> | |
| 53 | + <div id="elementor-panel-header-menu-button" class="elementor-header-button"> | |
| 54 | + <i class="elementor-icon eicon-menu-bar tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Menu', 'elementor' ); ?>"></i> | |
| 55 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Menu', 'elementor' ); ?></span> | |
| 66 | 56 | </div> |
| 67 | - <select id="exit-to-preferences"></select> <!-- Adding options by JS --> | |
| 57 | + <div id="elementor-panel-header-title"></div> | |
| 58 | + <div id="elementor-panel-header-add-button" class="elementor-header-button"> | |
| 59 | + <i class="elementor-icon eicon-apps tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Widgets Panel', 'elementor' ); ?>"></i> | |
| 60 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Widgets Panel', 'elementor' ); ?></span> | |
| 61 | + </div> | |
| 68 | 62 | </script> |
| 69 | 63 | |
| 70 | -<script type="text/template" id="tmpl-elementor-panel-header"> | |
| 71 | - <button id="elementor-panel-header-menu-button" class="elementor-header-button" aria-label="<?php echo esc_attr__( 'Menu', 'elementor' ); ?>"> | |
| 72 | - <i class="elementor-icon eicon-menu-bar tooltip-target" aria-hidden="true" data-tooltip="<?php echo esc_attr__( 'Menu', 'elementor' ); ?>"></i> | |
| 73 | - </button> | |
| 74 | - <h2 id="elementor-panel-header-title"></h2> | |
| 75 | - <# const extraClass = $e.components.get( 'document/elements' ).utils.allowAddingWidgets() ? '' : 'elementor-visibility-hidden'; #> | |
| 76 | - <button id="elementor-panel-header-add-button" class="elementor-header-button {{{ extraClass }}}" aria-label="<?php echo esc_attr__( 'Widgets Panel', 'elementor' ); ?>"> | |
| 77 | - <i class="elementor-icon eicon-apps tooltip-target" aria-hidden="true" data-tooltip="<?php echo esc_attr__( 'Widgets Panel', 'elementor' ); ?>"></i> | |
| 78 | - </button> | |
| 64 | +<script type="text/template" id="tmpl-elementor-panel-footer-content"> | |
| 65 | + <div id="elementor-panel-footer-settings" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php esc_attr_e( 'Settings', 'elementor' ); ?>"> | |
| 66 | + <i class="eicon-cog" aria-hidden="true"></i> | |
| 67 | + <span class="elementor-screen-only"><?php printf( esc_html__( '%s Settings', 'elementor' ), esc_html( $document::get_title() ) ); ?></span> | |
| 68 | + </div> | |
| 69 | + <div id="elementor-panel-footer-navigator" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php esc_attr_e( 'Navigator', 'elementor' ); ?>"> | |
| 70 | + <i class="eicon-navigator" aria-hidden="true"></i> | |
| 71 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Navigator', 'elementor' ); ?></span> | |
| 72 | + </div> | |
| 73 | + <div id="elementor-panel-footer-history" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php esc_attr_e( 'History', 'elementor' ); ?>"> | |
| 74 | + <i class="eicon-history" aria-hidden="true"></i> | |
| 75 | + <span class="elementor-screen-only"><?php echo esc_html__( 'History', 'elementor' ); ?></span> | |
| 76 | + </div> | |
| 77 | + <div id="elementor-panel-footer-responsive" class="elementor-panel-footer-tool elementor-toggle-state"> | |
| 78 | + <i class="eicon-device-responsive tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Responsive Mode', 'elementor' ); ?>"></i> | |
| 79 | + <span class="elementor-screen-only"> | |
| 80 | + <?php echo esc_html__( 'Responsive Mode', 'elementor' ); ?> | |
| 81 | + </span> | |
| 82 | + </div> | |
| 83 | + <div id="elementor-panel-footer-saver-preview" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php esc_attr_e( 'Preview Changes', 'elementor' ); ?>"> | |
| 84 | + <span id="elementor-panel-footer-saver-preview-label"> | |
| 85 | + <i class="eicon-preview-medium" aria-hidden="true"></i> | |
| 86 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Preview Changes', 'elementor' ); ?></span> | |
| 87 | + </span> | |
| 88 | + </div> | |
| 89 | + <div id="elementor-panel-footer-saver-publish" class="elementor-panel-footer-tool"> | |
| 90 | + <button id="elementor-panel-saver-button-publish" class="elementor-button elementor-button-success elementor-disabled"> | |
| 91 | + <span class="elementor-state-icon"> | |
| 92 | + <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i> | |
| 93 | + </span> | |
| 94 | + <span id="elementor-panel-saver-button-publish-label"> | |
| 95 | + <?php echo esc_html__( 'Publish', 'elementor' ); ?> | |
| 96 | + </span> | |
| 97 | + </button> | |
| 98 | + </div> | |
| 99 | + <div id="elementor-panel-footer-saver-options" class="elementor-panel-footer-tool elementor-toggle-state"> | |
| 100 | + <button id="elementor-panel-saver-button-save-options" class="elementor-button elementor-button-success tooltip-target elementor-disabled" data-tooltip="<?php esc_attr_e( 'Save Options', 'elementor' ); ?>" data-tooltip-offset="7"> | |
| 101 | + <i class="eicon-caret-up" aria-hidden="true"></i> | |
| 102 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Save Options', 'elementor' ); ?></span> | |
| 103 | + </button> | |
| 104 | + <div class="elementor-panel-footer-sub-menu-wrapper"> | |
| 105 | + <p class="elementor-last-edited-wrapper"> | |
| 106 | + <span class="elementor-state-icon"> | |
| 107 | + <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i> | |
| 108 | + </span> | |
| 109 | + <span class="elementor-last-edited"> | |
| 110 | + </span> | |
| 111 | + </p> | |
| 112 | + <div class="elementor-panel-footer-sub-menu"> | |
| 113 | + <div id="elementor-panel-footer-sub-menu-item-save-draft" class="elementor-panel-footer-sub-menu-item elementor-disabled"> | |
| 114 | + <i class="elementor-icon eicon-save" aria-hidden="true"></i> | |
| 115 | + <span class="elementor-title"><?php echo esc_html__( 'Save Draft', 'elementor' ); ?></span> | |
| 116 | + </div> | |
| 117 | + <div id="elementor-panel-footer-sub-menu-item-save-template" class="elementor-panel-footer-sub-menu-item"> | |
| 118 | + <i class="elementor-icon eicon-folder" aria-hidden="true"></i> | |
| 119 | + <span class="elementor-title"><?php echo esc_html__( 'Save as Template', 'elementor' ); ?></span> | |
| 120 | + </div> | |
| 121 | + </div> | |
| 122 | + </div> | |
| 123 | + </div> | |
| 79 | 124 | </script> |
| 80 | 125 | |
| 81 | 126 | <script type="text/template" id="tmpl-elementor-mode-switcher-content"> |
| 82 | - <label for="elementor-mode-switcher-preview-input" id="elementor-mode-switcher-preview" title="<?php echo esc_attr__( 'Hide Panel', 'elementor' ); ?>"> | |
| 83 | - <i class="eicon eicon-angle-left" aria-hidden="true" tabindex="0"></i> | |
| 127 | + <input id="elementor-mode-switcher-preview-input" type="checkbox"> | |
| 128 | + <label for="elementor-mode-switcher-preview-input" id="elementor-mode-switcher-preview"> | |
| 129 | + <i class="eicon" aria-hidden="true" title="<?php esc_attr_e( 'Hide Panel', 'elementor' ); ?>"></i> | |
| 84 | 130 | <span class="elementor-screen-only"><?php echo esc_html__( 'Hide Panel', 'elementor' ); ?></span> |
| 85 | 131 | </label> |
| 86 | - <input id="elementor-mode-switcher-preview-input" type="checkbox"> | |
| 87 | 132 | </script> |
| 88 | 133 | |
| 89 | 134 | <script type="text/template" id="tmpl-editor-content"> |
| 90 | 135 | <div class="elementor-panel-navigation"> |
| @@ -93,18 +138,27 @@ | ||
| 93 | 138 | return; |
| 94 | 139 | } |
| 95 | 140 | $e.bc.ensureTab( 'panel/editor', tabSlug ); |
| 96 | 141 | #> |
| 97 | - <button class="elementor-component-tab elementor-panel-navigation-tab elementor-tab-control-{{ tabSlug }}" data-tab="{{ tabSlug }}"> | |
| 98 | - <span>{{{ tabTitle }}}</span> | |
| 99 | - </button> | |
| 142 | + <div class="elementor-component-tab elementor-panel-navigation-tab elementor-tab-control-{{ tabSlug }}" data-tab="{{ tabSlug }}"> | |
| 143 | + <a href="#">{{{ tabTitle }}}</a> | |
| 144 | + </div> | |
| 100 | 145 | <# } ); #> |
| 101 | 146 | </div> |
| 147 | + | |
| 148 | + <div class="e-panel-search-area e-panel-controls-search-area"> | |
| 149 | + <div class="e-panel-search-wrapper e-panel-controls-search-wrapper"> | |
| 150 | + <label for="elementor-panel-controls-search-input" class="screen-reader-text"><?php echo esc_html__( 'Search Control:', 'elementor' ); ?></label> | |
| 151 | + <input type="search" id="elementor-panel-controls-search-input" placeholder="<?php esc_attr_e( 'Search Control...', 'elementor' ); ?>" autocomplete="off"/> | |
| 152 | + <i class="eicon-search-bold" aria-hidden="true"></i> | |
| 153 | + </div> | |
| 154 | + </div> | |
| 155 | + | |
| 102 | 156 | <# if ( elementData.reload_preview ) { #> |
| 103 | 157 | <div class="elementor-update-preview"> |
| 104 | 158 | <div class="elementor-update-preview-title"><?php echo esc_html__( 'Update changes to page', 'elementor' ); ?></div> |
| 105 | 159 | <div class="elementor-update-preview-button-wrapper"> |
| 106 | - <button class="elementor-update-preview-button elementor-button"><?php echo esc_html__( 'Apply', 'elementor' ); ?></button> | |
| 160 | + <button class="elementor-update-preview-button elementor-button elementor-button-success"><?php echo esc_html__( 'Apply', 'elementor' ); ?></button> | |
| 107 | 161 | </div> |
| 108 | 162 | </div> |
| 109 | 163 | <# } #> |
| 110 | 164 | <div id="elementor-controls"></div> |
| @@ -111,41 +165,16 @@ | ||
| 111 | 165 | <# if ( elementData.help_url ) { #> |
| 112 | 166 | <div id="elementor-panel__editor__help"> |
| 113 | 167 | <a id="elementor-panel__editor__help__link" href="{{ elementData.help_url }}" target="_blank"> |
| 114 | 168 | <?php echo esc_html__( 'Need Help', 'elementor' ); ?> |
| 115 | - <i class="eicon-help-o" aria-hidden="true"></i> | |
| 169 | + <i class="eicon-help-o"></i> | |
| 116 | 170 | </a> |
| 117 | 171 | </div> |
| 118 | 172 | <# } #> |
| 119 | - | |
| 120 | - <# if ( elementData.upsale_data && elementData.upsale_data.condition ) { #> | |
| 121 | - <div class="elementor-nerd-box elementor-nerd-box--upsale"> | |
| 122 | - <# if ( elementData.upsale_data.image ) { #> | |
| 123 | - <img class="elementor-nerd-box-icon" src="{{ elementData.upsale_data.image }}" loading="lazy" alt="{{ elementData.upsale_data.image_alt }}" /> | |
| 124 | - <# } #> | |
| 125 | - <# if ( elementData.upsale_data.title ) { #> | |
| 126 | - <div class="elementor-nerd-box-title">{{{ elementData.upsale_data.title }}}</div> | |
| 127 | - <# } #> | |
| 128 | - <# if ( elementData.upsale_data.description ) { #> | |
| 129 | - <div class="elementor-nerd-box-message">{{{ elementData.upsale_data.description }}}</div> | |
| 130 | - <# } #> | |
| 131 | - <# if ( elementData.upsale_data.upgrade_url && elementData.upsale_data.upgrade_text ) { #> | |
| 132 | - <a class="elementor-button go-pro" href="{{ elementData.upsale_data.upgrade_url }}" target="_blank">{{{ elementData.upsale_data.upgrade_text }}}</a> | |
| 133 | - <# } #> | |
| 134 | - </div> | |
| 135 | - <# } #> | |
| 136 | - <?php if ( $show_editing_panel_sticky_promotion ) : ?> | |
| 137 | - <div class="elementor-panel-editor-sticky-promotion"> | |
| 138 | - <div class="elementor-get-pro-sticky-message"> | |
| 139 | - <?php echo esc_html( $editing_panel_sticky_promotion['message'] ); ?> | |
| 140 | - <a target="_blank" href="<?php echo esc_url( $editing_panel_sticky_promotion['url'] ); ?>"><?php echo esc_html( $editing_panel_sticky_promotion['button_text'] ); ?></a> | |
| 141 | - </div> | |
| 142 | - </div> | |
| 143 | - <?php endif; ?> | |
| 144 | 173 | </script> |
| 145 | 174 | |
| 146 | 175 | <script type="text/template" id="tmpl-elementor-panel-schemes-disabled"> |
| 147 | - <img class="elementor-nerd-box-icon" src="<?php Utils::print_unescaped_internal_string( ELEMENTOR_ASSETS_URL . 'images/information.svg' ); ?>" loading="lazy" alt="<?php echo esc_attr__( 'Elementor', 'elementor' ); ?>" /> | |
| 176 | + <img class="elementor-nerd-box-icon" src="<?php Utils::print_unescaped_internal_string( ELEMENTOR_ASSETS_URL . 'images/information.svg' ); ?>" /> | |
| 148 | 177 | <div class="elementor-nerd-box-title">{{{ '<?php echo esc_html__( '%s are disabled', 'elementor' ); // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment ?>'.replace( '%s', disabledTitle ) }}}</div> |
| 149 | 178 | <div class="elementor-nerd-box-message"><?php |
| 150 | 179 | printf( |
| 151 | 180 | /* translators: %1$s Link open tag, %2$s: Link close tag. */ |
| @@ -163,9 +192,9 @@ | ||
| 163 | 192 | |
| 164 | 193 | <script type="text/template" id="tmpl-elementor-panel-scheme-typography-item"> |
| 165 | 194 | <div class="elementor-panel-heading"> |
| 166 | 195 | <div class="elementor-panel-heading-toggle"> |
| 167 | - <i class="eicon-caret-right" aria-hidden="true"></i> | |
| 196 | + <i class="eicon" aria-hidden="true"></i> | |
| 168 | 197 | </div> |
| 169 | 198 | <div class="elementor-panel-heading-title">{{{ title }}}</div> |
| 170 | 199 | </div> |
| 171 | 200 | <div class="elementor-panel-scheme-typography-items elementor-panel-box-content"> |
| @@ -221,11 +250,11 @@ | ||
| 221 | 250 | // The 'Desktop' label is made accessible via the global config because it needs to be translated. |
| 222 | 251 | var deviceLabel = 'desktop' === device ? '<?php esc_html_e( 'Desktop', 'elementor' ); ?>' : activeBreakpoints[ device ].label, |
| 223 | 252 | tooltipDir = "<?php echo is_rtl() ? 'e' : 'w'; ?>"; |
| 224 | 253 | #> |
| 225 | - <button class="elementor-responsive-switcher tooltip-target elementor-responsive-switcher-{{ device }}" data-device="{{ device }}" data-tooltip="{{ deviceLabel }}" data-tooltip-pos="{{ tooltipDir }}" aria-label="{{ deviceLabel }}"> | |
| 226 | - <i class="{{ elementor.config.responsive.icons_map[ device ] }}" aria-hidden="true"></i> | |
| 227 | - </button> | |
| 254 | + <a class="elementor-responsive-switcher tooltip-target elementor-responsive-switcher-{{ device }}" data-device="{{ device }}" data-tooltip="{{ deviceLabel }}" data-tooltip-pos="{{ tooltipDir }}"> | |
| 255 | + <i class="{{ elementor.config.responsive.icons_map[ device ] }}"></i> | |
| 256 | + </a> | |
| 228 | 257 | <# } ); |
| 229 | 258 | #> |
| 230 | 259 | </div> |
| 231 | 260 | </div> |
| @@ -231,17 +260,16 @@ | ||
| 231 | 260 | </div> |
| 232 | 261 | </script> |
| 233 | 262 | |
| 234 | 263 | <script type="text/template" id="tmpl-elementor-control-dynamic-switcher"> |
| 235 | - <button class="elementor-control-dynamic-switcher elementor-control-unit-1" data-tooltip="<?php echo esc_attr__( 'Dynamic Tags', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Dynamic Tags', 'elementor' ); ?>"> | |
| 236 | - <i class="eicon-database" aria-hidden="true"></i> | |
| 237 | - </button> | |
| 264 | + <div class="elementor-control-dynamic-switcher elementor-control-unit-1" data-tooltip="<?php echo esc_html__( 'Dynamic Tags', 'elementor' ); ?>"> | |
| 265 | + <i class="eicon-database"></i> | |
| 266 | + </div> | |
| 238 | 267 | </script> |
| 239 | - | |
| 240 | 268 | <script type="text/template" id="tmpl-elementor-control-element-color-picker"> |
| 241 | - <button class="elementor-control-element-color-picker e-control-tool" data-tooltip="<?php echo esc_attr__( 'Color Sampler', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Color Sampler', 'elementor' ); ?>"> | |
| 242 | - <i class="eicon-eyedropper" aria-hidden="true"></i> | |
| 243 | - </button> | |
| 269 | + <div class="elementor-control-element-color-picker e-control-tool" data-tooltip="<?php echo esc_attr__( 'Color Sampler', 'elementor' ); ?>"> | |
| 270 | + <i class="eicon-eyedropper"></i> | |
| 271 | + </div> | |
| 244 | 272 | </script> |
| 245 | 273 | |
| 246 | 274 | <script type="text/template" id="tmpl-elementor-control-dynamic-cover"> |
| 247 | 275 | <div class="elementor-dynamic-cover__settings"> |
| @@ -262,10 +290,10 @@ | ||
| 262 | 290 | </div> |
| 263 | 291 | <div class="elementor-tags-list__teaser-text"> |
| 264 | 292 | <?php echo esc_html__( 'You’re missing out!', 'elementor' ); ?><br /> |
| 265 | 293 | <?php echo esc_html__( 'Get more dynamic capabilities by incorporating dozens of Elementor\'s native dynamic tags.', 'elementor' ); ?> |
| 266 | - <a href="{{{ promotionUrl }}}" class="elementor-tags-list__teaser-link" target="_blank"> | |
| 267 | - <?php echo esc_html__( 'Upgrade', 'elementor' ); ?> | |
| 294 | + <a href="{{{ elementor.config.dynamicPromotionURL }}}" class="elementor-tags-list__teaser-link" target="_blank"> | |
| 295 | + <?php echo esc_html__( 'See it in action', 'elementor' ); ?> | |
| 268 | 296 | </a> |
| 269 | 297 | </div> |
| 270 | 298 | </div> |
| 271 | 299 | </script> |