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

105 lines 5.3 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 $get_pro_details = apply_filters( 'elementor/editor/panel/get_pro_details', [
27 'link' => 'https://go.elementor.com/pro-widgets/',
28 'message' => __( 'Get more with Elementor Pro', 'elementor' ),
29 'button_text' => __( 'Upgrade Now', 'elementor' ),
30 ] );
31 $promotion_data_sticky = [
32 'url' => 'https://go.elementor.com/go-pro-sticky-widget-panel/',
33 'message' => __( 'Access all Pro widgets.', 'elementor' ),
34 'button_text' => __( 'Upgrade Now', 'elementor' ),
35 ];
36 $promotion_data_sticky = Filtered_Promotions_Manager::get_filtered_promotion_data( $promotion_data_sticky, 'elementor/editor/panel/get_pro_details-sticky', 'url' );
37 $has_pro = Utils::has_pro();
38 ?>
39 <div id="elementor-panel-get-pro-elements" class="elementor-nerd-box">
40 <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 <div class="elementor-nerd-box-message"><?php echo esc_html( $get_pro_details['message'] ); ?></div>
42 <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>
43 </div>
44 <?php if ( ! $has_pro ) : ?>
45 <div id="elementor-panel-get-pro-elements-sticky">
46 <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' ); ?>"/>
47 <div class="elementor-get-pro-sticky-message">
48 <?php echo esc_html( $promotion_data_sticky['message'] ); ?>
49 <a target="_blank" href="<?php echo esc_url( $promotion_data_sticky['url'] ); ?>"><?php echo esc_html( $promotion_data_sticky['button_text'] ); ?></a>
50 </div>
51 </div>
52 <?php endif; ?>
53 </script>
54
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" aria-hidden="true"></i>
59 </span>
60 <span class="elementor-panel-heading-title">{{{ title }}}</span>
61 <# if ( 'undefined' !== typeof promotion && promotion ) { #>
62 <span class="elementor-panel-heading-promotion">
63 <a href="{{{ promotion.url }}}" target="_blank">
64 <i class="eicon-upgrade-crown"></i><?php echo esc_html__( 'Upgrade', 'elementor' ); ?>
65 </a>
66 </span>
67 <# } #>
68 </button>
69 <div class="elementor-panel-category-items elementor-responsive-panel"></div>
70 </script>
71
72 <script type="text/template" id="tmpl-elementor-panel-elements-notice">
73 <div class="elementor-panel-notice">
74 </div>
75 </script>
76
77 <script type="text/template" id="tmpl-elementor-panel-element-search">
78 <label for="elementor-panel-elements-search-input" class="screen-reader-text"><?php echo esc_html__( 'Search Widget:', 'elementor' ); ?></label>
79 <input type="search" id="elementor-panel-elements-search-input" placeholder="<?php esc_attr_e( 'Search Widget...', 'elementor' ); ?>" autocomplete="off"/>
80 <i class="eicon-search-bold" aria-hidden="true"></i>
81 </script>
82
83 <script type="text/template" id="tmpl-elementor-element-library-element">
84 <button class="elementor-element">
85 <# if ( false === obj.editable ) { #>
86 <i class="eicon-lock"></i>
87 <# } #>
88 <div class="icon">
89 <i class="{{ icon }}" aria-hidden="true"></i>
90 </div>
91 <div class="title-wrapper">
92 <div class="title">{{{ title }}}</div>
93 </div>
94 </button>
95 </script>
96
97 <script type="text/template" id="tmpl-elementor-panel-global">
98 <div class="elementor-nerd-box">
99 <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' ); ?>" />
100 <div class="elementor-nerd-box-title"><?php echo esc_html__( 'Meet Our Global Widget', 'elementor' ); ?></div>
101 <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>
102 <a class="elementor-button go-pro" target="_blank" href="https://go.elementor.com/pro-global/"><?php echo esc_html__( 'Upgrade Now', 'elementor' ); ?></a>
103 </div>
104 </script>
105