PluginProbe
Elementor Website Builder – more than just a page builder / 3.6.6
Elementor Website Builder – more than just a page builder v3.6.6
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 +18 -85 4.3.0-beta23.6.6 View file →
@@ -1,75 +1,38 @@
1 1 <?php
2 2 namespace Elementor;
3 3
4 -use Elementor\Core\Utils\Hints;
5 -use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager;
6 -use Elementor\Utils;
7 -
8 4 if ( ! defined( 'ABSPATH' ) ) {
9 5 exit; // Exit if accessed directly.
10 6 }
11 7 ?>
12 8 <script type="text/template" id="tmpl-elementor-panel-elements">
13 - <# if ( $e.components.get( 'document/elements' ).utils.allowAddingWidgets()) { #>
14 9 <div id="elementor-panel-elements-navigation" class="elementor-panel-navigation">
15 - <button class="elementor-component-tab elementor-panel-navigation-tab" data-tab="categories"><?php echo esc_html__( 'Elements', 'elementor' ); ?></button>
16 - <button class="elementor-component-tab elementor-panel-navigation-tab" data-tab="global"><?php echo esc_html__( 'Globals', 'elementor' ); ?></button>
10 + <div class="elementor-component-tab elementor-panel-navigation-tab" data-tab="categories"><?php echo esc_html__( 'Elements', 'elementor' ); ?></div>
11 + <div class="elementor-component-tab elementor-panel-navigation-tab" data-tab="global"><?php echo esc_html__( 'Global', 'elementor' ); ?></div>
17 12 </div>
18 - <# } #>
19 13 <div id="elementor-panel-elements-search-area"></div>
20 - <div id="elementor-panel-elements-notice-area"></div>
21 14 <div id="elementor-panel-elements-wrapper"></div>
22 - <div id="elementor-panel-elements-widget-creation-area"></div>
23 15 </script>
24 16
25 17 <script type="text/template" id="tmpl-elementor-panel-categories">
26 18 <div id="elementor-panel-categories"></div>
27 - <?php
28 - $has_pro = Utils::has_pro();
29 - $get_pro_details = apply_filters( 'elementor/editor/panel/get_pro_details', [
30 - 'link' => 'https://go.elementor.com/pro-widgets/',
31 - 'message' => __( 'Get more with Elementor Pro', 'elementor' ),
32 - 'button_text' => __( 'Upgrade Now', 'elementor' ),
33 - 'show_banner' => ! $has_pro,
34 - ] );
35 - $promotion_data_sticky = Filtered_Promotions_Manager::get_editor_panel_sticky_promotion();
36 - ?>
37 - <?php if ( $get_pro_details['show_banner'] ) : ?>
19 +
38 20 <div id="elementor-panel-get-pro-elements" class="elementor-nerd-box">
39 - <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' ); ?>" />
40 - <div class="elementor-nerd-box-message"><?php echo esc_html( $get_pro_details['message'] ); ?></div>
41 - <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>
21 + <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/go-pro.svg'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" />
22 + <div class="elementor-nerd-box-message"><?php echo esc_html__( 'Get more with Elementor Pro', 'elementor' ); ?></div>
23 + <a class="elementor-button elementor-button-default elementor-nerd-box-link" target="_blank" href="https://go.elementor.com/pro-widgets/"><?php echo esc_html__( 'Upgrade Now', 'elementor' ); ?></a>
42 24 </div>
43 - <?php endif; ?>
44 - <?php if ( ! $has_pro ) : ?>
45 - <?php require __DIR__ . '/panel-elements-sticky-promotion.php'; ?>
46 - <?php endif; ?>
47 25 </script>
48 26
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; ?>
27 +<script type="text/template" id="tmpl-elementor-panel-elements-category">
28 + <div class="elementor-panel-category-title">{{{ title }}}</div>
29 + <div class="elementor-panel-category-items elementor-responsive-panel"></div>
53 30 </script>
54 31
55 -<script type="text/template" id="tmpl-elementor-panel-elements-category">
56 - <button class="elementor-panel-heading elementor-panel-category-title">
57 - <span class="elementor-panel-heading-toggle">
58 - <i class="eicon-caret-right" aria-hidden="true"></i>
59 - </span>
60 - <span class="elementor-panel-heading-title">{{{ title }}}</span>
61 - <?php do_action( 'elementor/editor/templates/panel/category' ); ?>
62 - <# if ( 'undefined' !== typeof promotion && promotion ) { #>
63 - <span class="elementor-panel-heading-promotion">
64 - <a href="{{{ promotion.url }}}" target="_blank">
65 - <i class="eicon-upgrade-crown-full"></i>{{{ promotion.text || <?php echo wp_json_encode( __( 'Upgrade', 'elementor' ) ); ?> }}}
66 - </a>
67 - </span>
68 - <# } #>
69 - </button>
70 - <div class="elementor-panel-category-items elementor-responsive-panel">
71 - <?php do_action( 'elementor/editor/templates/panel/category/content' ); ?>
32 +<script type="text/template" id="tmpl-elementor-panel-elements-category-empty">
33 + <div class="elementor-panel-category-items-empty elementor-panel-alert elementor-panel-alert-info">
34 + <?php echo esc_html__( 'For easy access, favorite the widgets you use most often by right clicking > Add to Favorites.', 'elementor' ); ?>
72 35 </div>
73 36 </script>
74 37
75 38 <script type="text/template" id="tmpl-elementor-panel-element-search">
@@ -78,55 +41,25 @@
78 41 <i class="eicon-search-bold" aria-hidden="true"></i>
79 42 </script>
80 43
81 44 <script type="text/template" id="tmpl-elementor-element-library-element">
82 - <# const v4Categories = ['v4-elements', 'atomic-form']; #>
83 - <button class="elementor-element" data-library-element-type="{{ elType === 'widget' ? widgetType : elType }}">
84 - <# if ( obj.integration ) { #>
85 - <i class="eicon-plug"></i>
86 - <# } else if ( false === obj.editable ) { #>
45 + <div class="elementor-element">
46 + <# if ( false === obj.editable ) { #>
87 47 <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 48 <# } #>
95 49 <div class="icon">
96 50 <i class="{{ icon }}" aria-hidden="true"></i>
97 51 </div>
98 - <div class="title-wrapper">
52 + <div class="elementor-element-title-wrapper">
99 53 <div class="title">{{{ title }}}</div>
100 54 </div>
101 - </button>
55 + </div>
102 56 </script>
103 57
104 -<?php
105 -$widget_creation_cta_text = Hints::is_plugin_active( 'angie' )
106 - ? __( 'Create custom widget', 'elementor' )
107 - : __( 'Try for free', 'elementor' );
108 -?>
109 -<script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-empty-state">
110 - <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( 'No widget found for', 'elementor' ); ?> "{{{ searchTerm }}}"</div>
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>
112 - <?php if ( current_user_can( 'manage_options' ) ) : ?>
113 - <button type="button" class="elementor-panel-elements-widget-creation__cta"><?php echo esc_html( $widget_creation_cta_text ); ?></button>
114 - <?php endif; ?>
115 -</script>
116 -
117 -<script type="text/template" id="tmpl-elementor-panel-elements-widget-creation-search-footer">
118 - <div class="elementor-panel-elements-widget-creation__title"><?php echo esc_html__( "Couldn't find what you're looking for?", 'elementor' ); ?></div>
119 - <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>
120 - <?php if ( current_user_can( 'manage_options' ) ) : ?>
121 - <button type="button" class="elementor-panel-elements-widget-creation__cta"><?php echo esc_html( $widget_creation_cta_text ); ?></button>
122 - <?php endif; ?>
123 -</script>
124 -
125 58 <script type="text/template" id="tmpl-elementor-panel-global">
126 59 <div class="elementor-nerd-box">
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' ); ?>" />
60 + <img class="elementor-nerd-box-icon" src="<?php echo ELEMENTOR_ASSETS_URL . 'images/information.svg'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" />
128 61 <div class="elementor-nerd-box-title"><?php echo esc_html__( 'Meet Our Global Widget', 'elementor' ); ?></div>
129 62 <div class="elementor-nerd-box-message"><?php echo esc_html__( 'With this feature, you can save a widget as global, then add it to multiple areas. All areas will be editable from one single place.', 'elementor' ); ?></div>
130 - <a class="elementor-button go-pro" target="_blank" href="https://go.elementor.com/pro-global/"><?php echo esc_html__( 'Upgrade Now', 'elementor' ); ?></a>
63 + <a class="elementor-button elementor-button-default elementor-nerd-box-link" target="_blank" href="https://go.elementor.com/pro-global/"><?php echo esc_html__( 'Upgrade Now', 'elementor' ); ?></a>
131 64 </div>
132 65 </script>