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