| @@ -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 | ); ?> |
| @@ -78,18 +76,21 @@ | ||
| 78 | 76 | </button> |
| 79 | 77 | </script> |
| 80 | 78 | |
| 81 | 79 | <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 | - ); ?>"> | |
| 80 | + <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 printf( esc_attr__( '%s Settings', 'elementor' ), esc_attr( $document::get_title() ) ); ?>"> | |
| 88 | 81 | <i class="eicon-cog" aria-hidden="true"></i> |
| 89 | 82 | </button> |
| 90 | 83 | <# 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' ); ?>"> | |
| 84 | + <button id="elementor-panel-footer-navigator" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php | |
| 85 | + echo $is_app_bar_active | |
| 86 | + ? esc_attr__( 'Structure', 'elementor' ) | |
| 87 | + : esc_attr__( 'Navigator', 'elementor' ); | |
| 88 | + ?>" aria-label="<?php | |
| 89 | + echo $is_app_bar_active | |
| 90 | + ? esc_attr__( 'Structure', 'elementor' ) | |
| 91 | + : esc_attr__( 'Navigator', 'elementor' ); | |
| 92 | +?>"> | |
| 92 | 93 | <i class="eicon-navigator" aria-hidden="true"></i> |
| 93 | 94 | </button> |
| 94 | 95 | <# } #> |
| 95 | 96 | <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' ); ?>"> |
| @@ -147,9 +148,9 @@ | ||
| 147 | 148 | </script> |
| 148 | 149 | |
| 149 | 150 | <script type="text/template" id="tmpl-elementor-mode-switcher-content"> |
| 150 | 151 | <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> | |
| 152 | + <i class="eicon" aria-hidden="true" tabindex="0"></i> | |
| 152 | 153 | <span class="elementor-screen-only"><?php echo esc_html__( 'Hide Panel', 'elementor' ); ?></span> |
| 153 | 154 | </label> |
| 154 | 155 | <input id="elementor-mode-switcher-preview-input" type="checkbox"> |
| 155 | 156 | </script> |
| @@ -200,16 +201,8 @@ | ||
| 200 | 201 | <a class="elementor-button go-pro" href="{{ elementData.upsale_data.upgrade_url }}" target="_blank">{{{ elementData.upsale_data.upgrade_text }}}</a> |
| 201 | 202 | <# } #> |
| 202 | 203 | </div> |
| 203 | 204 | <# } #> |
| 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 | 205 | </script> |
| 213 | 206 | |
| 214 | 207 | <script type="text/template" id="tmpl-elementor-panel-schemes-disabled"> |
| 215 | 208 | <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 +224,9 @@ | ||
| 231 | 224 | |
| 232 | 225 | <script type="text/template" id="tmpl-elementor-panel-scheme-typography-item"> |
| 233 | 226 | <div class="elementor-panel-heading"> |
| 234 | 227 | <div class="elementor-panel-heading-toggle"> |
| 235 | - <i class="eicon-caret-right" aria-hidden="true"></i> | |
| 228 | + <i class="eicon" aria-hidden="true"></i> | |
| 236 | 229 | </div> |
| 237 | 230 | <div class="elementor-panel-heading-title">{{{ title }}}</div> |
| 238 | 231 | </div> |
| 239 | 232 | <div class="elementor-panel-scheme-typography-items elementor-panel-box-content"> |