| @@ -85,9 +85,13 @@ | ||
| 85 | 85 | <i class="eicon-plug"></i> |
| 86 | 86 | <# } else if ( false === obj.editable ) { #> |
| 87 | 87 | <i class="eicon-lock"></i> |
| 88 | 88 | <# } else if ( obj.categories.some( category => v4Categories.includes( category ) ) ) { #> |
| 89 | - <i class="eicon-atomic"></i> | |
| 89 | + <# if ( obj.isNew ) { #> | |
| 90 | + <span class="e-widget-new-badge" aria-label="<?php echo esc_attr__( 'New', 'elementor' ); ?>"><?php echo esc_html__( 'New', 'elementor' ); ?></span> | |
| 91 | + <# } else { #> | |
| 92 | + <i class="eicon-atomic"></i> | |
| 93 | + <# } #> | |
| 90 | 94 | <# } #> |
| 91 | 95 | <div class="icon"> |
| 92 | 96 | <i class="{{ icon }}" aria-hidden="true"></i> |
| 93 | 97 | </div> |
| @@ -96,14 +100,13 @@ | ||
| 96 | 100 | </div> |
| 97 | 101 | </button> |
| 98 | 102 | </script> |
| 99 | 103 | |
| 100 | -<?php if ( Plugin::$instance->experiments->is_feature_active( Modules\WidgetCreation\Module::EXPERIMENT_NAME ) ) : ?> | |
| 101 | - <?php | |
| 102 | - $widget_creation_cta_text = Hints::is_plugin_active( 'angie' ) | |
| 103 | - ? __( 'Create custom widget', 'elementor' ) | |
| 104 | - : __( 'Try for free', 'elementor' ); | |
| 105 | - ?> | |
| 104 | +<?php | |
| 105 | +$widget_creation_cta_text = Hints::is_plugin_active( 'angie' ) | |
| 106 | + ? __( 'Create custom widget', 'elementor' ) | |
| 107 | + : __( 'Try for free', 'elementor' ); | |
| 108 | +?> | |
| 106 | 109 | <script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-empty-state"> |
| 107 | 110 | <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( 'No widget found for', 'elementor' ); ?> "{{{ searchTerm }}}"</div> |
| 108 | 111 | <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 | 112 | <?php if ( current_user_can( 'manage_options' ) ) : ?> |
| @@ -117,9 +120,8 @@ | ||
| 117 | 120 | <?php if ( current_user_can( 'manage_options' ) ) : ?> |
| 118 | 121 | <button type="button" class="elementor-panel-elements-widget-creation__cta"><?php echo esc_html( $widget_creation_cta_text ); ?></button> |
| 119 | 122 | <?php endif; ?> |
| 120 | 123 | </script> |
| 121 | -<?php endif; ?> | |
| 122 | 124 | |
| 123 | 125 | <script type="text/template" id="tmpl-elementor-panel-global"> |
| 124 | 126 | <div class="elementor-nerd-box"> |
| 125 | 127 | <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' ); ?>" /> |