| Server IP : 87.98.154.146 / Your IP : 216.73.216.165 Web Server : Apache System : Linux webm004.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : ohklomafyi ( 52085) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/ohklomafyi/www/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' );
}
}
}