PluginProbe
Elementor Website Builder – more than just a page builder / 3.20.2
Elementor Website Builder – more than just a page builder v3.20.2
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 4.0.7 All 451 releases
← All changes | includes/editor-templates/panel-elements.php +12 -49 4.1.33.20.2 View file →
@@ -1,10 +1,9 @@
1 1 <?php
2 2 namespace Elementor;
3 3
4 -use Elementor\Core\Utils\Hints;
4 +use Elementor\Utils;
5 5 use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager;
6 -use Elementor\Utils;
7 6
8 7 if ( ! defined( 'ABSPATH' ) ) {
9 8 exit; // Exit if accessed directly.
10 9 }
@@ -9,51 +8,42 @@
9 8 exit; // Exit if accessed directly.
10 9 }
11 10 ?>
12 11 <script type="text/template" id="tmpl-elementor-panel-elements">
13 - <# if ( $e.components.get( 'document/elements' ).utils.allowAddingWidgets()) { #>
14 12 <div id="elementor-panel-elements-navigation" class="elementor-panel-navigation">
15 13 <button class="elementor-component-tab elementor-panel-navigation-tab" data-tab="categories"><?php echo esc_html__( 'Elements', 'elementor' ); ?></button>
16 14 <button class="elementor-component-tab elementor-panel-navigation-tab" data-tab="global"><?php echo esc_html__( 'Globals', 'elementor' ); ?></button>
17 15 </div>
18 - <# } #>
19 16 <div id="elementor-panel-elements-search-area"></div>
20 17 <div id="elementor-panel-elements-notice-area"></div>
21 18 <div id="elementor-panel-elements-wrapper"></div>
22 - <div id="elementor-panel-elements-widget-creation-area"></div>
23 19 </script>
24 20
25 21 <script type="text/template" id="tmpl-elementor-panel-categories">
26 22 <div id="elementor-panel-categories"></div>
27 23 <?php
28 - $has_pro = Utils::has_pro();
29 24 $get_pro_details = apply_filters( 'elementor/editor/panel/get_pro_details', [
30 25 'link' => 'https://go.elementor.com/pro-widgets/',
31 26 'message' => __( 'Get more with Elementor Pro', 'elementor' ),
32 27 'button_text' => __( 'Upgrade Now', 'elementor' ),
33 - 'show_banner' => ! $has_pro,
34 28 ] );
35 29 $promotion_data_sticky = [
36 30 'url' => 'https://go.elementor.com/go-pro-sticky-widget-panel/',
37 - 'message' => __( 'Access all Pro widgets.', 'elementor' ),
31 + 'message' => __( 'Access all Pro widgets. ', 'elementor' ),
38 32 'button_text' => __( 'Upgrade Now', 'elementor' ),
39 33 ];
40 34 $promotion_data_sticky = Filtered_Promotions_Manager::get_filtered_promotion_data( $promotion_data_sticky, 'elementor/editor/panel/get_pro_details-sticky', 'url' );
35 + $has_pro = Utils::has_pro();
41 36 ?>
42 - <?php if ( $get_pro_details['show_banner'] ) : ?>
43 37 <div id="elementor-panel-get-pro-elements" class="elementor-nerd-box">
44 38 <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/go-pro.svg'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" loading="lazy" alt="<?php echo esc_attr__( 'Upgrade', 'elementor' ); ?>" />
45 39 <div class="elementor-nerd-box-message"><?php echo esc_html( $get_pro_details['message'] ); ?></div>
46 40 <a class="elementor-button go-pro" target="_blank" href="<?php echo esc_url( $get_pro_details['link'] ); ?>"><?php echo esc_html( $get_pro_details['button_text'] ); ?></a>
47 41 </div>
48 - <?php endif; ?>
49 42 <?php if ( ! $has_pro ) : ?>
50 43 <div id="elementor-panel-get-pro-elements-sticky">
51 44 <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/unlock-sticky.svg'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" loading="lazy" alt="<?php echo esc_attr__( 'Upgrade', 'elementor' ); ?>"/>
52 - <div class="elementor-get-pro-sticky-message">
53 - <?php echo esc_html( $promotion_data_sticky['message'] ); ?>
54 - <a target="_blank" href="<?php echo esc_url( $promotion_data_sticky['url'] ); ?>"><?php echo esc_html( $promotion_data_sticky['button_text'] ); ?></a>
55 - </div>
45 + <div class="elementor-get-pro-sticky-message"><?php echo esc_html( $promotion_data_sticky['message'] ); ?><a target="_blank" href="<?php echo esc_url( $promotion_data_sticky['url'] ); ?>"><?php echo esc_html( $promotion_data_sticky['button_text'] ); ?></a></div>
56 46 </div>
57 47 <?php endif; ?>
58 48 </script>
59 49
@@ -59,12 +49,11 @@
59 49
60 50 <script type="text/template" id="tmpl-elementor-panel-elements-category">
61 51 <button class="elementor-panel-heading elementor-panel-category-title">
62 52 <span class="elementor-panel-heading-toggle">
63 - <i class="eicon-caret-right" aria-hidden="true"></i>
53 + <i class="eicon" aria-hidden="true"></i>
64 54 </span>
65 55 <span class="elementor-panel-heading-title">{{{ title }}}</span>
66 - <?php do_action( 'elementor/editor/templates/panel/category' ); ?>
67 56 <# if ( 'undefined' !== typeof promotion && promotion ) { #>
68 57 <span class="elementor-panel-heading-promotion">
69 58 <a href="{{{ promotion.url }}}" target="_blank">
70 59 <i class="eicon-upgrade-crown"></i><?php echo esc_html__( 'Upgrade', 'elementor' ); ?>
@@ -71,10 +60,13 @@
71 60 </a>
72 61 </span>
73 62 <# } #>
74 63 </button>
75 - <div class="elementor-panel-category-items elementor-responsive-panel">
76 - <?php do_action( 'elementor/editor/templates/panel/category/content' ); ?>
64 + <div class="elementor-panel-category-items elementor-responsive-panel"></div>
65 +</script>
66 +
67 +<script type="text/template" id="tmpl-elementor-panel-elements-notice">
68 + <div class="elementor-panel-notice">
77 69 </div>
78 70 </script>
79 71
80 72 <script type="text/template" id="tmpl-elementor-panel-element-search">
@@ -83,18 +75,12 @@
83 75 <i class="eicon-search-bold" aria-hidden="true"></i>
84 76 </script>
85 77
86 78 <script type="text/template" id="tmpl-elementor-element-library-element">
87 - <# const v4Categories = ['v4-elements', 'atomic-form']; #>
88 - <button class="elementor-element" data-library-element-type="{{ elType === 'widget' ? widgetType : elType }}">
89 - <# if ( obj.integration ) { #>
90 - <i class="eicon-plug"></i>
91 - <# } else if ( false === obj.editable && !obj.atomicFormPromotion && !obj.birthdayEasterEgg ) { #>
79 + <button class="elementor-element">
80 + <# if ( false === obj.editable ) { #>
92 81 <i class="eicon-lock"></i>
93 82 <# } #>
94 - <# if ( !obj.birthdayEasterEgg && obj.categories.some( category => v4Categories.includes( category ) ) ) { #>
95 - <i class="eicon-atomic"></i>
96 - <# } #>
97 83 <div class="icon">
98 84 <i class="{{ icon }}" aria-hidden="true"></i>
99 85 </div>
100 86 <div class="title-wrapper">
@@ -101,31 +87,8 @@
101 87 <div class="title">{{{ title }}}</div>
102 88 </div>
103 89 </button>
104 90 </script>
105 -
106 -<?php if ( Plugin::$instance->experiments->is_feature_active( Modules\WidgetCreation\Module::EXPERIMENT_NAME ) ) : ?>
107 - <?php
108 - $widget_creation_cta_text = Hints::is_plugin_active( 'angie' )
109 - ? __( 'Create custom widget', 'elementor' )
110 - : __( 'Try for free', 'elementor' );
111 - ?>
112 -<script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-empty-state">
113 - <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( 'No widget found for', 'elementor' ); ?> "{{{ searchTerm }}}"</div>
114 - <div class="elementor-panel-elements-widget-creation__message"><?php echo esc_html__( 'Build a custom widget with Angie by describing what you need.', 'elementor' ); ?></div>
115 - <?php if ( current_user_can( 'manage_options' ) ) : ?>
116 - <button type="button" class="elementor-panel-elements-widget-creation__cta"><?php echo esc_html( $widget_creation_cta_text ); ?></button>
117 - <?php endif; ?>
118 -</script>
119 -
120 -<script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-search-footer">
121 - <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( "Couldn't find what you're looking for?", 'elementor' ); ?></div>
122 - <div class="elementor-panel-elements-widget-creation__message"><?php echo esc_html__( 'Build a custom widget with Angie by describing what you need.', 'elementor' ); ?></div>
123 - <?php if ( current_user_can( 'manage_options' ) ) : ?>
124 - <button type="button" class="elementor-panel-elements-widget-creation__cta"><?php echo esc_html( $widget_creation_cta_text ); ?></button>
125 - <?php endif; ?>
126 -</script>
127 -<?php endif; ?>
128 91
129 92 <script type="text/template" id="tmpl-elementor-panel-global">
130 93 <div class="elementor-nerd-box">
131 94 <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/information.svg'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" loading="lazy" alt="<?php echo esc_attr__( 'Elementor', 'elementor' ); ?>" />