| @@ -1,12 +1,14 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor; |
| 3 | 3 | |
| 4 | -use Elementor\Utils; | |
| 4 | +use Elementor\Core\Editor\Editor; | |
| 5 | 5 | |
| 6 | 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | - exit; // Exit if accessed directly. | |
| 7 | + exit; // Exit if accessed directly | |
| 8 | 8 | } |
| 9 | + | |
| 10 | +$is_editor_v2_active = Plugin::$instance->experiments->is_feature_active( Editor::EDITOR_V2_EXPERIMENT_NAME ); | |
| 9 | 11 | ?> |
| 10 | 12 | <script type="text/template" id="tmpl-elementor-hotkeys"> |
| 11 | 13 | <# var ctrlLabel = environment.mac ? '⌘' : 'Ctrl'; #> |
| 12 | 14 | <div id="elementor-hotkeys__content"> |
| @@ -81,19 +83,8 @@ | ||
| 81 | 83 | <kbd>S</kbd> |
| 82 | 84 | </div> |
| 83 | 85 | </li> |
| 84 | 86 | |
| 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 | 87 | </ul> |
| 97 | 88 | |
| 98 | 89 | </div> |
| 99 | 90 | |
| @@ -127,9 +118,13 @@ | ||
| 127 | 118 | </div> |
| 128 | 119 | </li> |
| 129 | 120 | |
| 130 | 121 | <li class="elementor-hotkeys__item"> |
| 131 | - <div class="elementor-hotkeys__item--label"><?php echo esc_html__( 'Structure', 'elementor' ); ?></div> | |
| 122 | + <div class="elementor-hotkeys__item--label"><?php | |
| 123 | + echo $is_editor_v2_active | |
| 124 | + ? esc_html__( 'Structure', 'elementor' ) | |
| 125 | + : esc_html__( 'Navigator', 'elementor' ); | |
| 126 | + ?></div> | |
| 132 | 127 | <div class="elementor-hotkeys__item--shortcut"> |
| 133 | 128 | <kbd>{{{ ctrlLabel }}}</kbd> |
| 134 | 129 | <kbd>I</kbd> |
| 135 | 130 | </div> |
| @@ -189,9 +184,9 @@ | ||
| 189 | 184 | <kbd>L</kbd> |
| 190 | 185 | </div> |
| 191 | 186 | </li> |
| 192 | 187 | |
| 193 | - <?php if ( Utils::has_pro() ) : ?> | |
| 188 | + <?php if ( Plugin::$instance->experiments->is_feature_active( 'notes' ) ) : ?> | |
| 194 | 189 | <li class="elementor-hotkeys__item"> |
| 195 | 190 | <div class="elementor-hotkeys__item--label"><?php echo esc_html__( 'Notes', 'elementor' ); ?></div> |
| 196 | 191 | <div class="elementor-hotkeys__item--shortcut"> |
| 197 | 192 | <kbd>Shift</kbd> |