| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/pia/wp-content/plugins/happy-elementor-addons/controls/ |
Upload File : |
<?php
/**
* Dynamic select control class.
*
* @package Happy_Addons
*/
namespace Happy_Addons\Elementor\Controls;
use Elementor\Control_Select2;
defined( 'ABSPATH' ) || die();
class Select2 extends Control_Select2 {
/**
* Control identifier
*/
const TYPE = 'ha_advanced_select2';
/**
* Set control type.
*/
public function get_type() {
return self::TYPE;
}
/**
* Get select2 control default settings.
*
* Retrieve the default settings of the select2 control. Used to return the
* default settings while initializing the select2 control.
*
* @access protected
*
* @return array Control default settings.
*/
protected function get_default_settings() {
return [
'options' => [],
'multiple' => false,
'sortable' => false,
'dynamic_params' => [],
'select2options' => [],
];
}
/**
* Enqueue control scripts and styles.
*/
public function enqueue() {
if ( $this->get_settings( 'sortable' ) ) {
wp_enqueue_script( 'jquery-ui-sortable' );
}
}
}