| @@ -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> |
| @@ -56,10 +51,10 @@ | ||
| 56 | 51 | |
| 57 | 52 | <script type="text/template" id="tmpl-elementor-exit-dialog"> |
| 58 | 53 | <div><?php echo esc_html__( 'Now you can choose where you want to go on the site from the following options', 'elementor' ); ?></div> |
| 59 | 54 | <div> |
| 60 | - <?php printf( | |
| 61 | - /* translators: 1: Opening HTML <a> tag, 2: closing HTML <a> tag. */ | |
| 55 | + <!-- translators: 1: Opening HTML <a> tag, 2: closing HTML <a> tag. --> | |
| 56 | + <?php echo sprintf( | |
| 62 | 57 | esc_html__( 'Any time you can change the settings in %1$sUser Preferences%2$s', 'elementor' ), |
| 63 | 58 | '<a id="user-preferences">', |
| 64 | 59 | '</a>' |
| 65 | 60 | ); ?> |
| @@ -67,24 +62,87 @@ | ||
| 67 | 62 | <select id="exit-to-preferences"></select> <!-- Adding options by JS --> |
| 68 | 63 | </script> |
| 69 | 64 | |
| 70 | 65 | <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> | |
| 66 | + <div id="elementor-panel-header-menu-button" class="elementor-header-button"> | |
| 67 | + <i class="elementor-icon eicon-menu-bar tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Menu', 'elementor' ); ?>"></i> | |
| 68 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Menu', 'elementor' ); ?></span> | |
| 69 | + </div> | |
| 70 | + <div id="elementor-panel-header-title"></div> | |
| 71 | + <div id="elementor-panel-header-add-button" class="elementor-header-button"> | |
| 72 | + <i class="elementor-icon eicon-apps tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Widgets Panel', 'elementor' ); ?>"></i> | |
| 73 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Widgets Panel', 'elementor' ); ?></span> | |
| 74 | + </div> | |
| 79 | 75 | </script> |
| 80 | 76 | |
| 77 | +<script type="text/template" id="tmpl-elementor-panel-footer-content"> | |
| 78 | + <div id="elementor-panel-footer-settings" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php esc_attr_e( 'Settings', 'elementor' ); ?>"> | |
| 79 | + <i class="eicon-cog" aria-hidden="true"></i> | |
| 80 | + <span class="elementor-screen-only"><?php printf( esc_html__( '%s Settings', 'elementor' ), esc_html( $document::get_title() ) ); ?></span> | |
| 81 | + </div> | |
| 82 | + <div id="elementor-panel-footer-navigator" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php esc_attr_e( 'Navigator', 'elementor' ); ?>"> | |
| 83 | + <i class="eicon-navigator" aria-hidden="true"></i> | |
| 84 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Navigator', 'elementor' ); ?></span> | |
| 85 | + </div> | |
| 86 | + <div id="elementor-panel-footer-history" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php esc_attr_e( 'History', 'elementor' ); ?>"> | |
| 87 | + <i class="eicon-history" aria-hidden="true"></i> | |
| 88 | + <span class="elementor-screen-only"><?php echo esc_html__( 'History', 'elementor' ); ?></span> | |
| 89 | + </div> | |
| 90 | + <div id="elementor-panel-footer-responsive" class="elementor-panel-footer-tool elementor-toggle-state"> | |
| 91 | + <i class="eicon-device-responsive tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Responsive Mode', 'elementor' ); ?>"></i> | |
| 92 | + <span class="elementor-screen-only"> | |
| 93 | + <?php echo esc_html__( 'Responsive Mode', 'elementor' ); ?> | |
| 94 | + </span> | |
| 95 | + </div> | |
| 96 | + <div id="elementor-panel-footer-saver-preview" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php esc_attr_e( 'Preview Changes', 'elementor' ); ?>"> | |
| 97 | + <span id="elementor-panel-footer-saver-preview-label"> | |
| 98 | + <i class="eicon-preview-medium" aria-hidden="true"></i> | |
| 99 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Preview Changes', 'elementor' ); ?></span> | |
| 100 | + </span> | |
| 101 | + </div> | |
| 102 | + <div id="elementor-panel-footer-saver-publish" class="elementor-panel-footer-tool"> | |
| 103 | + <button id="elementor-panel-saver-button-publish" class="elementor-button elementor-button-success elementor-disabled"> | |
| 104 | + <span class="elementor-state-icon"> | |
| 105 | + <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i> | |
| 106 | + </span> | |
| 107 | + <span id="elementor-panel-saver-button-publish-label"> | |
| 108 | + <?php echo esc_html__( 'Publish', 'elementor' ); ?> | |
| 109 | + </span> | |
| 110 | + </button> | |
| 111 | + </div> | |
| 112 | + <div id="elementor-panel-footer-saver-options" class="elementor-panel-footer-tool elementor-toggle-state"> | |
| 113 | + <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"> | |
| 114 | + <i class="eicon-caret-up" aria-hidden="true"></i> | |
| 115 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Save Options', 'elementor' ); ?></span> | |
| 116 | + </button> | |
| 117 | + <div class="elementor-panel-footer-sub-menu-wrapper"> | |
| 118 | + <p class="elementor-last-edited-wrapper"> | |
| 119 | + <span class="elementor-state-icon"> | |
| 120 | + <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i> | |
| 121 | + </span> | |
| 122 | + <span class="elementor-last-edited"> | |
| 123 | + </span> | |
| 124 | + </p> | |
| 125 | + <div class="elementor-panel-footer-sub-menu"> | |
| 126 | + <div id="elementor-panel-footer-sub-menu-item-save-draft" class="elementor-panel-footer-sub-menu-item elementor-disabled"> | |
| 127 | + <i class="elementor-icon eicon-save" aria-hidden="true"></i> | |
| 128 | + <span class="elementor-title"><?php echo esc_html__( 'Save Draft', 'elementor' ); ?></span> | |
| 129 | + </div> | |
| 130 | + <div id="elementor-panel-footer-sub-menu-item-save-template" class="elementor-panel-footer-sub-menu-item"> | |
| 131 | + <i class="elementor-icon eicon-folder" aria-hidden="true"></i> | |
| 132 | + <span class="elementor-title"><?php echo esc_html__( 'Save as Template', 'elementor' ); ?></span> | |
| 133 | + </div> | |
| 134 | + </div> | |
| 135 | + </div> | |
| 136 | + </div> | |
| 137 | +</script> | |
| 138 | + | |
| 81 | 139 | <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> | |
| 140 | + <input id="elementor-mode-switcher-preview-input" type="checkbox"> | |
| 141 | + <label for="elementor-mode-switcher-preview-input" id="elementor-mode-switcher-preview"> | |
| 142 | + <i class="eicon" aria-hidden="true" title="<?php esc_attr_e( 'Hide Panel', 'elementor' ); ?>"></i> | |
| 84 | 143 | <span class="elementor-screen-only"><?php echo esc_html__( 'Hide Panel', 'elementor' ); ?></span> |
| 85 | 144 | </label> |
| 86 | - <input id="elementor-mode-switcher-preview-input" type="checkbox"> | |
| 87 | 145 | </script> |
| 88 | 146 | |
| 89 | 147 | <script type="text/template" id="tmpl-editor-content"> |
| 90 | 148 | <div class="elementor-panel-navigation"> |
| @@ -93,11 +151,11 @@ | ||
| 93 | 151 | return; |
| 94 | 152 | } |
| 95 | 153 | $e.bc.ensureTab( 'panel/editor', tabSlug ); |
| 96 | 154 | #> |
| 97 | - <button class="elementor-component-tab elementor-panel-navigation-tab elementor-tab-control-{{ tabSlug }}" data-tab="{{ tabSlug }}"> | |
| 98 | - <span>{{{ tabTitle }}}</span> | |
| 99 | - </button> | |
| 155 | + <div class="elementor-component-tab elementor-panel-navigation-tab elementor-tab-control-{{ tabSlug }}" data-tab="{{ tabSlug }}"> | |
| 156 | + <a href="#">{{{ tabTitle }}}</a> | |
| 157 | + </div> | |
| 100 | 158 | <# } ); #> |
| 101 | 159 | </div> |
| 102 | 160 | <# if ( elementData.reload_preview ) { #> |
| 103 | 161 | <div class="elementor-update-preview"> |
| @@ -102,9 +160,9 @@ | ||
| 102 | 160 | <# if ( elementData.reload_preview ) { #> |
| 103 | 161 | <div class="elementor-update-preview"> |
| 104 | 162 | <div class="elementor-update-preview-title"><?php echo esc_html__( 'Update changes to page', 'elementor' ); ?></div> |
| 105 | 163 | <div class="elementor-update-preview-button-wrapper"> |
| 106 | - <button class="elementor-update-preview-button elementor-button"><?php echo esc_html__( 'Apply', 'elementor' ); ?></button> | |
| 164 | + <button class="elementor-update-preview-button elementor-button elementor-button-success"><?php echo esc_html__( 'Apply', 'elementor' ); ?></button> | |
| 107 | 165 | </div> |
| 108 | 166 | </div> |
| 109 | 167 | <# } #> |
| 110 | 168 | <div id="elementor-controls"></div> |
| @@ -111,41 +169,16 @@ | ||
| 111 | 169 | <# if ( elementData.help_url ) { #> |
| 112 | 170 | <div id="elementor-panel__editor__help"> |
| 113 | 171 | <a id="elementor-panel__editor__help__link" href="{{ elementData.help_url }}" target="_blank"> |
| 114 | 172 | <?php echo esc_html__( 'Need Help', 'elementor' ); ?> |
| 115 | - <i class="eicon-help-o" aria-hidden="true"></i> | |
| 173 | + <i class="eicon-help-o"></i> | |
| 116 | 174 | </a> |
| 117 | 175 | </div> |
| 118 | 176 | <# } #> |
| 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 | 177 | </script> |
| 145 | 178 | |
| 146 | 179 | <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' ); ?>" /> | |
| 180 | + <img class="elementor-nerd-box-icon" src="<?php Utils::print_unescaped_internal_string( ELEMENTOR_ASSETS_URL . 'images/information.svg' ); ?>" /> | |
| 148 | 181 | <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 | 182 | <div class="elementor-nerd-box-message"><?php |
| 150 | 183 | printf( |
| 151 | 184 | /* translators: %1$s Link open tag, %2$s: Link close tag. */ |
| @@ -163,9 +196,9 @@ | ||
| 163 | 196 | |
| 164 | 197 | <script type="text/template" id="tmpl-elementor-panel-scheme-typography-item"> |
| 165 | 198 | <div class="elementor-panel-heading"> |
| 166 | 199 | <div class="elementor-panel-heading-toggle"> |
| 167 | - <i class="eicon-caret-right" aria-hidden="true"></i> | |
| 200 | + <i class="eicon" aria-hidden="true"></i> | |
| 168 | 201 | </div> |
| 169 | 202 | <div class="elementor-panel-heading-title">{{{ title }}}</div> |
| 170 | 203 | </div> |
| 171 | 204 | <div class="elementor-panel-scheme-typography-items elementor-panel-box-content"> |
| @@ -221,11 +254,11 @@ | ||
| 221 | 254 | // The 'Desktop' label is made accessible via the global config because it needs to be translated. |
| 222 | 255 | var deviceLabel = 'desktop' === device ? '<?php esc_html_e( 'Desktop', 'elementor' ); ?>' : activeBreakpoints[ device ].label, |
| 223 | 256 | tooltipDir = "<?php echo is_rtl() ? 'e' : 'w'; ?>"; |
| 224 | 257 | #> |
| 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> | |
| 258 | + <a class="elementor-responsive-switcher tooltip-target elementor-responsive-switcher-{{ device }}" data-device="{{ device }}" data-tooltip="{{ deviceLabel }}" data-tooltip-pos="{{ tooltipDir }}"> | |
| 259 | + <i class="{{ elementor.config.responsive.icons_map[ device ] }}"></i> | |
| 260 | + </a> | |
| 228 | 261 | <# } ); |
| 229 | 262 | #> |
| 230 | 263 | </div> |
| 231 | 264 | </div> |
| @@ -231,17 +264,16 @@ | ||
| 231 | 264 | </div> |
| 232 | 265 | </script> |
| 233 | 266 | |
| 234 | 267 | <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> | |
| 268 | + <div class="elementor-control-dynamic-switcher elementor-control-unit-1" data-tooltip="<?php echo esc_html__( 'Dynamic Tags', 'elementor' ); ?>"> | |
| 269 | + <i class="eicon-database"></i> | |
| 270 | + </div> | |
| 238 | 271 | </script> |
| 239 | - | |
| 240 | 272 | <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> | |
| 273 | + <div class="elementor-control-element-color-picker e-control-tool" data-tooltip="<?php echo esc_attr__( 'Color Sampler', 'elementor' ); ?>"> | |
| 274 | + <i class="eicon-eyedropper"></i> | |
| 275 | + </div> | |
| 244 | 276 | </script> |
| 245 | 277 | |
| 246 | 278 | <script type="text/template" id="tmpl-elementor-control-dynamic-cover"> |
| 247 | 279 | <div class="elementor-dynamic-cover__settings"> |