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