PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.9
Elementor Website Builder – more than just a page builder v4.0.9
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 +13 -9 4.0.74.0.9 View file →
@@ -1,9 +1,10 @@
1 1 <?php
2 2 namespace Elementor;
3 3
4 +use Elementor\Core\Utils\Hints;
5 +use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager;
4 6 use Elementor\Utils;
5 -use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager;
6 7
7 8 if ( ! defined( 'ABSPATH' ) ) {
8 9 exit; // Exit if accessed directly.
9 10 }
@@ -102,24 +103,27 @@
102 103 </button>
103 104 </script>
104 105
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 + ?>
106 112 <script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-empty-state">
107 113 <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( 'No widget found for', 'elementor' ); ?> "{{{ searchTerm }}}"</div>
108 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>
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>
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; ?>
113 118 </script>
114 119
115 120 <script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-search-footer">
116 121 <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( "Couldn't find what you're looking for?", 'elementor' ); ?></div>
117 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>
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>
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; ?>
122 126 </script>
123 127 <?php endif; ?>
124 128
125 129 <script type="text/template" id="tmpl-elementor-panel-global">