| @@ -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 | } |
| @@ -103,23 +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 | - <button type="button" class="elementor-panel-elements-widget-creation__cta"><?php echo esc_html( $widget_creation_cta_text ); ?></button> | |
| 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> | |
| 116 | 113 | </script> |
| 117 | 114 | |
| 118 | 115 | <script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-search-footer"> |
| 119 | 116 | <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( "Couldn't find what you're looking for?", 'elementor' ); ?></div> |
| 120 | 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> |
| 121 | - <button type="button" class="elementor-panel-elements-widget-creation__cta"><?php echo esc_html( $widget_creation_cta_text ); ?></button> | |
| 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 | 122 | </script> |
| 123 | 123 | <?php endif; ?> |
| 124 | 124 | |
| 125 | 125 | <script type="text/template" id="tmpl-elementor-panel-global"> |