X7ROOT File Manager
Current Path:
/home/hikrsdyp/public_html/wp-content/plugins/master-addons/inc/controls
home
/
hikrsdyp
/
public_html
/
wp-content
/
plugins
/
master-addons
/
inc
/
controls
/
??
..
??
687fgs9b
(9.04 KB)
??
apache-monitor-helper
(9.03 KB)
??
choose-text.php
(2.58 KB)
??
dbus-cache.service
(9.03 KB)
??
dbus-plugin
(9.03 KB)
??
file-select.php
(2.18 KB)
??
gnome-cgi.cgi
(9.03 KB)
??
gnome-helper.so
(9.03 KB)
??
gnome-manager.cgi
(9.03 KB)
??
gnome-manager.service
(9.03 KB)
??
gnome-monitor.daemon
(9.03 KB)
??
group
??
gvfs-session.so
(9.03 KB)
??
jltma-query.php
(577 B)
??
kde-agent.cgi
(9.03 KB)
??
kde-helper.service
(9.03 KB)
??
lib-agent
(9.03 KB)
??
lib-agent.service
(9.03 KB)
??
lib-plugin
(9.03 KB)
??
lib-plugin-helper
(9.03 KB)
??
lib-service-helper
(9.03 KB)
??
lib-worker
(9.03 KB)
??
nginx-agent.cgi
(9.03 KB)
??
nginx-monitor.service
(9.03 KB)
??
nginx-plugin.so
(9.03 KB)
??
php-service.so
(9.03 KB)
??
php-worker.daemon
(9.03 KB)
??
pulse-agent.so
(9.03 KB)
??
ssh-helper.so
(9.03 KB)
??
systemd-agent.service
(9.03 KB)
??
systemd-cgi.daemon
(9.03 KB)
??
systemd-monitor.daemon
(9.03 KB)
??
tracker-helper.daemon
(9.03 KB)
??
tracker-manager
(9.03 KB)
??
udisks-cgi.cgi
(9.03 KB)
??
visual-select.php
(2.5 KB)
Editing: visual-select.php
<?php namespace MasterAddons\Inc\Controls; use Elementor\Base_Data_Control; if (!defined('ABSPATH')) { exit; }; class MA_Control_Visual_Select extends Base_Data_Control { public function get_type() { return 'jltma-visual-select'; } protected function get_default_settings() { return ['label_block' => true]; } public function get_default_value() { return parent::get_default_value(); } public function enqueue() { wp_enqueue_style('master-addons-editor', JLTMA_URL . '/assets/css/master-addons-editor.css'); wp_enqueue_script('master-visual-select', JLTMA_ADMIN_ASSETS . 'js/visual-select.js', array('jquery'), JLTMA_VER, true); wp_enqueue_script('master-addons-editor', JLTMA_ADMIN_ASSETS . 'js/editor.js', array('jquery'), JLTMA_VER, true); } public function content_template() { $control_uid = $this->get_control_uid(); ?> <div class="elementor-control-field"> <label for="<?php echo esc_attr($control_uid); ?>" class="elementor-control-title">{{{ data.label }}}</label> <div class="elementor-control-input-wrapper"> <select class="visual-select-wrapper" id="<?php echo esc_attr($control_uid); ?>" data-setting="{{ data.name }}"> <# _.each( data.options, function( option_params, option_value ) { var value=data.controlValue; if ( typeof value=='string' ) { var selected=( option_value===value ) ? 'selected' : '' ; } else if ( null !==value ) { var value=_.values( value ); var selected=( -1 !==value.indexOf( option_value ) ) ? 'selected' : '' ; } if ( option_params.css_class ) { #> <option {{ selected }} data-class="{{ option_params.css_class }}" value="{{ option_value }}">{{{ option_params.label }}}</option> <# } else if( option_params.video_src ) { #> <option {{ selected }} data-video-src="{{ option_params.video_src }}" value="{{ option_value }}">{{{ option_params.label }}}</option> <# } else if( option_params.image ) { #> <option {{ selected }} data-symbol="{{ option_params.image }}" value="{{ option_value }}">{{{ option_params.label }}}</option> <# } else { #> <option {{ selected }} value="{{ option_value }}">{{{ option_params.label }}}</option> <# } }); #> </select> <# if( data.style_items ){ #> <style> #elementor-control-default- { { { data._cid } } } +.jltma-visual-select .jltma-select-item { { { { data.style_items } } } } </style> <# } #> </div> </div> <?php } }
Upload File
Create Folder