| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor; |
| 3 | 3 | |
| 4 | +use Elementor\Modules\EditorAppBar\Module as App_Bar_Module; | |
| 4 | 5 | use Elementor\Utils; |
| 5 | 6 | use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager; |
| 6 | 7 | |
| 7 | 8 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -7,8 +8,10 @@ | ||
| 7 | 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 8 | 9 | exit; // Exit if accessed directly. |
| 9 | 10 | } |
| 10 | 11 | |
| 12 | +$is_app_bar_active = Plugin::$instance->experiments->is_feature_active( App_Bar_Module::EXPERIMENT_NAME ); | |
| 13 | + | |
| 11 | 14 | $has_pro = Utils::has_pro(); |
| 12 | 15 | $elements_list_class = ''; |
| 13 | 16 | |
| 14 | 17 | if ( ! $has_pro ) { |
| @@ -28,13 +31,13 @@ | ||
| 28 | 31 | |
| 29 | 32 | ?> |
| 30 | 33 | <script type="text/template" id="tmpl-elementor-navigator"> |
| 31 | 34 | <div id="elementor-navigator__header"> |
| 32 | - <button id="elementor-navigator__toggle-all" data-elementor-action="expand" aria-label="<?php echo esc_attr__( 'Expand all elements', 'elementor' ); ?>"> | |
| 35 | + <button id="elementor-navigator__toggle-all" data-elementor-action="expand" aria-label="<?php esc_attr__( 'Expand all elements', 'elementor' ); ?>"> | |
| 33 | 36 | <i class="eicon-expand" aria-hidden="true"></i> |
| 34 | 37 | </button> |
| 35 | - <h2 id="elementor-navigator__header__title"><?php echo esc_html__( 'Structure', 'elementor' ); ?></h2> | |
| 36 | - <button id="elementor-navigator__close" aria-label="<?php echo esc_attr__( 'Close structure', 'elementor' ); ?>"> | |
| 38 | + <h2 id="elementor-navigator__header__title"><?php echo $is_app_bar_active ? esc_html__( 'Structure', 'elementor' ) : esc_html__( 'Navigator', 'elementor' ); ?></h2> | |
| 39 | + <button id="elementor-navigator__close" aria-label="<?php echo $is_app_bar_active ? esc_attr__( 'Close structure', 'elementor' ) : esc_attr__( 'Close navigator', 'elementor' ); ?>"> | |
| 37 | 40 | <i class="eicon-close" aria-hidden="true"></i> |
| 38 | 41 | </button> |
| 39 | 42 | </div> |
| 40 | 43 | <div id="elementor-navigator__elements" |
| @@ -54,9 +57,13 @@ | ||
| 54 | 57 | <?php endif; ?> |
| 55 | 58 | |
| 56 | 59 | <div id="elementor-navigator__footer__resize-bar"> |
| 57 | 60 | <i class="eicon-ellipsis-h" aria-hidden="true"></i> |
| 58 | - <span class="elementor-screen-only"><?php echo esc_html__( 'Resize structure', 'elementor' ); ?></span> | |
| 61 | + <span class="elementor-screen-only"><?php | |
| 62 | + echo $is_app_bar_active | |
| 63 | + ? esc_html__( 'Resize structure', 'elementor' ) | |
| 64 | + : esc_html__( 'Resize navigator', 'elementor' ); | |
| 65 | + ?></span> | |
| 59 | 66 | </div> |
| 60 | 67 | </div> |
| 61 | 68 | </script> |
| 62 | 69 | |