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 +25 -21 4.3.0-beta34.0.9 View file →
@@ -31,9 +31,14 @@
31 31 'message' => __( 'Get more with Elementor Pro', 'elementor' ),
32 32 'button_text' => __( 'Upgrade Now', 'elementor' ),
33 33 'show_banner' => ! $has_pro,
34 34 ] );
35 - $promotion_data_sticky = Filtered_Promotions_Manager::get_editor_panel_sticky_promotion();
35 + $promotion_data_sticky = [
36 + 'url' => 'https://go.elementor.com/go-pro-sticky-widget-panel/',
37 + 'message' => __( 'Access all Pro widgets.', 'elementor' ),
38 + 'button_text' => __( 'Upgrade Now', 'elementor' ),
39 + ];
40 + $promotion_data_sticky = Filtered_Promotions_Manager::get_filtered_promotion_data( $promotion_data_sticky, 'elementor/editor/panel/get_pro_details-sticky', 'url' );
36 41 ?>
37 42 <?php if ( $get_pro_details['show_banner'] ) : ?>
38 43 <div id="elementor-panel-get-pro-elements" class="elementor-nerd-box">
39 44 <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/go-pro.svg'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" loading="lazy" alt="<?php echo esc_attr__( 'Upgrade', 'elementor' ); ?>" />
@@ -41,18 +46,18 @@
41 46 <a class="elementor-button go-pro" target="_blank" href="<?php echo esc_url( $get_pro_details['link'] ); ?>"><?php echo esc_html( $get_pro_details['button_text'] ); ?></a>
42 47 </div>
43 48 <?php endif; ?>
44 49 <?php if ( ! $has_pro ) : ?>
45 - <?php require __DIR__ . '/panel-elements-sticky-promotion.php'; ?>
50 + <div id="elementor-panel-get-pro-elements-sticky">
51 + <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/unlock-sticky.svg'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" loading="lazy" alt="<?php echo esc_attr__( 'Upgrade', 'elementor' ); ?>"/>
52 + <div class="elementor-get-pro-sticky-message">
53 + <?php echo esc_html( $promotion_data_sticky['message'] ); ?>
54 + <a target="_blank" href="<?php echo esc_url( $promotion_data_sticky['url'] ); ?>"><?php echo esc_html( $promotion_data_sticky['button_text'] ); ?></a>
55 + </div>
56 + </div>
46 57 <?php endif; ?>
47 58 </script>
48 59
49 -<script type="text/template" id="tmpl-elementor-panel-element-sticky-promotion">
50 - <?php if ( ! $has_pro ) : ?>
51 - <?php require __DIR__ . '/panel-elements-sticky-promotion.php'; ?>
52 - <?php endif; ?>
53 -</script>
54 -
55 60 <script type="text/template" id="tmpl-elementor-panel-elements-category">
56 61 <button class="elementor-panel-heading elementor-panel-category-title">
57 62 <span class="elementor-panel-heading-toggle">
58 63 <i class="eicon-caret-right" aria-hidden="true"></i>
@@ -61,9 +66,9 @@
61 66 <?php do_action( 'elementor/editor/templates/panel/category' ); ?>
62 67 <# if ( 'undefined' !== typeof promotion && promotion ) { #>
63 68 <span class="elementor-panel-heading-promotion">
64 69 <a href="{{{ promotion.url }}}" target="_blank">
65 - <i class="eicon-upgrade-crown-full"></i>{{{ promotion.text || <?php echo wp_json_encode( __( 'Upgrade', 'elementor' ) ); ?> }}}
70 + <i class="eicon-upgrade-crown"></i><?php echo esc_html__( 'Upgrade', 'elementor' ); ?>
66 71 </a>
67 72 </span>
68 73 <# } #>
69 74 </button>
@@ -82,17 +87,14 @@
82 87 <# const v4Categories = ['v4-elements', 'atomic-form']; #>
83 88 <button class="elementor-element" data-library-element-type="{{ elType === 'widget' ? widgetType : elType }}">
84 89 <# if ( obj.integration ) { #>
85 90 <i class="eicon-plug"></i>
86 - <# } else if ( false === obj.editable ) { #>
91 + <# } else if ( false === obj.editable && !obj.atomicFormPromotion ) { #>
87 92 <i class="eicon-lock"></i>
88 - <# } else if ( obj.categories.some( category => v4Categories.includes( category ) ) ) { #>
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 - <# } #>
94 93 <# } #>
94 + <# if ( obj.categories.some( category => v4Categories.includes( category ) ) ) { #>
95 + <i class="eicon-atomic"></i>
96 + <# } #>
95 97 <div class="icon">
96 98 <i class="{{ icon }}" aria-hidden="true"></i>
97 99 </div>
98 100 <div class="title-wrapper">
@@ -100,13 +102,14 @@
100 102 </div>
101 103 </button>
102 104 </script>
103 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 +<?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 + ?>
109 112 <script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-empty-state">
110 113 <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( 'No widget found for', 'elementor' ); ?> "{{{ searchTerm }}}"</div>
111 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>
112 115 <?php if ( current_user_can( 'manage_options' ) ) : ?>
@@ -120,8 +123,9 @@
120 123 <?php if ( current_user_can( 'manage_options' ) ) : ?>
121 124 <button type="button" class="elementor-panel-elements-widget-creation__cta"><?php echo esc_html( $widget_creation_cta_text ); ?></button>
122 125 <?php endif; ?>
123 126 </script>
127 +<?php endif; ?>
124 128
125 129 <script type="text/template" id="tmpl-elementor-panel-global">
126 130 <div class="elementor-nerd-box">
127 131 <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' ); ?>" />