| @@ -1,12 +1,15 @@ | ||
| 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 | |
| 6 | 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | - exit; // Exit if accessed directly. | |
| 8 | + exit; // Exit if accessed directly | |
| 8 | 9 | } |
| 10 | + | |
| 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-hotkeys"> |
| 11 | 14 | <# var ctrlLabel = environment.mac ? '⌘' : 'Ctrl'; #> |
| 12 | 15 | <div id="elementor-hotkeys__content"> |
| @@ -81,19 +84,8 @@ | ||
| 81 | 84 | <kbd>S</kbd> |
| 82 | 85 | </div> |
| 83 | 86 | </li> |
| 84 | 87 | |
| 85 | - <?php if ( Utils::has_pro() && Plugin::$instance->experiments->is_feature_active( 'e_atomic_elements' ) ) : ?> | |
| 86 | - <li class="elementor-hotkeys__item"> | |
| 87 | - <div class="elementor-hotkeys__item--label"><?php echo esc_html__( 'Create Component', 'elementor' ); ?></div> | |
| 88 | - <div class="elementor-hotkeys__item--shortcut"> | |
| 89 | - <kbd>{{{ ctrlLabel }}}</kbd> | |
| 90 | - <kbd>Shift</kbd> | |
| 91 | - <kbd>K</kbd> | |
| 92 | - </div> | |
| 93 | - </li> | |
| 94 | - <?php endif ?> | |
| 95 | - | |
| 96 | 88 | </ul> |
| 97 | 89 | |
| 98 | 90 | </div> |
| 99 | 91 | |
| @@ -127,9 +119,13 @@ | ||
| 127 | 119 | </div> |
| 128 | 120 | </li> |
| 129 | 121 | |
| 130 | 122 | <li class="elementor-hotkeys__item"> |
| 131 | - <div class="elementor-hotkeys__item--label"><?php echo esc_html__( 'Structure', 'elementor' ); ?></div> | |
| 123 | + <div class="elementor-hotkeys__item--label"><?php | |
| 124 | + echo $is_app_bar_active | |
| 125 | + ? esc_html__( 'Structure', 'elementor' ) | |
| 126 | + : esc_html__( 'Navigator', 'elementor' ); | |
| 127 | + ?></div> | |
| 132 | 128 | <div class="elementor-hotkeys__item--shortcut"> |
| 133 | 129 | <kbd>{{{ ctrlLabel }}}</kbd> |
| 134 | 130 | <kbd>I</kbd> |
| 135 | 131 | </div> |