PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.0
ShopBuilder – WooCommerce Builder For Elementor v2.6.0
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 +1 -16 3.4.02.6.0 View file →
@@ -16,11 +16,8 @@
16 16 if ( ! defined( 'ABSPATH' ) ) {
17 17 exit( 'This script cannot be accessed directly.' );
18 18 }
19 19
20 -/**
21 - * Select2AjaxControl Register
22 - */
23 20 class Select2AjaxControl extends Base_Data_Control {
24 21
25 22 /**
26 23 * Set control name.
@@ -28,23 +25,17 @@
28 25 * @var string
29 26 */
30 27 public static $controlName = 'rt-select2';
31 28
32 - /**
33 - * @return string
34 - */
35 29 public function get_type() {
36 30 return self::$controlName;
37 31 }
38 32
39 - /**
40 - * @return void
41 - */
42 33 public function enqueue() {
43 34 wp_enqueue_script( 'rtsb-editor-script' );
44 35 wp_localize_script(
45 36 'rtsb-editor-script',
46 - 'rtsbSelect2Obj',
37 + 'rtSelect2Obj',
47 38 [
48 39 'ajaxurl' => esc_url( admin_url( 'admin-ajax.php' ) ),
49 40 'search_text' => esc_html__( 'Please Select', 'shopbuilder' ),
50 41 'nonceId' => rtsb()->nonceId,
@@ -73,11 +64,8 @@
73 64 </style>
74 65 <?php
75 66 }
76 67
77 - /**
78 - * @return array
79 - */
80 68 protected function get_default_settings() {
81 69 return [
82 70 'multiple' => false,
83 71 'label_block' => true,
@@ -87,11 +75,8 @@
87 75 'maximum_selection_length' => - 1,
88 76 ];
89 77 }
90 78
91 - /**
92 - * @return void
93 - */
94 79 public function content_template() {
95 80 $control_uid = $this->get_control_uid();
96 81 ?>
97 82