| @@ -1,12 +1,15 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor; |
| 3 | 3 | |
| 4 | +use Elementor\Modules\EditorAppBar\Module as App_Bar_Module; | |
| 5 | + | |
| 4 | 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | 7 | exit; // Exit if accessed directly. |
| 6 | 8 | } |
| 7 | 9 | |
| 8 | 10 | $document = Plugin::$instance->documents->get( Plugin::$instance->editor->get_post_id() ); |
| 11 | +$is_app_bar_active = Plugin::$instance->experiments->is_feature_active( App_Bar_Module::EXPERIMENT_NAME ); | |
| 9 | 12 | ?> |
| 10 | 13 | <script type="text/template" id="tmpl-elementor-panel"> |
| 11 | 14 | <div id="elementor-panel-state-loading"> |
| 12 | 15 | <i class="eicon-loading eicon-animation-spin"></i> |
| @@ -51,10 +54,10 @@ | ||
| 51 | 54 | |
| 52 | 55 | <script type="text/template" id="tmpl-elementor-exit-dialog"> |
| 53 | 56 | <div><?php echo esc_html__( 'Now you can choose where you want to go on the site from the following options', 'elementor' ); ?></div> |
| 54 | 57 | <div> |
| 55 | - <?php printf( | |
| 56 | - /* 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( | |
| 57 | 60 | esc_html__( 'Any time you can change the settings in %1$sUser Preferences%2$s', 'elementor' ), |
| 58 | 61 | '<a id="user-preferences">', |
| 59 | 62 | '</a>' |
| 60 | 63 | ); ?> |
| @@ -73,18 +76,21 @@ | ||
| 73 | 76 | </button> |
| 74 | 77 | </script> |
| 75 | 78 | |
| 76 | 79 | <script type="text/template" id="tmpl-elementor-panel-footer-content"> |
| 77 | - <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 | |
| 78 | - printf( | |
| 79 | - /* translators: %s: Document title. */ | |
| 80 | - esc_attr__( '%s Settings', 'elementor' ), | |
| 81 | - esc_attr( $document::get_title() ) | |
| 82 | - ); ?>"> | |
| 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() ) ); ?>"> | |
| 83 | 81 | <i class="eicon-cog" aria-hidden="true"></i> |
| 84 | 82 | </button> |
| 85 | 83 | <# if ( $e.components.get( 'document/elements' ).utils.showNavigator() ) { #> |
| 86 | - <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 | +?>"> | |
| 87 | 93 | <i class="eicon-navigator" aria-hidden="true"></i> |
| 88 | 94 | </button> |
| 89 | 95 | <# } #> |
| 90 | 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' ); ?>"> |
| @@ -142,9 +148,9 @@ | ||
| 142 | 148 | </script> |
| 143 | 149 | |
| 144 | 150 | <script type="text/template" id="tmpl-elementor-mode-switcher-content"> |
| 145 | 151 | <label for="elementor-mode-switcher-preview-input" id="elementor-mode-switcher-preview" title="<?php echo esc_attr__( 'Hide Panel', 'elementor' ); ?>"> |
| 146 | - <i class="eicon eicon-angle-left" aria-hidden="true" tabindex="0"></i> | |
| 152 | + <i class="eicon" aria-hidden="true" tabindex="0"></i> | |
| 147 | 153 | <span class="elementor-screen-only"><?php echo esc_html__( 'Hide Panel', 'elementor' ); ?></span> |
| 148 | 154 | </label> |
| 149 | 155 | <input id="elementor-mode-switcher-preview-input" type="checkbox"> |
| 150 | 156 | </script> |
| @@ -218,9 +224,9 @@ | ||
| 218 | 224 | |
| 219 | 225 | <script type="text/template" id="tmpl-elementor-panel-scheme-typography-item"> |
| 220 | 226 | <div class="elementor-panel-heading"> |
| 221 | 227 | <div class="elementor-panel-heading-toggle"> |
| 222 | - <i class="eicon-caret-right" aria-hidden="true"></i> | |
| 228 | + <i class="eicon" aria-hidden="true"></i> | |
| 223 | 229 | </div> |
| 224 | 230 | <div class="elementor-panel-heading-title">{{{ title }}}</div> |
| 225 | 231 | </div> |
| 226 | 232 | <div class="elementor-panel-scheme-typography-items elementor-panel-box-content"> |