PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.8
Elementor Website Builder – more than just a page builder v3.35.8
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
elementor / includes / editor-templates / panel-elements.php

panel-elements.php in Elementor Website Builder – more than just a page builder 3.35.8, at includes/editor-templates/panel-elements.php

110 lines 5.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor;
3
4 use Elementor\Utils;
5 use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit; // Exit if accessed directly.
9 }
10 ?>
11 <script type="text/template" id="tmpl-elementor-panel-elements">
12 <# if ( $e.components.get( 'document/elements' ).utils.allowAddingWidgets()) { #>
13 <div id="elementor-panel-elements-navigation" class="elementor-panel-navigation">
14 <button class="elementor-component-tab elementor-panel-navigation-tab" data-tab="categories"><?php echo esc_html__( 'Elements', 'elementor' ); ?></button>
15 <button class="elementor-component-tab elementor-panel-navigation-tab" data-tab="global"><?php echo esc_html__( 'Globals', 'elementor' ); ?></button>
16 </div>
17 <# } #>
18 <div id="elementor-panel-elements-search-area"></div>
19 <div id="elementor-panel-elements-notice-area"></div>
20 <div id="elementor-panel-elements-wrapper"></div>
21 </script>
22
23 <script type="text/template" id="tmpl-elementor-panel-categories">
24 <div id="elementor-panel-categories"></div>
25 <?php
26 $has_pro = Utils::has_pro();
27 $get_pro_details = apply_filters( 'elementor/editor/panel/get_pro_details', [
28 'link' => 'https://go.elementor.com/pro-widgets/',
29 'message' => __( 'Get more with Elementor Pro', 'elementor' ),
30 'button_text' => __( 'Upgrade Now', 'elementor' ),
31 'show_banner' => ! $has_pro,
32 ] );
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' );
39 ?>
40 <?php if ( $get_pro_details['show_banner'] ) : ?>
41 <div id="elementor-panel-get-pro-elements" class="elementor-nerd-box">
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' ); ?>" />
43 <div class="elementor-nerd-box-message"><?php echo esc_html( $get_pro_details['message'] ); ?></div>
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>
45 </div>
46 <?php endif; ?>
47 <?php if ( ! $has_pro ) : ?>
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>
55 <?php endif; ?>
56 </script>
57
58 <script type="text/template" id="tmpl-elementor-panel-elements-category">
59 <button class="elementor-panel-heading elementor-panel-category-title">
60 <span class="elementor-panel-heading-toggle">
61 <i class="eicon-caret-right" aria-hidden="true"></i>
62 </span>
63 <span class="elementor-panel-heading-title">{{{ title }}}</span>
64 <?php do_action( 'elementor/editor/templates/panel/category' ); ?>
65 <# if ( 'undefined' !== typeof promotion && promotion ) { #>
66 <span class="elementor-panel-heading-promotion">
67 <a href="{{{ promotion.url }}}" target="_blank">
68 <i class="eicon-upgrade-crown"></i><?php echo esc_html__( 'Upgrade', 'elementor' ); ?>
69 </a>
70 </span>
71 <# } #>
72 </button>
73 <div class="elementor-panel-category-items elementor-responsive-panel"></div>
74 </script>
75
76 <script type="text/template" id="tmpl-elementor-panel-element-search">
77 <label for="elementor-panel-elements-search-input" class="screen-reader-text"><?php echo esc_html__( 'Search Widget:', 'elementor' ); ?></label>
78 <input type="search" id="elementor-panel-elements-search-input" placeholder="<?php esc_attr_e( 'Search Widget...', 'elementor' ); ?>" autocomplete="off"/>
79 <i class="eicon-search-bold" aria-hidden="true"></i>
80 </script>
81
82 <script type="text/template" id="tmpl-elementor-element-library-element">
83 <# const v4Categories = ['v4-elements', 'atomic-form']; #>
84 <button class="elementor-element">
85 <# if ( obj.integration ) { #>
86 <i class="eicon-plug"></i>
87 <# } else if ( false === obj.editable ) { #>
88 <i class="eicon-lock"></i>
89 <# } #>
90 <# if ( obj.categories.some( category => v4Categories.includes( category ) ) ) { #>
91 <i class="eicon-atomic"></i>
92 <# } #>
93 <div class="icon">
94 <i class="{{ icon }}" aria-hidden="true"></i>
95 </div>
96 <div class="title-wrapper">
97 <div class="title">{{{ title }}}</div>
98 </div>
99 </button>
100 </script>
101
102 <script type="text/template" id="tmpl-elementor-panel-global">
103 <div class="elementor-nerd-box">
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' ); ?>" />
105 <div class="elementor-nerd-box-title"><?php echo esc_html__( 'Meet Our Global Widget', 'elementor' ); ?></div>
106 <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>
107 <a class="elementor-button go-pro" target="_blank" href="https://go.elementor.com/pro-global/"><?php echo esc_html__( 'Upgrade Now', 'elementor' ); ?></a>
108 </div>
109 </script>
110