PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.0-dev2
Elementor Website Builder – more than just a page builder v4.0.0-dev2
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-elements.php +10 -14 4.0.94.0.0-dev2 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 }
@@ -87,9 +86,9 @@
87 86 <# const v4Categories = ['v4-elements', 'atomic-form']; #>
88 87 <button class="elementor-element" data-library-element-type="{{ elType === 'widget' ? widgetType : elType }}">
89 88 <# if ( obj.integration ) { #>
90 89 <i class="eicon-plug"></i>
91 - <# } else if ( false === obj.editable && !obj.atomicFormPromotion ) { #>
90 + <# } else if ( false === obj.editable ) { #>
92 91 <i class="eicon-lock"></i>
93 92 <# } #>
94 93 <# if ( obj.categories.some( category => v4Categories.includes( category ) ) ) { #>
95 94 <i class="eicon-atomic"></i>
@@ -103,27 +102,24 @@
103 102 </button>
104 103 </script>
105 104
106 105 <?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 106 <script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-empty-state">
113 107 <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( 'No widget found for', 'elementor' ); ?> "{{{ searchTerm }}}"</div>
114 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>
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; ?>
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>
118 113 </script>
119 114
120 115 <script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-search-footer">
121 116 <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( "Couldn't find what you're looking for?", 'elementor' ); ?></div>
122 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>
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; ?>
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>
126 122 </script>
127 123 <?php endif; ?>
128 124
129 125 <script type="text/template" id="tmpl-elementor-panel-global">