PluginProbe
Elementor Website Builder – more than just a page builder / 3.19.4
Elementor Website Builder – more than just a page builder v3.19.4
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
elementor / includes / editor-templates / navigator.php

navigator.php in Elementor Website Builder – more than just a page builder 3.19.4, at includes/editor-templates/navigator.php

113 lines 4.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor;
3
4 use Elementor\Core\Editor\Editor;
5 use Elementor\Utils;
6 use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager;
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit; // Exit if accessed directly.
10 }
11
12 $is_editor_v2_active = Plugin::$instance->experiments->is_feature_active( Editor::EDITOR_V2_EXPERIMENT_NAME );
13
14 $has_pro = Utils::has_pro();
15 $elements_list_class = '';
16
17 if ( ! $has_pro ) {
18 $promotion_data = [
19 'text' => esc_html__( 'Access all Pro widgets', 'elementor' ),
20 'url_label' => esc_html__( 'Upgrade Now', 'elementor' ),
21 'url' => 'https://go.elementor.com/go-pro-structure-panel/',
22 ];
23
24 $promotion_data = Filtered_Promotions_Manager::get_filtered_promotion_data(
25 $promotion_data,
26 'elementor/navigator/custom_promotion',
27 'url'
28 );
29 $elements_list_class = 'elementor-navigator-list__promotion';
30 }
31
32 ?>
33 <script type="text/template" id="tmpl-elementor-navigator">
34 <div id="elementor-navigator__header">
35 <button id="elementor-navigator__toggle-all" data-elementor-action="expand">
36 <i class="eicon-expand" aria-hidden="true"></i>
37 <span class="elementor-screen-only"><?php esc_html__( 'Expand all elements', 'elementor' ); ?></span>
38 </button>
39 <h2 id="elementor-navigator__header__title"><?php
40 echo $is_editor_v2_active
41 ? esc_html__( 'Structure', 'elementor' )
42 : esc_html__( 'Navigator', 'elementor' );
43 ?></h2>
44 <button id="elementor-navigator__close">
45 <i class="eicon-close" aria-hidden="true"></i>
46 <span class="elementor-screen-only"><?php
47 echo $is_editor_v2_active
48 ? esc_html__( 'Close structure', 'elementor' )
49 : esc_html__( 'Close navigator', 'elementor' );
50 ?></span>
51 </button>
52 </div>
53 <div id="elementor-navigator__elements"
54 <?php if ( ! empty( $elements_list_class ) ) : ?>
55 class="<?php echo esc_attr( $elements_list_class ); ?>"
56 <?php endif; ?>
57 >
58 </div>
59 <div id="elementor-navigator__footer">
60 <?php if ( ! $has_pro && ! empty( $promotion_data ) ) : ?>
61 <div id="elementor-navigator__footer__promotion">
62 <?php echo esc_attr( $promotion_data['text'] ); ?>.
63 <a href="<?php echo esc_url( $promotion_data['url'] ); ?>" target="_blank" class="e-link-promotion"><?php echo esc_attr( $promotion_data['url_label'] ); ?></a>
64 </div>
65 <?php endif; ?>
66
67 <div id="elementor-navigator__footer__resize-bar">
68 <i class="eicon-ellipsis-h" aria-hidden="true"></i>
69 <span class="elementor-screen-only"><?php
70 echo $is_editor_v2_active
71 ? esc_html__( 'Resize structure', 'elementor' )
72 : esc_html__( 'Resize navigator', 'elementor' );
73 ?></span>
74 </div>
75 </div>
76 </script>
77
78 <script type="text/template" id="tmpl-elementor-navigator__elements">
79 <# if ( obj.elType ) { #>
80 <div class="elementor-navigator__item" data-locked="{{ obj.isLocked ? 'true' : 'false' }}" tabindex="0">
81 <div class="elementor-navigator__element__list-toggle">
82 <i class="eicon-sort-down" aria-hidden="true"></i>
83 <span class="elementor-screen-only"><?php echo esc_html__( 'Show/hide inner elements', 'elementor' ); ?></span>
84 </div>
85 <#
86 if ( icon ) { #>
87 <div class="elementor-navigator__element__element-type">
88 <i class="{{{ icon }}}" aria-hidden="true"></i>
89 </div>
90 <# } #>
91 <div class="elementor-navigator__element__title">
92 <span class="elementor-navigator__element__title__text">{{{ title }}}</span>
93 </div>
94 <div class="elementor-navigator__element__toggle">
95 <i class="eicon-preview-medium" aria-hidden="true"></i>
96 <span class="elementor-screen-only"><?php echo esc_html__( 'Show/hide Element', 'elementor' ); ?></span>
97 </div>
98 <div class="elementor-navigator__element__indicators"></div>
99 </div>
100 <# } #>
101 <div class="elementor-navigator__elements"></div>
102 </script>
103
104 <script type="text/template" id="tmpl-elementor-navigator__elements--empty">
105 <div class="elementor-empty-view__title"><?php echo esc_html__( 'Empty', 'elementor' ); ?></div>
106 </script>
107
108 <script type="text/template" id="tmpl-elementor-navigator__root--empty">
109 <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/information.svg'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" loading="lazy" />
110 <div class="elementor-nerd-box-title"><?php echo esc_html__( 'Easy Navigation is Here!', 'elementor' ); ?></div>
111 <div class="elementor-nerd-box-message"><?php echo esc_html__( 'Once you fill your page with content, this window will give you an overview display of all the page elements. This way, you can easily move around any section, column, or widget.', 'elementor' ); ?></div>
112 </script>
113