PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.1.13
ShopBuilder – WooCommerce Builder For Elementor v2.1.13
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Elementor/Controls/Select2AjaxControl.php +41 -39 2.1.32.1.13 View file →
@@ -35,32 +35,34 @@
35 35 wp_localize_script(
36 36 'rtsb-editor-script',
37 37 'rtSelect2Obj',
38 38 [
39 - 'ajaxurl' => esc_url( admin_url( 'admin-ajax.php' ) ),
40 - 'search_text' => esc_html__( 'Please Select', 'textdomain' ),
39 + 'ajaxurl' => esc_url( admin_url( 'admin-ajax.php' ) ),
40 + 'search_text' => esc_html__( 'Please Select', 'shopbuilder' ),
41 + 'nonceId' => rtsb()->nonceId,
42 + rtsb()->nonceId => wp_create_nonce( rtsb()->nonceText ),
41 43 ]
42 44 );
43 45 ?>
44 - <style>
45 - .rt-select2-main-wrapper ul.select2-selection__rendered li:last-child {
46 - pointer-events: none;
47 - }
46 + <style>
47 + .rt-select2-main-wrapper ul.select2-selection__rendered li:last-child {
48 + pointer-events: none;
49 + }
48 50
49 - .rt-select2-main-wrapper ul.select2-selection__rendered li:last-child::before {
50 - background: var(--e-a-btn-bg);
51 - content: '+';
52 - padding: 1px 5px;
53 - position: relative;
54 - top: 1px;
55 - margin-right: 5px;
56 - color: #fff;
57 - }
51 + .rt-select2-main-wrapper ul.select2-selection__rendered li:last-child::before {
52 + background: var(--e-a-btn-bg);
53 + content: '+';
54 + padding: 1px 5px;
55 + position: relative;
56 + top: 1px;
57 + margin-right: 5px;
58 + color: #fff;
59 + }
58 60
59 - .rt-select2-main-wrapper ul.select2-selection__rendered li[title=search] {
60 - display: none;
61 - }
62 - </style>
61 + .rt-select2-main-wrapper ul.select2-selection__rendered li[title=search] {
62 + display: none;
63 + }
64 + </style>
63 65 <?php
64 66 }
65 67
66 68 protected function get_default_settings() {
@@ -77,27 +79,27 @@
77 79 public function content_template() {
78 80 $control_uid = $this->get_control_uid();
79 81 ?>
80 82
81 - <# var controlUID = '<?php echo esc_html( $control_uid ); ?>'; #>
82 - <# var currentID = elementor.panel.currentView.currentPageView.model.attributes.settings.attributes[data.name]; #>
83 - <# var maxSelection = (data.maximum_selection_length > 0) ? 'max-select'+data.maximum_selection_length : 'unlimited-select' #>
84 - <div class="elementor-control-field rt-select2-main-wrapper {{maxSelection}}">
85 - <# if ( data.label ) { #>
86 - <label for="<?php echo esc_attr( $control_uid ); ?>" class="elementor-control-title">{{{data.label }}}</label>
87 - <# } #>
88 - <div class="elementor-control-input-wrapper elementor-control-unit-5">
89 - <# var multiple = ( data.multiple ) ? 'multiple' : ''; #>
90 - <select id="<?php echo esc_attr( $control_uid ); ?>" {{ multiple }} class="rt-select2" data-setting="{{ data.name }}"></select>
91 - </div>
92 - <# if ( data.description ) { #>
93 - <div class="elementor-control-field-description rtsb-description">{{{ data.description }}}</div>
94 - <# } #>
95 - </div>
96 - <#
97 - ( function( $ ) {
98 - $( document.body ).trigger( 'rt_select2_event',{currentID:data.controlValue,data:data,controlUID:controlUID,multiple:data.multiple} );
99 - }( jQuery ) );
100 - #>
83 + <# var controlUID = '<?php echo esc_html( $control_uid ); ?>'; #>
84 + <# var currentID = elementor.panel.currentView.currentPageView.model.attributes.settings.attributes[data.name]; #>
85 + <# var maxSelection = (data.maximum_selection_length > 0) ? 'max-select'+data.maximum_selection_length : 'unlimited-select' #>
86 + <div class="elementor-control-field rt-select2-main-wrapper {{maxSelection}}">
87 + <# if ( data.label ) { #>
88 + <label for="<?php echo esc_attr( $control_uid ); ?>" class="elementor-control-title">{{{data.label }}}</label>
89 + <# } #>
90 + <div class="elementor-control-input-wrapper elementor-control-unit-5">
91 + <# var multiple = ( data.multiple ) ? 'multiple' : ''; #>
92 + <select id="<?php echo esc_attr( $control_uid ); ?>" {{ multiple }} class="rt-select2" data-setting="{{ data.name }}"></select>
93 + </div>
94 + <# if ( data.description ) { #>
95 + <div class="elementor-control-field-description rtsb-description">{{{ data.description }}}</div>
96 + <# } #>
97 + </div>
98 + <#
99 + ( function( $ ) {
100 + $( document.body ).trigger( 'rt_select2_event',{currentID:data.controlValue,data:data,controlUID:controlUID,multiple:data.multiple} );
101 + }( jQuery ) );
102 + #>
101 103 <?php
102 104 }
103 105 }