PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.7
Elementor Website Builder – more than just a page builder v3.35.7
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 +5 -32 4.1.23.35.7 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 }
@@ -18,9 +17,8 @@
18 17 <# } #>
19 18 <div id="elementor-panel-elements-search-area"></div>
20 19 <div id="elementor-panel-elements-notice-area"></div>
21 20 <div id="elementor-panel-elements-wrapper"></div>
22 - <div id="elementor-panel-elements-widget-creation-area"></div>
23 21 </script>
24 22
25 23 <script type="text/template" id="tmpl-elementor-panel-categories">
26 24 <div id="elementor-panel-categories"></div>
@@ -71,11 +69,9 @@
71 69 </a>
72 70 </span>
73 71 <# } #>
74 72 </button>
75 - <div class="elementor-panel-category-items elementor-responsive-panel">
76 - <?php do_action( 'elementor/editor/templates/panel/category/content' ); ?>
77 - </div>
73 + <div class="elementor-panel-category-items elementor-responsive-panel"></div>
78 74 </script>
79 75
80 76 <script type="text/template" id="tmpl-elementor-panel-element-search">
81 77 <label for="elementor-panel-elements-search-input" class="screen-reader-text"><?php echo esc_html__( 'Search Widget:', 'elementor' ); ?></label>
@@ -84,15 +80,15 @@
84 80 </script>
85 81
86 82 <script type="text/template" id="tmpl-elementor-element-library-element">
87 83 <# const v4Categories = ['v4-elements', 'atomic-form']; #>
88 - <button class="elementor-element" data-library-element-type="{{ elType === 'widget' ? widgetType : elType }}">
84 + <button class="elementor-element">
89 85 <# if ( obj.integration ) { #>
90 86 <i class="eicon-plug"></i>
91 - <# } else if ( false === obj.editable && !obj.atomicFormPromotion && !obj.birthdayEasterEgg ) { #>
87 + <# } else if ( false === obj.editable ) { #>
92 88 <i class="eicon-lock"></i>
93 89 <# } #>
94 - <# if ( !obj.birthdayEasterEgg && obj.categories.some( category => v4Categories.includes( category ) ) ) { #>
90 + <# if ( obj.categories.some( category => v4Categories.includes( category ) ) ) { #>
95 91 <i class="eicon-atomic"></i>
96 92 <# } #>
97 93 <div class="icon">
98 94 <i class="{{ icon }}" aria-hidden="true"></i>
@@ -101,31 +97,8 @@
101 97 <div class="title">{{{ title }}}</div>
102 98 </div>
103 99 </button>
104 100 </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 101
129 102 <script type="text/template" id="tmpl-elementor-panel-global">
130 103 <div class="elementor-nerd-box">
131 104 <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' ); ?>" />