| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor; |
| 3 | 3 | |
| 4 | -use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager; | |
| 4 | +use Elementor\Modules\EditorAppBar\Module as App_Bar_Module; | |
| 5 | 5 | |
| 6 | 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | 7 | exit; // Exit if accessed directly. |
| 8 | 8 | } |
| @@ -7,11 +7,9 @@ | ||
| 7 | 7 | exit; // Exit if accessed directly. |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | $document = Plugin::$instance->documents->get( Plugin::$instance->editor->get_post_id() ); |
| 11 | - | |
| 12 | -$show_editing_panel_sticky_promotion = ! Utils::has_pro() && Plugin::$instance->experiments->is_feature_active( 'e_panel_promotions' ); | |
| 13 | -$editing_panel_sticky_promotion = $show_editing_panel_sticky_promotion ? Filtered_Promotions_Manager::get_editor_panel_sticky_promotion() : []; | |
| 11 | +$is_app_bar_active = Plugin::$instance->experiments->is_feature_active( App_Bar_Module::EXPERIMENT_NAME ); | |
| 14 | 12 | ?> |
| 15 | 13 | <script type="text/template" id="tmpl-elementor-panel"> |
| 16 | 14 | <div id="elementor-panel-state-loading"> |
| 17 | 15 | <i class="eicon-loading eicon-animation-spin"></i> |
| @@ -56,10 +54,10 @@ | ||
| 56 | 54 | |
| 57 | 55 | <script type="text/template" id="tmpl-elementor-exit-dialog"> |
| 58 | 56 | <div><?php echo esc_html__( 'Now you can choose where you want to go on the site from the following options', 'elementor' ); ?></div> |
| 59 | 57 | <div> |
| 60 | - <?php printf( | |
| 61 | - /* translators: 1: Opening HTML <a> tag, 2: closing HTML <a> tag. */ | |
| 58 | + <!-- translators: 1: Opening HTML <a> tag, 2: closing HTML <a> tag. --> | |
| 59 | + <?php echo sprintf( | |
| 62 | 60 | esc_html__( 'Any time you can change the settings in %1$sUser Preferences%2$s', 'elementor' ), |
| 63 | 61 | '<a id="user-preferences">', |
| 64 | 62 | '</a>' |
| 65 | 63 | ); ?> |
| @@ -67,41 +65,53 @@ | ||
| 67 | 65 | <select id="exit-to-preferences"></select> <!-- Adding options by JS --> |
| 68 | 66 | </script> |
| 69 | 67 | |
| 70 | 68 | <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> | |
| 69 | + <button id="elementor-panel-header-menu-button" class="elementor-header-button"> | |
| 70 | + <i class="elementor-icon eicon-menu-bar tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Menu', 'elementor' ); ?>"></i> | |
| 71 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Menu', 'elementor' ); ?></span> | |
| 73 | 72 | </button> |
| 74 | 73 | <h2 id="elementor-panel-header-title"></h2> |
| 75 | 74 | <# 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> | |
| 75 | + <button id="elementor-panel-header-add-button" class="elementor-header-button {{{ extraClass }}}"> | |
| 76 | + <i class="elementor-icon eicon-apps tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Widgets Panel', 'elementor' ); ?>"></i> | |
| 77 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Widgets Panel', 'elementor' ); ?></span> | |
| 78 | 78 | </button> |
| 79 | 79 | </script> |
| 80 | 80 | |
| 81 | 81 | <script type="text/template" id="tmpl-elementor-panel-footer-content"> |
| 82 | - <button id="elementor-panel-footer-settings" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php echo esc_attr__( 'Settings', 'elementor' ); ?>" aria-label="<?php | |
| 83 | - printf( | |
| 84 | - /* translators: %s: Document title. */ | |
| 85 | - esc_attr__( '%s Settings', 'elementor' ), | |
| 86 | - esc_attr( $document::get_title() ) | |
| 87 | - ); ?>"> | |
| 82 | + <button id="elementor-panel-footer-settings" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php esc_attr_e( 'Settings', 'elementor' ); ?>"> | |
| 88 | 83 | <i class="eicon-cog" aria-hidden="true"></i> |
| 84 | + <span class="elementor-screen-only"><?php printf( esc_html__( '%s Settings', 'elementor' ), esc_html( $document::get_title() ) ); ?></span> | |
| 89 | 85 | </button> |
| 90 | 86 | <# if ( $e.components.get( 'document/elements' ).utils.showNavigator() ) { #> |
| 91 | - <button id="elementor-panel-footer-navigator" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php echo esc_attr__( 'Structure', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Structure', 'elementor' ); ?>"> | |
| 87 | + <button id="elementor-panel-footer-navigator" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php | |
| 88 | + echo $is_app_bar_active | |
| 89 | + ? esc_attr__( 'Structure', 'elementor' ) | |
| 90 | + : esc_attr__( 'Navigator', 'elementor' ); | |
| 91 | + ?>"> | |
| 92 | 92 | <i class="eicon-navigator" aria-hidden="true"></i> |
| 93 | + <span class="elementor-screen-only"><?php | |
| 94 | + echo $is_app_bar_active | |
| 95 | + ? esc_html__( 'Structure', 'elementor' ) | |
| 96 | + : esc_html__( 'Navigator', 'elementor' ); | |
| 97 | + ?></span> | |
| 93 | 98 | </button> |
| 94 | 99 | <# } #> |
| 95 | - <button id="elementor-panel-footer-history" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php echo esc_attr__( 'History', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'History', 'elementor' ); ?>"> | |
| 100 | + <button id="elementor-panel-footer-history" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php esc_attr_e( 'History', 'elementor' ); ?>"> | |
| 96 | 101 | <i class="eicon-history" aria-hidden="true"></i> |
| 102 | + <span class="elementor-screen-only"><?php echo esc_html__( 'History', 'elementor' ); ?></span> | |
| 97 | 103 | </button> |
| 98 | - <button id="elementor-panel-footer-responsive" class="elementor-panel-footer-tool elementor-toggle-state tooltip-target" data-tooltip="<?php echo esc_attr__( 'Responsive Mode', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Responsive Mode', 'elementor' ); ?>"> | |
| 104 | + <button id="elementor-panel-footer-responsive" class="elementor-panel-footer-tool elementor-toggle-state tooltip-target" data-tooltip="<?php esc_attr_e( 'Responsive Mode', 'elementor' ); ?>"> | |
| 99 | 105 | <i class="eicon-device-responsive" aria-hidden="true"></i> |
| 106 | + <span class="elementor-screen-only"> | |
| 107 | + <?php echo esc_html__( 'Responsive Mode', 'elementor' ); ?> | |
| 108 | + </span> | |
| 100 | 109 | </button> |
| 101 | - <button id="elementor-panel-footer-saver-preview" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php echo esc_attr__( 'Preview Changes', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Preview Changes', 'elementor' ); ?>"> | |
| 110 | + <button id="elementor-panel-footer-saver-preview" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php esc_attr_e( 'Preview Changes', 'elementor' ); ?>"> | |
| 102 | 111 | <span id="elementor-panel-footer-saver-preview-label"> |
| 103 | 112 | <i class="eicon-preview-medium" aria-hidden="true"></i> |
| 113 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Preview Changes', 'elementor' ); ?></span> | |
| 104 | 114 | </span> |
| 105 | 115 | </button> |
| 106 | 116 | <div id="elementor-panel-footer-saver-publish" class="elementor-panel-footer-tool"> |
| 107 | 117 | <# const publishTitle = $e.components.get( 'document/elements' ).utils.getTitleForPublishButton(); #> |
| @@ -114,10 +124,11 @@ | ||
| 114 | 124 | </span> |
| 115 | 125 | </button> |
| 116 | 126 | </div> |
| 117 | 127 | <div id="elementor-panel-footer-saver-options" class="elementor-panel-footer-tool elementor-toggle-state"> |
| 118 | - <button id="elementor-panel-saver-button-save-options" class="elementor-button e-primary tooltip-target elementor-disabled" data-tooltip="<?php echo esc_attr__( 'Save Options', 'elementor' ); ?>" data-tooltip-offset="7" aria-label="<?php echo esc_attr__( 'Save Options', 'elementor' ); ?>"> | |
| 128 | + <button id="elementor-panel-saver-button-save-options" class="elementor-button e-primary tooltip-target elementor-disabled" data-tooltip="<?php esc_attr_e( 'Save Options', 'elementor' ); ?>" data-tooltip-offset="7"> | |
| 119 | 129 | <i class="eicon-chevron-right" aria-hidden="true"></i> |
| 130 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Save Options', 'elementor' ); ?></span> | |
| 120 | 131 | </button> |
| 121 | 132 | <div class="elementor-panel-footer-sub-menu-wrapper"> |
| 122 | 133 | <p class="elementor-last-edited-wrapper"> |
| 123 | 134 | <span class="elementor-state-icon"> |
| @@ -146,10 +157,10 @@ | ||
| 146 | 157 | </div> |
| 147 | 158 | </script> |
| 148 | 159 | |
| 149 | 160 | <script type="text/template" id="tmpl-elementor-mode-switcher-content"> |
| 150 | - <label for="elementor-mode-switcher-preview-input" id="elementor-mode-switcher-preview" title="<?php echo esc_attr__( 'Hide Panel', 'elementor' ); ?>"> | |
| 151 | - <i class="eicon eicon-angle-left" aria-hidden="true" tabindex="0"></i> | |
| 161 | + <label for="elementor-mode-switcher-preview-input" id="elementor-mode-switcher-preview" title="<?php esc_attr_e( 'Hide Panel', 'elementor' ); ?>"> | |
| 162 | + <i class="eicon" aria-hidden="true" tabindex="0"></i> | |
| 152 | 163 | <span class="elementor-screen-only"><?php echo esc_html__( 'Hide Panel', 'elementor' ); ?></span> |
| 153 | 164 | </label> |
| 154 | 165 | <input id="elementor-mode-switcher-preview-input" type="checkbox"> |
| 155 | 166 | </script> |
| @@ -200,16 +211,8 @@ | ||
| 200 | 211 | <a class="elementor-button go-pro" href="{{ elementData.upsale_data.upgrade_url }}" target="_blank">{{{ elementData.upsale_data.upgrade_text }}}</a> |
| 201 | 212 | <# } #> |
| 202 | 213 | </div> |
| 203 | 214 | <# } #> |
| 204 | - <?php if ( $show_editing_panel_sticky_promotion ) : ?> | |
| 205 | - <div class="elementor-panel-editor-sticky-promotion"> | |
| 206 | - <div class="elementor-get-pro-sticky-message"> | |
| 207 | - <?php echo esc_html( $editing_panel_sticky_promotion['message'] ); ?> | |
| 208 | - <a target="_blank" href="<?php echo esc_url( $editing_panel_sticky_promotion['url'] ); ?>"><?php echo esc_html( $editing_panel_sticky_promotion['button_text'] ); ?></a> | |
| 209 | - </div> | |
| 210 | - </div> | |
| 211 | - <?php endif; ?> | |
| 212 | 215 | </script> |
| 213 | 216 | |
| 214 | 217 | <script type="text/template" id="tmpl-elementor-panel-schemes-disabled"> |
| 215 | 218 | <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' ); ?>" /> |
| @@ -231,9 +234,9 @@ | ||
| 231 | 234 | |
| 232 | 235 | <script type="text/template" id="tmpl-elementor-panel-scheme-typography-item"> |
| 233 | 236 | <div class="elementor-panel-heading"> |
| 234 | 237 | <div class="elementor-panel-heading-toggle"> |
| 235 | - <i class="eicon-caret-right" aria-hidden="true"></i> | |
| 238 | + <i class="eicon" aria-hidden="true"></i> | |
| 236 | 239 | </div> |
| 237 | 240 | <div class="elementor-panel-heading-title">{{{ title }}}</div> |
| 238 | 241 | </div> |
| 239 | 242 | <div class="elementor-panel-scheme-typography-items elementor-panel-box-content"> |
| @@ -289,10 +292,11 @@ | ||
| 289 | 292 | // The 'Desktop' label is made accessible via the global config because it needs to be translated. |
| 290 | 293 | var deviceLabel = 'desktop' === device ? '<?php esc_html_e( 'Desktop', 'elementor' ); ?>' : activeBreakpoints[ device ].label, |
| 291 | 294 | tooltipDir = "<?php echo is_rtl() ? 'e' : 'w'; ?>"; |
| 292 | 295 | #> |
| 293 | - <button class="elementor-responsive-switcher tooltip-target elementor-responsive-switcher-{{ device }}" data-device="{{ device }}" data-tooltip="{{ deviceLabel }}" data-tooltip-pos="{{ tooltipDir }}" aria-label="{{ deviceLabel }}"> | |
| 296 | + <button class="elementor-responsive-switcher tooltip-target elementor-responsive-switcher-{{ device }}" data-device="{{ device }}" data-tooltip="{{ deviceLabel }}" data-tooltip-pos="{{ tooltipDir }}"> | |
| 294 | 297 | <i class="{{ elementor.config.responsive.icons_map[ device ] }}" aria-hidden="true"></i> |
| 298 | + <span class="elementor-screen-only">{{ deviceLabel }}</span> | |
| 295 | 299 | </button> |
| 296 | 300 | <# } ); |
| 297 | 301 | #> |
| 298 | 302 | </div> |
| @@ -299,16 +303,18 @@ | ||
| 299 | 303 | </div> |
| 300 | 304 | </script> |
| 301 | 305 | |
| 302 | 306 | <script type="text/template" id="tmpl-elementor-control-dynamic-switcher"> |
| 303 | - <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' ); ?>"> | |
| 307 | + <button class="elementor-control-dynamic-switcher elementor-control-unit-1" data-tooltip="<?php echo esc_attr__( 'Dynamic Tags', 'elementor' ); ?>"> | |
| 304 | 308 | <i class="eicon-database" aria-hidden="true"></i> |
| 309 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Dynamic Tags', 'elementor' ); ?></span> | |
| 305 | 310 | </button> |
| 306 | 311 | </script> |
| 307 | 312 | |
| 308 | 313 | <script type="text/template" id="tmpl-elementor-control-element-color-picker"> |
| 309 | - <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' ); ?>"> | |
| 314 | + <button class="elementor-control-element-color-picker e-control-tool" data-tooltip="<?php echo esc_attr__( 'Color Sampler', 'elementor' ); ?>"> | |
| 310 | 315 | <i class="eicon-eyedropper" aria-hidden="true"></i> |
| 316 | + <span class="elementor-screen-only"><?php echo esc_html__( 'Color Sampler', 'elementor' ); ?></span> | |
| 311 | 317 | </button> |
| 312 | 318 | </script> |
| 313 | 319 | |
| 314 | 320 | <script type="text/template" id="tmpl-elementor-control-dynamic-cover"> |