PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.6
Elementor Website Builder – more than just a page builder v3.0.6
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
← All changes | includes/editor-templates/panel.php +92 -134 4.2.23.0.6 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2 namespace Elementor;
3 3
4 -use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager;
4 +use Elementor\Core\Responsive\Responsive;
5 5
6 6 if ( ! defined( 'ABSPATH' ) ) {
7 7 exit; // Exit if accessed directly.
8 8 }
@@ -7,13 +7,11 @@
7 7 exit; // Exit if accessed directly.
8 8 }
9 9
10 10 $document = Plugin::$instance->documents->get( Plugin::$instance->editor->get_post_id() );
11 -
12 -$show_editing_panel_sticky_promotion = ! Utils::has_pro() && Plugin::$instance->experiments->is_feature_active( 'e_panel_promotions' );
13 -$editing_panel_sticky_promotion = $show_editing_panel_sticky_promotion ? Filtered_Promotions_Manager::get_editor_panel_sticky_promotion() : [];
14 11 ?>
15 12 <script type="text/template" id="tmpl-elementor-panel">
13 + <div id="elementor-mode-switcher"></div>
16 14 <div id="elementor-panel-state-loading">
17 15 <i class="eicon-loading eicon-animation-spin"></i>
18 16 </div>
19 17 <header id="elementor-panel-header-wrapper"></header>
@@ -18,11 +16,11 @@
18 16 </div>
19 17 <header id="elementor-panel-header-wrapper"></header>
20 18 <main id="elementor-panel-content-wrapper"></main>
21 19 <footer id="elementor-panel-footer">
22 - <div class="elementor-panel-container"></div>
20 + <div class="elementor-panel-container">
21 + </div>
23 22 </footer>
24 - <div id="elementor-mode-switcher"></div>
25 23 </script>
26 24
27 25 <script type="text/template" id="tmpl-elementor-panel-menu">
28 26 <div id="elementor-panel-page-menu-content"></div>
@@ -28,10 +26,10 @@
28 26 <div id="elementor-panel-page-menu-content"></div>
29 27 <# if ( elementor.config.document.panel.needHelpUrl ) { #>
30 28 <div id="elementor-panel__editor__help">
31 29 <a id="elementor-panel__editor__help__link" href="{{{ elementor.config.document.panel.needHelpUrl }}}" target="_blank">
32 - <?php echo esc_html__( 'Need Help', 'elementor' ); ?>
33 - <i class="eicon-help-o" aria-hidden="true"></i>
30 + <?php echo __( 'Need Help', 'elementor' ); ?>
31 + <i class="eicon-help-o"></i>
34 32 </a>
35 33 </div>
36 34 <# } #>
37 35 </script>
@@ -53,71 +51,79 @@
53 51 <a href="{{ link }}" target="{{ target }}"><div class="elementor-panel-menu-item-title">{{{ title }}}</div></a>
54 52 <# } #>
55 53 </script>
56 54
57 -<script type="text/template" id="tmpl-elementor-exit-dialog">
58 - <div><?php echo esc_html__( 'Now you can choose where you want to go on the site from the following options', 'elementor' ); ?></div>
59 - <div>
60 - <?php printf(
61 - /* translators: 1: Opening HTML <a> tag, 2: closing HTML <a> tag. */
62 - esc_html__( 'Any time you can change the settings in %1$sUser Preferences%2$s', 'elementor' ),
63 - '<a id="user-preferences">',
64 - '</a>'
65 - ); ?>
55 +<script type="text/template" id="tmpl-elementor-panel-header">
56 + <div id="elementor-panel-header-menu-button" class="elementor-header-button">
57 + <i class="elementor-icon eicon-menu-bar tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Menu', 'elementor' ); ?>"></i>
58 + <span class="elementor-screen-only"><?php echo __( 'Menu', 'elementor' ); ?></span>
66 59 </div>
67 - <select id="exit-to-preferences"></select> <!-- Adding options by JS -->
60 + <div id="elementor-panel-header-title"></div>
61 + <div id="elementor-panel-header-add-button" class="elementor-header-button">
62 + <i class="elementor-icon eicon-apps tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Widgets Panel', 'elementor' ); ?>"></i>
63 + <span class="elementor-screen-only"><?php echo __( 'Widgets Panel', 'elementor' ); ?></span>
64 + </div>
68 65 </script>
69 66
70 -<script type="text/template" id="tmpl-elementor-panel-header">
71 - <button id="elementor-panel-header-menu-button" class="elementor-header-button" aria-label="<?php echo esc_attr__( 'Menu', 'elementor' ); ?>">
72 - <i class="elementor-icon eicon-menu-bar tooltip-target" aria-hidden="true" data-tooltip="<?php echo esc_attr__( 'Menu', 'elementor' ); ?>"></i>
73 - </button>
74 - <h2 id="elementor-panel-header-title"></h2>
75 - <# const extraClass = $e.components.get( 'document/elements' ).utils.allowAddingWidgets() ? '' : 'elementor-visibility-hidden'; #>
76 - <button id="elementor-panel-header-add-button" class="elementor-header-button {{{ extraClass }}}" aria-label="<?php echo esc_attr__( 'Widgets Panel', 'elementor' ); ?>">
77 - <i class="elementor-icon eicon-apps tooltip-target" aria-hidden="true" data-tooltip="<?php echo esc_attr__( 'Widgets Panel', 'elementor' ); ?>"></i>
78 - </button>
79 -</script>
80 -
81 67 <script type="text/template" id="tmpl-elementor-panel-footer-content">
82 - <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
83 - printf(
84 - /* translators: %s: Document title. */
85 - esc_attr__( '%s Settings', 'elementor' ),
86 - esc_attr( $document::get_title() )
87 - ); ?>">
68 + <div id="elementor-panel-footer-settings" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php esc_attr_e( 'Settings', 'elementor' ); ?>">
88 69 <i class="eicon-cog" aria-hidden="true"></i>
89 - </button>
90 - <# if ( $e.components.get( 'document/elements' ).utils.showNavigator() ) { #>
91 - <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' ); ?>">
70 + <span class="elementor-screen-only"><?php printf( __( '%s Settings', 'elementor' ), $document::get_title() ); ?></span>
71 + </div>
72 + <div id="elementor-panel-footer-navigator" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php esc_attr_e( 'Navigator', 'elementor' ); ?>">
92 73 <i class="eicon-navigator" aria-hidden="true"></i>
93 - </button>
94 - <# } #>
95 - <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' ); ?>">
74 + <span class="elementor-screen-only"><?php echo __( 'Navigator', 'elementor' ); ?></span>
75 + </div>
76 + <div id="elementor-panel-footer-history" class="elementor-panel-footer-tool elementor-leave-open tooltip-target" data-tooltip="<?php esc_attr_e( 'History', 'elementor' ); ?>">
96 77 <i class="eicon-history" aria-hidden="true"></i>
97 - </button>
98 - <button id="elementor-panel-footer-responsive" class="elementor-panel-footer-tool elementor-toggle-state tooltip-target" data-tooltip="<?php echo esc_attr__( 'Responsive Mode', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Responsive Mode', 'elementor' ); ?>">
99 - <i class="eicon-device-responsive" aria-hidden="true"></i>
100 - </button>
101 - <button id="elementor-panel-footer-saver-preview" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php echo esc_attr__( 'Preview Changes', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Preview Changes', 'elementor' ); ?>">
78 + <span class="elementor-screen-only"><?php echo __( 'History', 'elementor' ); ?></span>
79 + </div>
80 + <div id="elementor-panel-footer-responsive" class="elementor-panel-footer-tool elementor-toggle-state">
81 + <i class="eicon-device-desktop tooltip-target" aria-hidden="true" data-tooltip="<?php esc_attr_e( 'Responsive Mode', 'elementor' ); ?>"></i>
82 + <span class="elementor-screen-only">
83 + <?php echo __( 'Responsive Mode', 'elementor' ); ?>
84 + </span>
85 + <div class="elementor-panel-footer-sub-menu-wrapper">
86 + <div class="elementor-panel-footer-sub-menu">
87 + <div class="elementor-panel-footer-sub-menu-item" data-device-mode="desktop">
88 + <i class="elementor-icon eicon-device-desktop" aria-hidden="true"></i>
89 + <span class="elementor-title"><?php echo __( 'Desktop', 'elementor' ); ?></span>
90 + <span class="elementor-description"><?php echo __( 'Default Preview', 'elementor' ); ?></span>
91 + </div>
92 + <div class="elementor-panel-footer-sub-menu-item" data-device-mode="tablet">
93 + <i class="elementor-icon eicon-device-tablet" aria-hidden="true"></i>
94 + <span class="elementor-title"><?php echo __( 'Tablet', 'elementor' ); ?></span>
95 + <?php $breakpoints = Responsive::get_breakpoints(); ?>
96 + <span class="elementor-description"><?php echo sprintf( __( 'Preview for %s', 'elementor' ), $breakpoints['md'] . 'px' ); ?></span>
97 + </div>
98 + <div class="elementor-panel-footer-sub-menu-item" data-device-mode="mobile">
99 + <i class="elementor-icon eicon-device-mobile" aria-hidden="true"></i>
100 + <span class="elementor-title"><?php echo __( 'Mobile', 'elementor' ); ?></span>
101 + <span class="elementor-description"><?php echo sprintf( __( 'Preview for %s', 'elementor' ), '360px' ); ?></span>
102 + </div>
103 + </div>
104 + </div>
105 + </div>
106 + <div id="elementor-panel-footer-saver-preview" class="elementor-panel-footer-tool tooltip-target" data-tooltip="<?php esc_attr_e( 'Preview Changes', 'elementor' ); ?>">
102 107 <span id="elementor-panel-footer-saver-preview-label">
103 108 <i class="eicon-preview-medium" aria-hidden="true"></i>
109 + <span class="elementor-screen-only"><?php echo __( 'Preview Changes', 'elementor' ); ?></span>
104 110 </span>
105 - </button>
111 + </div>
106 112 <div id="elementor-panel-footer-saver-publish" class="elementor-panel-footer-tool">
107 - <# const publishTitle = $e.components.get( 'document/elements' ).utils.getTitleForPublishButton(); #>
108 - <button id="elementor-panel-saver-button-publish" class="elementor-button e-primary elementor-disabled" title="{{{ publishTitle }}}">
113 + <button id="elementor-panel-saver-button-publish" class="elementor-button elementor-button-success elementor-disabled">
109 114 <span class="elementor-state-icon">
110 115 <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i>
111 116 </span>
112 117 <span id="elementor-panel-saver-button-publish-label">
113 - <?php echo esc_html__( 'Publish', 'elementor' ); ?>
118 + <?php echo __( 'Publish', 'elementor' ); ?>
114 119 </span>
115 120 </button>
116 121 </div>
117 122 <div id="elementor-panel-footer-saver-options" class="elementor-panel-footer-tool elementor-toggle-state">
118 - <button id="elementor-panel-saver-button-save-options" class="elementor-button e-primary tooltip-target elementor-disabled" data-tooltip="<?php echo esc_attr__( 'Save Options', 'elementor' ); ?>" data-tooltip-offset="7" aria-label="<?php echo esc_attr__( 'Save Options', 'elementor' ); ?>">
119 - <i class="eicon-chevron-right" aria-hidden="true"></i>
123 + <button id="elementor-panel-saver-button-save-options" class="elementor-button elementor-button-success tooltip-target elementor-disabled" data-tooltip="<?php esc_attr_e( 'Save Options', 'elementor' ); ?>" data-tooltip-offset="7">
124 + <i class="eicon-caret-up" aria-hidden="true"></i>
125 + <span class="elementor-screen-only"><?php echo __( 'Save Options', 'elementor' ); ?></span>
120 126 </button>
121 127 <div class="elementor-panel-footer-sub-menu-wrapper">
122 128 <p class="elementor-last-edited-wrapper">
123 129 <span class="elementor-state-icon">
@@ -128,20 +134,14 @@
128 134 </p>
129 135 <div class="elementor-panel-footer-sub-menu">
130 136 <div id="elementor-panel-footer-sub-menu-item-save-draft" class="elementor-panel-footer-sub-menu-item elementor-disabled">
131 137 <i class="elementor-icon eicon-save" aria-hidden="true"></i>
132 - <span class="elementor-title"><?php echo esc_html__( 'Save Draft', 'elementor' ); ?></span>
138 + <span class="elementor-title"><?php echo __( 'Save Draft', 'elementor' ); ?></span>
133 139 </div>
134 140 <div id="elementor-panel-footer-sub-menu-item-save-template" class="elementor-panel-footer-sub-menu-item">
135 141 <i class="elementor-icon eicon-folder" aria-hidden="true"></i>
136 - <span class="elementor-title"><?php echo esc_html__( 'Save as Template', 'elementor' ); ?></span>
142 + <span class="elementor-title"><?php echo __( 'Save as Template', 'elementor' ); ?></span>
137 143 </div>
138 - <# if ( $e.components.get( 'document/elements' ).utils.showCopyAndShareButton() ) { #>
139 - <div id="elementor-panel-footer-sub-menu-item-copy-share-link" class="elementor-panel-footer-sub-menu-item">
140 - <i class="elementor-icon eicon-link" aria-hidden="true"></i>
141 - <span class="elementor-title"><?php echo esc_html__( 'Copy and Share Link', 'elementor' ); ?></span>
142 - </div>
143 - <# } #>
144 144 </div>
145 145 </div>
146 146 </div>
147 147 </script>
@@ -146,13 +146,13 @@
146 146 </div>
147 147 </script>
148 148
149 149 <script type="text/template" id="tmpl-elementor-mode-switcher-content">
150 - <label for="elementor-mode-switcher-preview-input" id="elementor-mode-switcher-preview" title="<?php echo esc_attr__( 'Hide Panel', 'elementor' ); ?>">
151 - <i class="eicon eicon-angle-left" aria-hidden="true" tabindex="0"></i>
152 - <span class="elementor-screen-only"><?php echo esc_html__( 'Hide Panel', 'elementor' ); ?></span>
150 + <input id="elementor-mode-switcher-preview-input" type="checkbox">
151 + <label for="elementor-mode-switcher-preview-input" id="elementor-mode-switcher-preview">
152 + <i class="eicon" aria-hidden="true" title="<?php esc_attr_e( 'Hide Panel', 'elementor' ); ?>"></i>
153 + <span class="elementor-screen-only"><?php echo __( 'Hide Panel', 'elementor' ); ?></span>
153 154 </label>
154 - <input id="elementor-mode-switcher-preview-input" type="checkbox">
155 155 </script>
156 156
157 157 <script type="text/template" id="tmpl-editor-content">
158 158 <div class="elementor-panel-navigation">
@@ -161,18 +161,18 @@
161 161 return;
162 162 }
163 163 $e.bc.ensureTab( 'panel/editor', tabSlug );
164 164 #>
165 - <button class="elementor-component-tab elementor-panel-navigation-tab elementor-tab-control-{{ tabSlug }}" data-tab="{{ tabSlug }}">
166 - <span>{{{ tabTitle }}}</span>
167 - </button>
165 + <div class="elementor-component-tab elementor-panel-navigation-tab elementor-tab-control-{{ tabSlug }}" data-tab="{{ tabSlug }}">
166 + <a href="#">{{{ tabTitle }}}</a>
167 + </div>
168 168 <# } ); #>
169 169 </div>
170 170 <# if ( elementData.reload_preview ) { #>
171 171 <div class="elementor-update-preview">
172 - <div class="elementor-update-preview-title"><?php echo esc_html__( 'Update changes to page', 'elementor' ); ?></div>
172 + <div class="elementor-update-preview-title"><?php echo __( 'Update changes to page', 'elementor' ); ?></div>
173 173 <div class="elementor-update-preview-button-wrapper">
174 - <button class="elementor-update-preview-button elementor-button"><?php echo esc_html__( 'Apply', 'elementor' ); ?></button>
174 + <button class="elementor-update-preview-button elementor-button elementor-button-success"><?php echo __( 'Apply', 'elementor' ); ?></button>
175 175 </div>
176 176 </div>
177 177 <# } #>
178 178 <div id="elementor-controls"></div>
@@ -178,51 +178,19 @@
178 178 <div id="elementor-controls"></div>
179 179 <# if ( elementData.help_url ) { #>
180 180 <div id="elementor-panel__editor__help">
181 181 <a id="elementor-panel__editor__help__link" href="{{ elementData.help_url }}" target="_blank">
182 - <?php echo esc_html__( 'Need Help', 'elementor' ); ?>
183 - <i class="eicon-help-o" aria-hidden="true"></i>
182 + <?php echo __( 'Need Help', 'elementor' ); ?>
183 + <i class="eicon-help-o"></i>
184 184 </a>
185 185 </div>
186 186 <# } #>
187 -
188 - <# if ( elementData.upsale_data && elementData.upsale_data.condition ) { #>
189 - <div class="elementor-nerd-box elementor-nerd-box--upsale">
190 - <# if ( elementData.upsale_data.image ) { #>
191 - <img class="elementor-nerd-box-icon" src="{{ elementData.upsale_data.image }}" loading="lazy" alt="{{ elementData.upsale_data.image_alt }}" />
192 - <# } #>
193 - <# if ( elementData.upsale_data.title ) { #>
194 - <div class="elementor-nerd-box-title">{{{ elementData.upsale_data.title }}}</div>
195 - <# } #>
196 - <# if ( elementData.upsale_data.description ) { #>
197 - <div class="elementor-nerd-box-message">{{{ elementData.upsale_data.description }}}</div>
198 - <# } #>
199 - <# if ( elementData.upsale_data.upgrade_url && elementData.upsale_data.upgrade_text ) { #>
200 - <a class="elementor-button go-pro" href="{{ elementData.upsale_data.upgrade_url }}" target="_blank">{{{ elementData.upsale_data.upgrade_text }}}</a>
201 - <# } #>
202 - </div>
203 - <# } #>
204 - <?php if ( $show_editing_panel_sticky_promotion ) : ?>
205 - <div class="elementor-panel-editor-sticky-promotion">
206 - <div class="elementor-get-pro-sticky-message">
207 - <?php echo esc_html( $editing_panel_sticky_promotion['message'] ); ?>
208 - <a target="_blank" href="<?php echo esc_url( $editing_panel_sticky_promotion['url'] ); ?>"><?php echo esc_html( $editing_panel_sticky_promotion['button_text'] ); ?></a>
209 - </div>
210 - </div>
211 - <?php endif; ?>
212 187 </script>
213 188
214 189 <script type="text/template" id="tmpl-elementor-panel-schemes-disabled">
215 - <img class="elementor-nerd-box-icon" src="<?php Utils::print_unescaped_internal_string( ELEMENTOR_ASSETS_URL . 'images/information.svg' ); ?>" loading="lazy" alt="<?php echo esc_attr__( 'Elementor', 'elementor' ); ?>" />
216 - <div class="elementor-nerd-box-title">{{{ '<?php echo esc_html__( '%s are disabled', 'elementor' ); // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment ?>'.replace( '%s', disabledTitle ) }}}</div>
217 - <div class="elementor-nerd-box-message"><?php
218 - printf(
219 - /* translators: %1$s Link open tag, %2$s: Link close tag. */
220 - esc_html__( 'You can enable it from the %1$sElementor settings page%2$s.', 'elementor' ),
221 - '<a href="' . esc_url( Settings::get_url() ) . '" target="_blank">',
222 - '</a>'
223 - );
224 - ?></div>
190 + <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/information.svg'; ?>" />
191 + <div class="elementor-nerd-box-title">{{{ '<?php echo __( '%s are disabled', 'elementor' ); ?>'.replace( '%s', disabledTitle ) }}}</div>
192 + <div class="elementor-nerd-box-message"><?php printf( __( 'You can enable it from the <a href="%s" target="_blank">Elementor settings page</a>.', 'elementor' ), Settings::get_url() ); ?></div>
225 193 </script>
226 194
227 195 <script type="text/template" id="tmpl-elementor-panel-scheme-color-item">
228 196 <div class="elementor-panel-scheme-color-picker-placeholder"></div>
@@ -231,9 +199,9 @@
231 199
232 200 <script type="text/template" id="tmpl-elementor-panel-scheme-typography-item">
233 201 <div class="elementor-panel-heading">
234 202 <div class="elementor-panel-heading-toggle">
235 - <i class="eicon-caret-right" aria-hidden="true"></i>
203 + <i class="eicon" aria-hidden="true"></i>
236 204 </div>
237 205 <div class="elementor-panel-heading-title">{{{ title }}}</div>
238 206 </div>
239 207 <div class="elementor-panel-scheme-typography-items elementor-panel-box-content">
@@ -247,23 +215,23 @@
247 215
248 216 foreach ( $scheme_fields as $option_name => $option ) :
249 217 ?>
250 218 <div class="elementor-panel-scheme-typography-item elementor-control elementor-control-type-select">
251 - <div class="elementor-panel-scheme-item-title elementor-control-title"><?php echo esc_html( $option['label'] ); ?></div>
219 + <div class="elementor-panel-scheme-item-title elementor-control-title"><?php echo $option['label']; ?></div>
252 220 <div class="elementor-panel-scheme-typography-item-value elementor-control-input-wrapper">
253 221 <?php if ( 'select' === $option['type'] ) : ?>
254 222 <select name="<?php echo esc_attr( $option_name ); ?>" class="elementor-panel-scheme-typography-item-field">
255 223 <?php foreach ( $option['options'] as $field_key => $field_value ) : ?>
256 - <option value="<?php echo esc_attr( $field_key ); ?>"><?php echo esc_html( $field_value ); ?></option>
224 + <option value="<?php echo esc_attr( $field_key ); ?>"><?php echo $field_value; ?></option>
257 225 <?php endforeach; ?>
258 226 </select>
259 227 <?php elseif ( 'font' === $option['type'] ) : ?>
260 228 <select name="<?php echo esc_attr( $option_name ); ?>" class="elementor-panel-scheme-typography-item-field">
261 - <option value=""><?php echo esc_html__( 'Default', 'elementor' ); ?></option>
229 + <option value=""><?php echo __( 'Default', 'elementor' ); ?></option>
262 230 <?php foreach ( Fonts::get_font_groups() as $group_type => $group_label ) : ?>
263 231 <optgroup label="<?php echo esc_attr( $group_label ); ?>">
264 232 <?php foreach ( Fonts::get_fonts_by_groups( [ $group_type ] ) as $font_title => $font_type ) : ?>
265 - <option value="<?php echo esc_attr( $font_title ); ?>"><?php echo esc_html( $font_title ); ?></option>
233 + <option value="<?php echo esc_attr( $font_title ); ?>"><?php echo $font_title; ?></option>
266 234 <?php endforeach; ?>
267 235 </optgroup>
268 236 <?php endforeach; ?>
269 237 </select>
@@ -279,21 +247,17 @@
279 247 <script type="text/template" id="tmpl-elementor-control-responsive-switchers">
280 248 <div class="elementor-control-responsive-switchers">
281 249 <div class="elementor-control-responsive-switchers__holder">
282 250 <#
283 - const activeBreakpoints = elementor.config.responsive.activeBreakpoints,
284 - devicesForDisplay = elementor.breakpoints.getActiveBreakpointsList( { largeToSmall: true, withDesktop: true } );
251 + var devices = responsive.devices || [ 'desktop', 'tablet', 'mobile' ];
285 252
286 - var devices = responsive.devices || devicesForDisplay;
287 -
288 253 _.each( devices, function( device ) {
289 - // The 'Desktop' label is made accessible via the global config because it needs to be translated.
290 - var deviceLabel = 'desktop' === device ? '<?php esc_html_e( 'Desktop', 'elementor' ); ?>' : activeBreakpoints[ device ].label,
254 + var deviceLabel = device.charAt(0).toUpperCase() + device.slice(1),
291 255 tooltipDir = "<?php echo is_rtl() ? 'e' : 'w'; ?>";
292 256 #>
293 - <button class="elementor-responsive-switcher tooltip-target elementor-responsive-switcher-{{ device }}" data-device="{{ device }}" data-tooltip="{{ deviceLabel }}" data-tooltip-pos="{{ tooltipDir }}" aria-label="{{ deviceLabel }}">
294 - <i class="{{ elementor.config.responsive.icons_map[ device ] }}" aria-hidden="true"></i>
295 - </button>
257 + <a class="elementor-responsive-switcher tooltip-target elementor-responsive-switcher-{{ device }}" data-device="{{ device }}" data-tooltip="{{ deviceLabel }}" data-tooltip-pos="{{ tooltipDir }}">
258 + <i class="eicon-device-{{ device }}"></i>
259 + </a>
296 260 <# } );
297 261 #>
298 262 </div>
299 263 </div>
@@ -299,19 +263,13 @@
299 263 </div>
300 264 </script>
301 265
302 266 <script type="text/template" id="tmpl-elementor-control-dynamic-switcher">
303 - <button class="elementor-control-dynamic-switcher elementor-control-unit-1" data-tooltip="<?php echo esc_attr__( 'Dynamic Tags', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Dynamic Tags', 'elementor' ); ?>">
304 - <i class="eicon-database" aria-hidden="true"></i>
305 - </button>
267 + <div class="elementor-control-dynamic-switcher elementor-control-unit-1" data-tooltip="<?php echo __( 'Dynamic Tags', 'elementor' ); ?>">
268 + <i class="eicon-database"></i>
269 + </div>
306 270 </script>
307 271
308 -<script type="text/template" id="tmpl-elementor-control-element-color-picker">
309 - <button class="elementor-control-element-color-picker e-control-tool" data-tooltip="<?php echo esc_attr__( 'Color Sampler', 'elementor' ); ?>" aria-label="<?php echo esc_attr__( 'Color Sampler', 'elementor' ); ?>">
310 - <i class="eicon-eyedropper" aria-hidden="true"></i>
311 - </button>
312 -</script>
313 -
314 272 <script type="text/template" id="tmpl-elementor-control-dynamic-cover">
315 273 <div class="elementor-dynamic-cover__settings">
316 274 <i class="eicon-{{ hasSettings ? 'wrench' : 'database' }}"></i>
317 275 </div>
@@ -325,15 +283,15 @@
325 283
326 284 <script type="text/template" id="tmpl-elementor-dynamic-tags-promo">
327 285 <div class="elementor-tags-list__teaser">
328 286 <div class="elementor-tags-list__group-title elementor-tags-list__teaser-title">
329 - <i class="eicon-info-circle"></i><?php echo esc_html__( 'Elementor Dynamic Content', 'elementor' ); ?>
287 + <i class="eicon-info-circle"></i><?php echo __( 'Elementor Dynamic Content', 'elementor' ); ?>
330 288 </div>
331 289 <div class="elementor-tags-list__teaser-text">
332 - <?php echo esc_html__( 'You’re missing out!', 'elementor' ); ?><br />
333 - <?php echo esc_html__( 'Get more dynamic capabilities by incorporating dozens of Elementor\'s native dynamic tags.', 'elementor' ); ?>
334 - <a href="{{{ promotionUrl }}}" class="elementor-tags-list__teaser-link" target="_blank">
335 - <?php echo esc_html__( 'Upgrade', 'elementor' ); ?>
290 + <?php echo __( 'You’re missing out!', 'elementor' ); ?><br />
291 + <?php echo __( 'Get more dynamic capabilities by incorporating dozens of Elementor\'s native dynamic tags.', 'elementor' ); ?>
292 + <a href="{{{ elementor.config.dynamicPromotionURL }}}" class="elementor-tags-list__teaser-link" target="_blank">
293 + <?php echo __( 'See it in action', 'elementor' ); ?>
336 294 </a>
337 295 </div>
338 296 </div>
339 297 </script>