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 +17 -11 4.2.34.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,11 +87,12 @@
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 ) ) ) { #>
93 + <# } #>
94 + <# if ( obj.categories.some( category => v4Categories.includes( category ) ) ) { #>
89 95 <i class="eicon-atomic"></i>
90 96 <# } #>
91 97 <div class="icon">
92 98 <i class="{{ icon }}" aria-hidden="true"></i>