PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.7
Elementor Website Builder – more than just a page builder v3.35.7
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 4.0.7 All 451 releases
← All changes | includes/editor-templates/panel-elements.php +19 -40 4.2.43.35.7 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 }
@@ -18,9 +17,8 @@
18 17 <# } #>
19 18 <div id="elementor-panel-elements-search-area"></div>
20 19 <div id="elementor-panel-elements-notice-area"></div>
21 20 <div id="elementor-panel-elements-wrapper"></div>
22 - <div id="elementor-panel-elements-widget-creation-area"></div>
23 21 </script>
24 22
25 23 <script type="text/template" id="tmpl-elementor-panel-categories">
26 24 <div id="elementor-panel-categories"></div>
@@ -31,9 +29,14 @@
31 29 'message' => __( 'Get more with Elementor Pro', 'elementor' ),
32 30 'button_text' => __( 'Upgrade Now', 'elementor' ),
33 31 'show_banner' => ! $has_pro,
34 32 ] );
35 - $promotion_data_sticky = Filtered_Promotions_Manager::get_editor_panel_sticky_promotion();
33 + $promotion_data_sticky = [
34 + 'url' => 'https://go.elementor.com/go-pro-sticky-widget-panel/',
35 + 'message' => __( 'Access all Pro widgets.', 'elementor' ),
36 + 'button_text' => __( 'Upgrade Now', 'elementor' ),
37 + ];
38 + $promotion_data_sticky = Filtered_Promotions_Manager::get_filtered_promotion_data( $promotion_data_sticky, 'elementor/editor/panel/get_pro_details-sticky', 'url' );
36 39 ?>
37 40 <?php if ( $get_pro_details['show_banner'] ) : ?>
38 41 <div id="elementor-panel-get-pro-elements" class="elementor-nerd-box">
39 42 <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 +44,18 @@
41 44 <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 45 </div>
43 46 <?php endif; ?>
44 47 <?php if ( ! $has_pro ) : ?>
45 - <?php require __DIR__ . '/panel-elements-sticky-promotion.php'; ?>
48 + <div id="elementor-panel-get-pro-elements-sticky">
49 + <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' ); ?>"/>
50 + <div class="elementor-get-pro-sticky-message">
51 + <?php echo esc_html( $promotion_data_sticky['message'] ); ?>
52 + <a target="_blank" href="<?php echo esc_url( $promotion_data_sticky['url'] ); ?>"><?php echo esc_html( $promotion_data_sticky['button_text'] ); ?></a>
53 + </div>
54 + </div>
46 55 <?php endif; ?>
47 56 </script>
48 57
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 58 <script type="text/template" id="tmpl-elementor-panel-elements-category">
56 59 <button class="elementor-panel-heading elementor-panel-category-title">
57 60 <span class="elementor-panel-heading-toggle">
58 61 <i class="eicon-caret-right" aria-hidden="true"></i>
@@ -61,16 +64,14 @@
61 64 <?php do_action( 'elementor/editor/templates/panel/category' ); ?>
62 65 <# if ( 'undefined' !== typeof promotion && promotion ) { #>
63 66 <span class="elementor-panel-heading-promotion">
64 67 <a href="{{{ promotion.url }}}" target="_blank">
65 - <i class="eicon-upgrade-crown-full"></i>{{{ promotion.text || <?php echo wp_json_encode( __( 'Upgrade', 'elementor' ) ); ?> }}}
68 + <i class="eicon-upgrade-crown"></i><?php echo esc_html__( 'Upgrade', 'elementor' ); ?>
66 69 </a>
67 70 </span>
68 71 <# } #>
69 72 </button>
70 - <div class="elementor-panel-category-items elementor-responsive-panel">
71 - <?php do_action( 'elementor/editor/templates/panel/category/content' ); ?>
72 - </div>
73 + <div class="elementor-panel-category-items elementor-responsive-panel"></div>
73 74 </script>
74 75
75 76 <script type="text/template" id="tmpl-elementor-panel-element-search">
76 77 <label for="elementor-panel-elements-search-input" class="screen-reader-text"><?php echo esc_html__( 'Search Widget:', 'elementor' ); ?></label>
@@ -79,14 +80,15 @@
79 80 </script>
80 81
81 82 <script type="text/template" id="tmpl-elementor-element-library-element">
82 83 <# const v4Categories = ['v4-elements', 'atomic-form']; #>
83 - <button class="elementor-element" data-library-element-type="{{ elType === 'widget' ? widgetType : elType }}">
84 + <button class="elementor-element">
84 85 <# if ( obj.integration ) { #>
85 86 <i class="eicon-plug"></i>
86 87 <# } else if ( false === obj.editable ) { #>
87 88 <i class="eicon-lock"></i>
88 - <# } else if ( obj.categories.some( category => v4Categories.includes( category ) ) ) { #>
89 + <# } #>
90 + <# if ( obj.categories.some( category => v4Categories.includes( category ) ) ) { #>
89 91 <i class="eicon-atomic"></i>
90 92 <# } #>
91 93 <div class="icon">
92 94 <i class="{{ icon }}" aria-hidden="true"></i>
@@ -95,31 +97,8 @@
95 97 <div class="title">{{{ title }}}</div>
96 98 </div>
97 99 </button>
98 100 </script>
99 -
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 - ?>
106 -<script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-empty-state">
107 - <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( 'No widget found for', 'elementor' ); ?> "{{{ searchTerm }}}"</div>
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>
109 - <?php if ( current_user_can( 'manage_options' ) ) : ?>
110 - <button type="button" class="elementor-panel-elements-widget-creation__cta"><?php echo esc_html( $widget_creation_cta_text ); ?></button>
111 - <?php endif; ?>
112 -</script>
113 -
114 -<script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-search-footer">
115 - <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( "Couldn't find what you're looking for?", 'elementor' ); ?></div>
116 - <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>
117 - <?php if ( current_user_can( 'manage_options' ) ) : ?>
118 - <button type="button" class="elementor-panel-elements-widget-creation__cta"><?php echo esc_html( $widget_creation_cta_text ); ?></button>
119 - <?php endif; ?>
120 -</script>
121 -<?php endif; ?>
122 101
123 102 <script type="text/template" id="tmpl-elementor-panel-global">
124 103 <div class="elementor-nerd-box">
125 104 <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' ); ?>" />