Import legacy nurinda.co.id website

This commit is contained in:
dirga committed 2026-10-01 14:27:19 +07:00
1 parent 3f59bb9038
commit 6e21646ac4
13389 files changed
+3246690

No files matched your search

@@ -0,0 +1,76 @@
<?php
if(!class_exists('Ultimate_Animator_Param'))
{
class Ultimate_Animator_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('animator' , array($this, 'animator_param'));
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('animator' , array($this, 'animator_param'));
}
}
}
function animator_param($settings, $value){
$param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
$type = isset($settings['type']) ? $settings['type'] : '';
$class = isset($settings['class']) ? $settings['class'] : '';
$json = ultimate_get_animation_json();
$jsonIterator = json_decode($json,true);
$animators = '<select name="'. esc_attr( $param_name ).'" class="wpb_vc_param_value ' . esc_attr( $param_name ) . ' ' . esc_attr( $type ) . ' ' . esc_attr( $class ) . '">';
foreach ($jsonIterator as $key => $val) {
if(is_array($val)) {
$labels = str_replace('_',' ', $key);
$animators .= '<optgroup label="'.ucwords( esc_attr__($labels,'ultimate_vc') ).'">';
foreach($val as $label => $style){
$label = str_replace('_',' ', $label);
if($label == $value)
$animators .= '<option selected value="'. esc_attr( $label ).'">'. esc_html__( $label,'ultimate_vc' ) .'</option>';
else
$animators .= '<option value="'. esc_attr( $label ) .'">'. esc_html__($label,'ultimate_vc') .'</option>';
}
} else {
if($key == $value)
$animators .= "<option selected value=".esc_attr( $key ).">". esc_html__($key,'ultimate_vc') ."</option>";
else
$animators .= "<option value=".esc_attr( $key ).">". esc_html__($key,'ultimate_vc') ."</option>";
}
}
$animators .= '<select>';
$output = '';
$output .= '<div class="select_anim" style="width: 45%; float: left;">';
$output .= $animators;
$output .= '</div>';
$output .= '<div class="anim_prev" style=" padding: 8px; width: 45%; float: left; text-align: center; margin-left: 15px;"> <span id="animate-me" style="padding: 15px; background: #1C8FCF; color: #FFF;">Animation Preview</span></div>';
$output .= '<script type="text/javascript">
jQuery(document).ready(function(){
var animator = jQuery(".'. esc_attr( $param_name ).'");
var anim_target = jQuery("#animate-me");
animator.on("change",function(){
var anim = jQuery(this).val();
anim_target.removeClass().addClass(anim + " animated").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", function(){jQuery(this).removeClass();
});
});
});
</script>';
return $output;
}
}
}
if(class_exists('Ultimate_Animator_Param'))
{
$Ultimate_Animator_Param = new Ultimate_Animator_Param();
}
@@ -0,0 +1,247 @@
<?php
if(!class_exists('Ultimate_Border'))
{
class Ultimate_Border
{
function __construct()
{
add_action( 'admin_enqueue_scripts', array( $this, 'ultimate_border_param_scripts' ) );
if(defined('WPB_VC_VERSION') && version_compare(WPB_VC_VERSION, 4.8) >= 0) {
if(function_exists('vc_add_shortcode_param'))
{
vc_add_shortcode_param('ultimate_border', array($this, 'ultimate_border_callback'), UAVC_URL.'admin/vc_extend/js/ultimate-border.js');
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('ultimate_border', array($this, 'ultimate_border_callback'), UAVC_URL.'admin/vc_extend/js/ultimate-border.js');
}
}
}
function ultimate_border_callback($settings, $value)
{
$dependency = '';
$positions = $settings['positions'];
$enable_radius = isset($settings['enable_radius']) ? $settings['enable_radius'] : true ;
$label = isset($settings['label_border']) ? $settings['label_border'] : 'Border Style';
$unit = isset($settings['unit']) ? $settings['unit'] : 'px';
$uid = 'ultimate-border-'. rand(1000, 9999); //$settings['param_name'];
//$uid = uniqid('ultimate-border-'. $settings['param_name'] .'-'. rand());
$html = '<div class="ultimate-border" id="'. esc_attr( $uid ) .'" data-unit="'. esc_attr( $unit ) .'" >';
/** BORDER - {STYLE}
*---------------------------------------------------*/
$html .= '<div class="ultimate-border-style-section">';
//$html .= ' <div class="label">';
//$html .= $label;
//$html .= ' </div>';
$html .= ' <div class="ultimate-border-select-block">';
$html .= ' <select data-placeholder="Border Style" class="ultimate-border-style-selector" >';
$html .= ' <option value="none">'. __('None', 'ultimate_vc') .'</option>';
$html .= ' <option value="solid">'. __('Solid', 'ultimate_vc') .'</option>';
$html .= ' <option value="dotted">'. __('Dotted', 'ultimate_vc') .'</option>';
$html .= ' <option value="dashed">'. __('Dashed', 'ultimate_vc') .'</option>';
$html .= ' <option value="hidden">'. __('Hidden', 'ultimate_vc') .'</option>';
$html .= ' <option value="double">'. __('Double', 'ultimate_vc') .'</option>';
$html .= ' <option value="groove">'. __('Groove', 'ultimate_vc') .'</option>';
$html .= ' <option value="ridge">'. __('Ridge', 'ultimate_vc') .'</option>';
$html .= ' <option value="inset">'. __('Inset', 'ultimate_vc') .'</option>';
$html .= ' <option value="outset">'. __('Outset', 'ultimate_vc') .'</option>';
$html .= ' <option value="initial">'. __('Initial', 'ultimate_vc') .'</option>';
$html .= ' <option value="inherit">'. __('Inherit', 'ultimate_vc') .'</option>';
$html .= ' </select>';
$html .= ' </div>';
$html .= '</div>';
/** BORDER - {WIDTH}
*---------------------------------------------------*/
$label = "Border Width";
if(isset($settings['label_width']) && $settings['label_width']!='' ) { $label = $settings['label_width']; }
$html .= '<div class="ultimate-four-input-section ultb-width-section" >';
$html .= ' <div class="label">';
$html .= esc_html( $label );
$html .= ' </div>';
$html .= '<div class="ult-expand "> <span class="ult-tooltip">Expand / Collapse</span> <i class="dashicons dashicons-minus"></i></div>';
foreach($positions as $key => $default_value) {
switch ($key) {
case 'Top':
$id = 'border-' .strtolower($key). '-width';
$dashicon = 'dashicons dashicons-arrow-up-alt';
$html .= $this->ultimate_border_param_item($dashicon, /*$mode,*/ $unit, /*$default_value,*/$default_value, $key, $id);
break;
case 'Right':
$id = 'border-' .strtolower($key). '-width';
$dashicon = 'dashicons dashicons-arrow-right-alt';
$html .= $this->ultimate_border_param_item($dashicon, /*$mode,*/ $unit, /*$default_value,*/$default_value, $key, $id);
break;
case 'Bottom':
$id = 'border-' .strtolower($key). '-width';
$dashicon = 'dashicons dashicons-arrow-down-alt';
$html .= $this->ultimate_border_param_item($dashicon, /*$mode,*/ $unit, /*$default_value,*/$default_value, $key, $id);
break;
case 'Left':
$id = 'border-' .strtolower($key). '-width';
$dashicon = 'dashicons dashicons-arrow-left-alt';
$html .= $this->ultimate_border_param_item($dashicon, /*$mode,*/ $unit, /*$default_value,*/$default_value, $key, $id);
break;
}
}
// {all} - border width
$html .= ' <div class="ultimate-border-input-block ultb-width-all">';
$html .= ' <span class="ultimate-border-icon">';
$html .= ' <i class="dashicons dashicons-editor-expand"></i>';
$html .= ' </span>';
$html .= ' <input type="text" class="ultimate-border-inputs ultimate-border-input" data-unit="'. esc_attr( $unit ) .'" data-default="'. esc_attr( $default_value ) .'" data-id="border-width" placeholder="all" />';
$html .= ' </div>';
// set units - px, em, %
$html .= '<div class="ultimate-unit-section">';
//$html .= ' <label>'.$unit.'</label>';
$html .= ' <select class="ult-unit-border-width" >';
switch($unit) {
case "px": $html .= ' <option value="px" selected>px</option>';
$html .= ' <option value="em">em</option>';
break;
case "em": $html .= ' <option value="em" selected>em</option>';
$html .= ' <option value="px">px</option>';
break;
}
$html .= ' </select>';
$html .= '</div>';
$html .= '</div><!-- .ultimate-four-input-section -->';
/** BORDER - {RADIUS}
*---------------------------------------------------*/
if($enable_radius) :
$label = "Border Radius";
if(isset($settings['label_radius']) && $settings['label_radius']!='' ) { $label = $settings['label_radius']; }
$html .= '<div class="ultimate-border-radius-block ultb-radius-section" >';
$html .= ' <div class="label">';
$html .= esc_html( $label );
$html .= ' </div>';
$html .= ' <div class="ult-expand "> <span class="ult-tooltip">Expand / Collapse</span> <i class="dashicons dashicons-minus"></i></div>';
$radius = $settings['radius'];
foreach($radius as $key => $default_value) {
switch ($key) {
case 'Top Left': $key = 'top-left-radius';
$dashicon = 'dashicons dashicons-arrow-up-alt';
$placeholder = 'T. Left';
$html .= $this->ultimate_border_radius_item($dashicon, /*$mode,*/ $unit, $default_value, /*$default_value,*//*$default_value,*/ $key, $placeholder);
break;
case 'Top Right': $key = 'top-right-radius';
$dashicon = 'dashicons dashicons-arrow-right-alt';
$placeholder = 'T. Right';
$html .= $this->ultimate_border_radius_item($dashicon, /*$mode,*/ $unit, $default_value, /*$default_value,*//*$default_value,*/ $key, $placeholder);
break;
case 'Bottom Right': $key = 'bottom-right-radius';
$dashicon = 'dashicons dashicons-arrow-down-alt';
$placeholder = 'B. Right';
$html .= $this->ultimate_border_radius_item($dashicon, /*$mode,*/ $unit, $default_value, /*$default_value,*//*$default_value,*/ $key, $placeholder);
break;
case 'Bottom Left': $key = 'bottom-left-radius';
$dashicon = 'dashicons dashicons-arrow-left-alt';
$placeholder = 'B. Left';
$html .= $this->ultimate_border_radius_item($dashicon, /*$mode,*/ $unit, $default_value, /*$default_value,*//*$default_value,*/ $key, $placeholder);
break;
}
}
// {all} - border radius
$html .= ' <div class="ultimate-border-input-block ultb-radius-all">';
$html .= ' <span class="ultimate-border-icon">';
$html .= ' <i class="dashicons dashicons-editor-expand"></i>';
$html .= ' </span>';
$html .= ' <input type="text" class="ultimate-border-inputs ultimate-border-input" data-unit="'. esc_attr( $unit ) .'" data-default="'. esc_attr( $default_value ) .'" data-id="border-radius" placeholder="all" />';
$html .= ' </div>';
// set units - px, em, %
$html .= '<div class="ultimate-unit-section">';
//$html .= ' <label>'.$unit.'</label>';
$html .= ' <select class="ult-unit-border-radius" >';
switch($unit) {
case "px": $html .= ' <option value="px" selected>px</option>';
$html .= ' <option value="em">em</option>';
$html .= ' <option value="%">%</option>';
break;
case "em": $html .= ' <option value="em" selected>em</option>';
$html .= ' <option value="px">px</option>';
$html .= ' <option value="%">%</option>';
break;
case "%": $html .= ' <option value="%" selected>%</option>';
$html .= ' <option value="px">px</option>';
$html .= ' <option value="em">em</option>';
break;
}
$html .= ' </select>';
$html .= '</div>';
$html .= '</div>';
endif;
// add color picker
$label = "Border Color";
if(isset($settings['label_color']) && $settings['label_color']!='' ) { $label = $settings['label_color']; }
$html .= ' <div class="ultimate-colorpicker-section">';
$html .= ' <div class="label">';
$html .= esc_html( $label );
$html .= ' </div>';
$html .= ' <div class="ultimate-colorpicker-block">';
$html .= ' <input name="" class="ultimate-colorpicker cs-wp-color-picker" data-id="border-color" type="text" value="" />';
$html .= ' </div>';
$html .= ' </div>';
$html .= ' <input type="hidden" data-unit="'. esc_attr( $unit ) .'" name="'. esc_attr( $settings['param_name'] ) .'" class="wpb_vc_param_value ultimate-border-value '. esc_attr( $settings['param_name'] ).' '. esc_attr( $settings['type'] ).'_field" value="'.esc_attr( $value ).'" '.$dependency.' />';
$html .= '</div>';
return $html;
}
function ultimate_border_radius_item($dashicon, /*$mode,*/ $unit,/* $default_value,*/$default_value, $key, $placeholder) {
$html = ' <div class="ultimate-border-radius ultb-radius-single">';
$html .= ' <span class="ultimate-border-icon">';
$html .= ' <i class="'.$dashicon.'"></i>';
$html .= ' </span>';
$html .= ' <input type="text" class="ultimate-border-inputs ultimate-border-input" data-unit="'. esc_attr( $unit ) .'" data-default="'. esc_attr( $default_value ) .'" data-id="border-'.strtolower( esc_attr( $key ) ).'" placeholder="'. esc_attr( $placeholder ) .'" />';
$html .= ' </div>';
return $html;
}
function ultimate_border_param_item($dashicon, /*$mode,*/ $unit,/* $default_value,*/$default_value, $key, $id) {
$html = ' <div class="ultimate-border-input-block ultb-width-single">';
$html .= ' <span class="ultimate-border-icon">';
$html .= ' <i class="'.esc_attr($dashicon).'"></i>';
$html .= ' </span>';
$html .= ' <input type="text" class="ultimate-border-inputs ultimate-border-input" data-unit="'. esc_attr( $unit ) .'" data-default="'. esc_attr( $default_value ) .'" data-id="' . esc_attr( $id ) . '" placeholder="'. esc_attr( $key ) .'" />';
$html .= ' </div>';
return $html;
}
function ultimate_border_param_scripts($hook) {
wp_register_style("ultimate-border-style", UAVC_URL.'admin/vc_extend/css/ultimate_border.css');
if($hook == "post.php" || $hook == "post-new.php"){
$bsf_dev_mode = bsf_get_option('dev_mode');
if( $bsf_dev_mode === 'enable' ) {
wp_enqueue_style( 'wp-color-picker' );
wp_enqueue_style( 'ultimate-border-style');
wp_enqueue_style( 'ultimate-chosen-style');
wp_enqueue_script('ultimate-chosen-script');
}
}
}
}
}
if(class_exists('Ultimate_Border'))
{
$Ultimate_Border = new Ultimate_Border();
}
@@ -0,0 +1,158 @@
<?php
/** # W3Schools
* - box-shadow: none|h-shadow v-shadow blur spread color |inset|initial|inherit;
*
* How To?
*
* array(
* "type" => "ultimate_boxshadow",
* "heading" => __("Box Shadow", "ultimate_vc"),
* "param_name" => "img_box_shadow",
* "unit" => "px", // [required] px,em,%,all Default all
* "positions" => array(
* __("Horizontal","ultimate_vc") => "",
* __("Vertical","ultimate_vc") => "",
* __("Blur","ultimate_vc") => "",
* __("Spread","ultimate_vc") => ""
* ),
* "label_color" => __("Shadow Color","ultimate_vc"),
* //"label_style" => __("Style","ultimate_vc"),
* "dependency" => Array("element" => "img_box_shadow_type", "value" => "on" ),
* ),
*
*/
if(!class_exists('Ultimate_BoxShadow'))
{
class Ultimate_BoxShadow
{
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('ultimate_boxshadow', array($this, 'ultimate_boxshadow_callback'), UAVC_URL.'admin/vc_extend/js/vc-box-shadow-param.js');
}
}
else {
if(function_exists('add_shortcode_param')) {
add_shortcode_param('ultimate_boxshadow', array($this, 'ultimate_boxshadow_callback'), UAVC_URL.'admin/vc_extend/js/vc-box-shadow-param.js');
}
}
add_action( 'admin_enqueue_scripts', array( $this, 'ultimate_boxshadow_param_scripts' ) );
}
function ultimate_boxshadow_callback($settings, $value) {
$dependency = '';
$positions = $settings['positions'];
$enable_color = isset($settings['enable_color']) ? $settings['enable_color'] : true;
//$enable_radius = isset($settings['enable_radius']) ? $settings['enable_radius'] : true ;
$unit = isset($settings['unit']) ? $settings['unit'] : 'px';
$uid = 'ultimate-boxshadow-'. rand(1000, 9999); //$settings['param_name'];
//$uid = uniqid('ultimate-boxshadow-'. $settings['param_name'] .'-'. rand());
$html = '<div class="ultimate-boxshadow" id="'.esc_attr( $uid ).'" data-unit="'.esc_attr( $unit ).'" >';
// Box Shadow - Style
$label = "Shadow Style";
if(isset($settings['label_style']) && $settings['label_style']!='' ) { $label = $settings['label_style']; }
$html .= '<div class="ultbs-select-block">';
$html .= ' <div class="ultbs-select-wrap">';
//$html .= ' <div class="label wpb_element_label">';
//$html .= $label;
//$html .= ' </div>';
$html .= ' <select class="ultbs-select" >';
$html .= ' <option value="none">'.__('None','ultimate_vc').'</option>';
$html .= ' <option value="inherit">'.__('Inherit','ultimate_vc').'</option>';
$html .= ' <option value="inset">'.__('Inset','ultimate_vc').'</option>';
$html .= ' <option value="outset">'.__('Outset','ultimate_vc').'</option>';
/*$html .= ' <option value="initial">'.__('Initial','ultimate_vc').'</option>';*/
$html .= ' </select>';
$html .= ' </div>';
$html .= '</div>';
// BORDER - WIDTH
$html .= '<div class="ultbs-input-block" >';
foreach($positions as $key => $default_value) {
switch ($key) {
case 'Horizontal':
$dashicon = 'dashicons dashicons-leftright';
$html .= $this->ultimate_boxshadow_param_item($dashicon, $unit, $default_value, $key);
break;
case 'Vertical':
$dashicon = 'dashicons dashicons-sort';
$html .= $this->ultimate_boxshadow_param_item($dashicon, $unit, $default_value, $key);
break;
case 'Blur':
$dashicon = 'dashicons dashicons-visibility';
$html .= $this->ultimate_boxshadow_param_item($dashicon, $unit, $default_value, $key);
break;
case 'Spread':
$dashicon = 'dashicons dashicons-location';
$html .= $this->ultimate_boxshadow_param_item($dashicon, $unit, $default_value, $key);
break;
}
}
$html .= $this->get_units($unit);
$html .= '</div>';
// Box Shadow - Color
if($enable_color) {
$label = "Box Shadow Color";
if(isset($settings['label_color']) && $settings['label_color']!='' ) { $label = $settings['label_color']; }
$html .= ' <div class="ultbs-colorpicker-block">';
$html .= ' <div class="label wpb_element_label">';
$html .= esc_html( $label );
$html .= ' </div>';
$html .= ' <div class="ultbs-colorpicker-wrap">';
$html .= ' <input name="" class="ultbs-colorpicker cs-wp-color-picker" type="text" value="" />';
$html .= ' </div>';
$html .= ' </div>';
}
$html .= ' <input type="hidden" data-unit="'. esc_attr( $unit ) .'" name="'. esc_attr( $settings['param_name'] ).'" class="wpb_vc_param_value ultbs-result-value '. esc_attr( $settings['param_name'] ) .' '. esc_attr( $settings['type'] ) .'_field" value="'. esc_attr( $value ) .'" '.$dependency.' />';
$html .= '</div>';
return $html;
}
function ultimate_boxshadow_param_item($dashicon, /*$mode,*/ $unit,/* $default_value,*/$default_value, $key) {
$html = ' <div class="ultbs-input-wrap">';
$html .= ' <span class="ultbs-icon">';
$html .= ' <span class="ultbs-tooltip">'.esc_html( $key ).'</span>';
$html .= ' <i class="'.esc_attr($dashicon).'"></i>';
$html .= ' </span>';
$html .= ' <input type="number" class="ultbs-input" data-unit="'. esc_attr( $unit ) .'" data-id="'.strtolower( esc_attr( $key ) ).'" data-default="'. esc_attr( $default_value ) .'" placeholder="'. esc_attr( $key ) .'" />';
$html .= ' </div>';
return $html;
}
function get_units($unit) {
// set units - px, em, %
$html = '<div class="ultbs-unit">';
$html .= ' <label>'.esc_html( $unit ).'</label>';
$html .= '</div>';
return $html;
}
function ultimate_boxshadow_param_scripts($hook) {
if($hook == "post.php" || $hook == "post-new.php"){
$bsf_dev_mode = bsf_get_option('dev_mode');
if($bsf_dev_mode === 'enable') {
wp_enqueue_style( 'wp-color-picker' );
wp_register_style( 'ultimate_boxshadow_param_css', UAVC_URL.'admin/vc_extend/css/vc_param_boxshadow.css');
wp_enqueue_style( 'ultimate_boxshadow_param_css');
//wp_register_script('ultimate_boxshadow_param_js',plugins_url( '../admin/vc_extend/js/vc-box-shadow-param.js', __FILE__ ));
//wp_enqueue_style( 'ultimate_boxshadow_param_choosen_css', plugins_url('../admin/vc_extend/css/chosen.css', __FILE__ ));
//wp_enqueue_script('ultimate_boxshadow_param_choosen_js',plugins_url( '../admin/vc_extend/js/chosen.js', __FILE__ ));
}
}
}
}
}
if(class_exists('Ultimate_BoxShadow'))
{
$Ultimate_BoxShadow = new Ultimate_BoxShadow();
}
@@ -0,0 +1,76 @@
<?php
if(!class_exists('Ultimate_Button_Param'))
{
class Ultimate_Button_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_button' , array($this, 'button_prev_param'));
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('ult_button' , array($this, 'button_prev_param'));
}
}
}
function button_prev_param($settings, $value){
$param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
$type = isset($settings['type']) ? $settings['type'] : '';
$class = isset($settings['class']) ? $settings['class'] : '';
$json = isset($settings['json']) ? $settings['json'] : '';
$jsonIterator = json_decode($json,true);
$selector = '<select name="'. esc_attr( $param_name ) .'" class="wpb_vc_param_value ' . esc_attr( $param_name ) . ' ' . esc_attr( $type ) . ' ' . esc_attr( $class ) . '">';
foreach ($jsonIterator as $key => $val) {
if(is_array($val)) {
$labels = str_replace('_',' ', $key);
$selector .= '<optgroup label="'.ucwords( esc_attr( $labels ) ).'">';
foreach($val as $label => $style){
$label = str_replace('_',' ', $label);
if($style == $value)
$selector .= '<option selected value="'.esc_attr( $style ).'">'.esc_html__($label,'ultimate_vc').'</option>';
else
$selector .= '<option value="'.esc_attr( $style ).'">'.esc_html__($label,'ultimate_vc').'</option>';
}
} else {
if($val == $value)
$selector .= "<option selected value=".esc_attr($val).">".esc_html__($key,'ultimate_vc')."</option>";
else
$selector .= "<option value=".esc_attr($val).">".esc_html__($key,'ultimate_vc')."</option>";
}
}
$selector .= '<select>';
$output = '';
$output .= '<div class="select2_option" style="width: 45%; float: left;">';
$output .= $selector;
$output .= '</div>';
$output .= '<div class="anim_prev" style="width: 45%; float: left; text-align: center; margin-left: 15px; margin-top: -15px;">';
$output .= '<button class="ubtn ubtn-normal ubtn-sep-icon ubtn-center ubtn-sep-icon-left-rev" data-animation="ubtn-sep-icon-left-push" style="border-radius:3px; border-width:1px; border-color:#ffffff; border-style:solid; background: #2786ce;color: #ffffff;"><span class="ubtn-data ubtn-icon"><i class="Defaults-star" style="font-size:20px;color:;"></i></span><span class="ubtn-hover" style="background: rgb(30, 115, 190);"></span><span class="ubtn-data ubtn-text">'.__('Button','ultimate_vc').'</span></button>';
$output .= '</div>';
$output .= '<script type="text/javascript">
jQuery(document).ready(function(){
var animator = jQuery(".'. esc_attr( $param_name ) .'");
var anim_target = jQuery(".ubtn");
animator.on("change",function(){
var anim = jQuery(this).val();
var prev_anim = anim_target.data("animation");
anim_target.removeClass().addClass("ubtn ubtn-normal ubtn-sep-icon ubtn-center ubtn-sep-icon-left-rev " + anim);
});
});
</script>';
return $output;
}
}
}
if(class_exists('Ultimate_Button_Param'))
{
$Ultimate_Button_Param = new Ultimate_Button_Param();
}
@@ -0,0 +1,90 @@
<?php
if(!class_exists('Ultimate_ColorPicker_Param'))
{
class Ultimate_ColorPicker_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('colorpicker_alpha' , array($this, 'colorpicker_alpha_gen'));
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('colorpicker_alpha' , array($this, 'colorpicker_alpha_gen'));
}
}
}
function colorpicker_alpha_gen($settings, $value)
{
$base = $opacity = $output = '';
$dependency = '';
$param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
$type = isset($settings['type']) ? $settings['type'] : '';
$class = isset($settings['class']) ? $settings['class'] : '';
$uni = uniqid('colorpicker-'.rand());
if($value != ''){
$arr_v = explode(',', $value);
if(is_array($arr_v)){
if(isset($arr_v[1])){
$opacity = $arr_v[1];
}
if(isset($arr_v[0])){
$base = $arr_v[0];
}
}
}
else{
//$opacity=1;
//$base='#fff';
}
$output = '
<input id="alpha_val'. esc_attr( $uni ).'" class="wpb_vc_param_value ' . esc_attr( $param_name ) . ' ' . esc_attr( $type ) . ' ' . esc_attr( $class ) . ' vc_column_alpha" value="'. esc_attr( $value ).'" '.$dependency.' data-uniqid="'.esc_attr( $uni ).'" data-opacity="'.esc_attr( $opacity ).'" data-hex-code="'.esc_attr( $base ).'"/>
';
$output .= '
<input class="wpb_vc_param_value ' . esc_attr( $param_name ) . ' ' . esc_attr($type) . ' ' . esc_attr($class) . '" '.$dependency.' name="'.esc_attr($param_name).'" value="'.esc_attr($value).'" style="display:none"/>
<button class="alpha_clear" type="button">'.__('Clear','ultimate_vc').'</button>
';
?>
<script type="text/javascript">
jQuery(document).ready(function(){
function colorpicker_alpha(selector,id_prefix){
jQuery(selector).each(function(){
var aid = jQuery(this).data('uniqid');
jQuery(id_prefix+aid).minicolors({
change: function(hex, opacity) {
console.log(hex+','+opacity);
jQuery(this).parent().next().val(hex+','+opacity);
console.log(jQuery(this).parent().next().attr('class'))
},
opacity: true,
defaultValue: jQuery(this).data('hex-code'),
position: 'default',
});
jQuery('.alpha_clear').click(function(){
jQuery(this).parent().find('input').val('');
jQuery(this).parent().find('.minicolors-swatch-color').css('background-color','');
//$select.val('');
//jQuery(id_prefix+aid).val('');
//jQuery(id_prefix+aid).next().find('.minicolors-swatch-color').css('background-color','');
})
});
}
colorpicker_alpha('.vc_column_alpha','#alpha_val');
})
</script>
<?php
return $output;
}
}
}
if(class_exists('Ultimate_ColorPicker_Param'))
{
$Ultimate_ColorPicker_Param = new Ultimate_ColorPicker_Param();
}
@@ -0,0 +1,42 @@
<?php
if(!class_exists('Ultimate_DateTime_Picker_Param'))
{
class Ultimate_DateTime_Picker_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('datetimepicker' , array($this, 'datetimepicker'), UAVC_URL.'admin/js/bootstrap-datetimepicker.min.js');
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('datetimepicker' , array($this, 'datetimepicker'), UAVC_URL.'admin/js/bootstrap-datetimepicker.min.js');
}
}
}
function datetimepicker($settings, $value)
{
$dependency = '';
$param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
$type = isset($settings['type']) ? $settings['type'] : '';
$class = isset($settings['class']) ? $settings['class'] : '';
$uni = uniqid('datetimepicker-'.rand());
$output = '<div id="ult-date-time'.esc_attr( $uni ).'" class="ult-datetime"><input data-format="yyyy/MM/dd hh:mm:ss" readonly class="wpb_vc_param_value ' . esc_attr( $param_name ) . ' ' . esc_attr( $type ) . ' ' . esc_attr( $class ) . '" name="' . esc_attr( $param_name ) . '" style="width:258px;" value="'. esc_attr( $value ).'" '.$dependency.'/><div class="add-on" > <i data-time-icon="Defaults-calendar-o" data-date-icon="Defaults-calendar-o"></i></div></div>';
$output .= '<script type="text/javascript">
</script>';
return $output;
}
}
}
if(class_exists('Ultimate_DateTime_Picker_Param'))
{
$Ultimate_DateTime_Picker_Param = new Ultimate_DateTime_Picker_Param();
}
@@ -0,0 +1,62 @@
<?php
if(!class_exists('Ultimate_Font_Manager_Param'))
{
class Ultimate_Font_Manager_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('ultimate_google_fonts', array($this, 'ultimate_google_fonts_settings'), UAVC_URL.'admin/vc_extend/js/vc-google-fonts-param.js');
vc_add_shortcode_param('ultimate_google_fonts_style', array($this, 'ultimate_google_fonts_style_settings'));
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('ultimate_google_fonts', array($this, 'ultimate_google_fonts_settings'), UAVC_URL.'admin/vc_extend/js/vc-google-fonts-param.js');
add_shortcode_param('ultimate_google_fonts_style', array($this, 'ultimate_google_fonts_style_settings'));
}
}
}
function ultimate_google_fonts_settings($settings, $value)
{
$dependency = '';
$fonts = get_option('ultimate_selected_google_fonts');
$html = '<div class="ultimate_google_font_param_block">';
$html .= '<input type="hidden" name="'.esc_attr( $settings['param_name'] ).'" class="wpb_vc_param_value vc-ultimate-google-font '.esc_attr( $settings['param_name'] ).' '.esc_attr( $settings['type'] ).'_field" value="'.esc_attr( $value ).'" '.$dependency.'/>';
//$html .= '<form class="google-fonts-form">';
$html .= '<select name="font_family" class="google-font-list">';
$html .= '<option value="">'.__('Default','ultimate_vc').'</option>';
if(!empty($fonts)) :
foreach($fonts as $key => $font)
{
$selected = '';
if($font['font_name'] == $value)
$selected = 'selected';
$html .= '<option value="'.esc_attr( $font['font_name'] ).'" '.$selected.'>'.esc_html__($font['font_name'],'ultimate_vc').'</option>';
}
endif;
$html .= '</select>';
//$html .= '</form>';
$html .= '</div>';
return $html;
}
function ultimate_google_fonts_style_settings($settings, $value)
{
$dependency = '';
$html = '<input type="hidden" name="'.esc_attr( $settings['param_name'] ).'" class="wpb_vc_param_value ugfont-style-value '.esc_attr( $settings['param_name'] ).' '. esc_attr( $settings['type'] ).'_field" value="'.esc_attr( $value ).'" '.$dependency.'/>';
$html .= '<div class="ultimate_fstyle"></div>';
return $html;
}
}
}
if(class_exists('Ultimate_Font_Manager_Param'))
{
$Ultimate_Font_Manager_Param = new Ultimate_Font_Manager_Param();
}
@@ -0,0 +1,243 @@
<?php
if(!class_exists('Ultimate_Gradient_Param'))
{
class Ultimate_Gradient_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('gradient' , array(&$this, 'gradient_picker' ) );
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('gradient' , array(&$this, 'gradient_picker' ) );
}
}
}
function gradient_picker($settings, $value)
{
$dependency = '';
$param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
$type = isset($settings['type']) ? $settings['type'] : '';
$color1 = isset($settings['color1']) ? $settings['color1'] : ' ';
$color2 = isset($settings['color2']) ? $settings['color2'] : ' ';
$class = isset($settings['class']) ? $settings['class'] : '';
$dependency_element = $settings['dependency']['element'];
$dependency_value = $settings['dependency']['value'];
$dependency_value_json = json_encode($dependency_value);
$uni = uniqid();
$output = '<div class="vc_ug_control" data-uniqid="'.esc_attr( $uni ).'" data-color1="'.esc_attr( $color1 ).'" data-color2="'.esc_attr( $color2 ).'">';
//$output .= '<div class="wpb_element_label" style="margin-top: 10px;">'.__('Gradient Type','upb_parallax').'</div>
$output .= '<select id="grad_type'.esc_attr( $uni ).'" class="grad_type" data-uniqid="'.esc_attr( $uni ).'">
<option value="vertical">'.__('Vertical','ultimate_vc').'</option>
<option value="horizontal">'.__('Horizontal','ultimate_vc').'</option>
<option value="custom">'.__('Custom','ultimate_vc').'</option>
</select>
<div id="grad_type_custom_wrapper'.esc_attr( $uni ).'" class="grad_type_custom_wrapper" style="display:none;"><input type="number" id="grad_type_custom'.esc_attr( $uni ).'" placeholder="45" data-uniqid="'.esc_attr( $uni ).'" class="grad_custom" style="width: 200px; margin-bottom: 10px;"/> deg</div>';
$output .= '<div class="wpb_element_label" style="margin-top: 10px;">'.__('Choose Colors','ultimate_vc').'</div>';
$output .= '<div class="grad_hold" id="grad_hold'.esc_attr( $uni ).'"></div>';
$output .= '<div class="grad_trgt" id="grad_target'.esc_attr( $uni ).'"></div>';
$output .= '<input id="grad_val'.esc_attr( $uni ).'" class="wpb_vc_param_value ' . esc_attr( $param_name ) . ' ' . esc_attr( $type ) . ' ' . esc_attr( $class ) . ' vc_ug_gradient" name="' . esc_attr( $param_name ) . '" style="display:none" value="'.esc_attr( $value ).'" '.$dependency.'/></div>';
?>
<script type="text/javascript">
jQuery(document).ready(function(){
var dependency_element = '<?php echo $dependency_element ?>';
var dependency_values = jQuery.parseJSON('<?php echo $dependency_value_json ?>');
var dependency_values_array = jQuery.map(dependency_values, function(el) { return el; });
var get_depend_value = jQuery('.'+dependency_element).val();
jQuery('.grad_type').change(function(){
var uni = jQuery(this).data('uniqid');
var hid = "#grad_hold"+uni;
var did = "#grad_target"+uni;
var cid = "#grad_type_custom"+uni;
var tid = "#grad_val"+uni;
var cid_wrapper = "#grad_type_custom_wrapper"+uni;
var orientation = jQuery(this).children('option:selected').val();
if(orientation == 'custom')
{
jQuery(cid_wrapper).show();
}
else
{
jQuery(cid_wrapper).hide();
if(orientation == 'vertical')
var ori = 'top';
else
var ori = 'left';
jQuery(hid).data('ClassyGradient').setOrientation(ori);
var newCSS = jQuery(hid).data('ClassyGradient').getCSS();
jQuery(tid).val(newCSS);
}
});
jQuery('.grad_custom').on('keyup',function() {
var uni = jQuery(this).data('uniqid');
var hid = "#grad_hold"+uni;
var gid = "#grad_type"+uni;
var tid = "#grad_val"+uni;
var orientation = jQuery(this).val()+'deg';
jQuery(hid).data('ClassyGradient').setOrientation(orientation);
var newCSS = jQuery(hid).data('ClassyGradient').getCSS();
jQuery(tid).val(newCSS);
});
function gradient_pre_defined(dependency_element, dependency_values_array){
jQuery('.vc_ug_control').each(function(){
var uni = jQuery(this).data('uniqid');
var hid = "#grad_hold"+uni;
var did = "#grad_target"+uni;
var tid = "#grad_val"+uni;
var oid = "#grad_type"+uni;
var cid = "#grad_type_custom"+uni;
var cid_wrapper = "#grad_type_custom_wrapper"+uni;
var orientation = jQuery(oid).children('option:selected').val();
var prev_col = jQuery(tid).val();
var is_custom = 'false';
if(prev_col!='')
{
if(prev_col.indexOf('-webkit-linear-gradient(top,') != -1)
{
var p_l = prev_col.indexOf('-webkit-linear-gradient(top,');
prev_col = prev_col.substring(p_l+28);
p_l = prev_col.indexOf(');');
prev_col = prev_col.substring(0,p_l);
orientation = 'vertical';
}
else if(prev_col.indexOf('-webkit-linear-gradient(left,') != -1)
{
var p_l = prev_col.indexOf('-webkit-linear-gradient(left,');
prev_col = prev_col.substring(p_l+29);
p_l = prev_col.indexOf(');');
prev_col = prev_col.substring(0,p_l);
orientation = 'horizontal';
}
else
{
var p_l = prev_col.indexOf('-webkit-linear-gradient(');
var subStr = prev_col.match("-webkit-linear-gradient((.*));background: -o");
var prev_col = subStr[1].replace(/\(|\)/g, '');
var temp_col = prev_col;
var t_l = temp_col.indexOf('deg');
var deg = temp_col.substring(0,t_l);
prev_col = prev_col.substring(t_l+4, prev_col.length);
jQuery(cid).val(deg);
jQuery(cid_wrapper).show();
orientation = 'custom';
is_custom = 'true';
}
}
else
{
prev_col ="#e3e3e3 0%";
}
jQuery(oid).children('option').each(function(i,opt){
if(opt.value == orientation)
jQuery(this).attr('selected',true);
});
if(is_custom == 'true')
orientation = deg+'deg';
else
{
if(orientation == 'vertical')
orientation = 'top';
else
orientation = 'left';
}
jQuery(hid).ClassyGradient({
width:350,
height:25,
orientation : orientation,
target:did,
gradient: prev_col,
onChange: function(stringGradient,cssGradient) {
var depend = uvc_gradient_verfiy_depedant(dependency_element, dependency_values_array);
cssGradient = cssGradient.replace('url(data:image/svg+xml;base64,','');
var e_pos = cssGradient.indexOf(';');
cssGradient = cssGradient.substring(e_pos+1);
if(jQuery(tid).parents('.wpb_el_type_gradient').css('display')=='none'){
//jQuery(tid).val('');
cssGradient='';
}
if(depend)
jQuery(tid).val(cssGradient);
else
jQuery(tid).val('');
},
onInit: function(cssGradient){
//console.log(jQuery(tid).val())
//check_for_orientation();
}
});
jQuery('.colorpicker').css('z-index','999999');
})
}
if(jQuery.inArray( get_depend_value, dependency_values_array ) !== -1)
var depend = true;
else
var depend = false;
gradient_pre_defined(dependency_element, dependency_values_array);
jQuery('.'+dependency_element).on('change',function(){
var depend = uvc_gradient_verfiy_depedant(dependency_element, dependency_values_array);
jQuery('.vc_ug_control').each(function(){
var uni = jQuery(this).data('uniqid');
var tid = "#grad_val"+uni;
if(depend === false)
jQuery(tid).val('');
else
gradient_pre_defined(dependency_element, dependency_values_array);
});
});
function uvc_gradient_verfiy_depedant(dependency_element, dependency_values_array) {
var get_depend_value = jQuery('.'+dependency_element).val();
if(jQuery.inArray( get_depend_value, dependency_values_array ) !== -1)
return true;
else
return false;
}
})
</script>
<?php
return $output;
}
}
}
if(class_exists('Ultimate_Gradient_Param'))
{
$Ultimate_Gradient_Param = new Ultimate_Gradient_Param();
}
@@ -0,0 +1,120 @@
<?php
if(!class_exists('Ultimate_Icon_Manager_Param'))
{
class Ultimate_Icon_Manager_Param
{
function __construct()
{
$GLOBALS['pid']=0;
$id=null;
$pcnt=null;
if(defined('WPB_VC_VERSION') && version_compare(WPB_VC_VERSION, 4.8) >= 0) {
if(function_exists('vc_add_shortcode_param'))
{
vc_add_shortcode_param('icon_manager', array($this,'icon_manager'));
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('icon_manager', array($this,'icon_manager'));
}
}
}
function icon_manager($settings, $value)
{
$GLOBALS['pid'] = $GLOBALS['pid'] + 1;
$pcnt=$GLOBALS['pid'];
$AIO_Icon_Manager = new AIO_Icon_Manager;
$font_manager = $AIO_Icon_Manager->get_font_manager($pcnt);
$dependency = '';
$params = parse_url($_SERVER['HTTP_REFERER']);
$vc_is_inline = false;
if(isset($params['query'])){
parse_str($params['query'],$params);
$vc_is_inline = isset($params['vc_action']) ? true : false;
}
$output = '<div class="my_param_block">'
.'<input name="'.esc_attr( $settings['param_name'] ).'"
class="wpb_txt_icon_value wpb_vc_param_value wpb-textinput '. esc_attr( $settings['param_name'] ).'
'.esc_attr( $settings['type'] ).'_field" type="hidden"
value="'.esc_attr( $value ).'" ' . $dependency . ' id="'.esc_attr( $pcnt ).'"/>'
.'</div>';
if($vc_is_inline){
$output .= '<script type="text/javascript">
var val=jQuery("#'.esc_attr( $pcnt ).'").val();
//alert("yes");
var val=jQuery("#'.esc_attr( $pcnt ).'").val();
var pmid="'.esc_attr( $pcnt ).'";
var pmid="'.esc_attr( $pcnt ).'";
var val=jQuery("#'.esc_attr( $pcnt ).'").val();
if(val==""){
val="none";
}
if(val=="icon_color="){
val="none";
}
jQuery(".preview-icon-'.esc_attr( $pcnt ).'").html("<i class="+val+"></i>");
jQuery(".icon-list-'.esc_attr( $pcnt ).' li[data-icons=\'"+ val+"\']").addClass("selected");
jQuery(".icons-list li").click(function() {
var id=jQuery(this).attr("id");
//alert(id);
jQuery(this).attr("class","selected").siblings().removeAttr("class");
var icon = jQuery(this).attr("data-icons");
jQuery("#"+id).val(icon);
jQuery(".preview-icon-"+id).html("<i class=\'"+icon+"\'></i>");
});
</script>';
} else {
$output .= '<script type="text/javascript">
jQuery(document).ready(function(){
var pmid="'.esc_attr( $pcnt ).'";
var val=jQuery("#'.esc_attr( $pcnt ).'").val();
if(val==""){
val="none";
}
if(val=="icon_color="){
val="none";
}
jQuery(".preview-icon-'.esc_attr( $pcnt ).'").html("<i class="+val+"></i>");
jQuery(".icon-list-'.esc_attr( $pcnt ).' li[data-icons=\'"+ val+"\']").addClass("selected");
});
jQuery(".icons-list li").click(function() {
var id=jQuery(this).attr("id");
//alert(id);
jQuery(this).attr("class","selected").siblings().removeAttr("class");
var icon = jQuery(this).attr("data-icons");
jQuery("#"+id).val(icon);
jQuery(".preview-icon-"+id).html("<i class=\'"+icon+"\'></i>");
});
</script>';
}
$output .= '<div class="wpb_txt_icons_block" data-old-icon-value="'.esc_attr( $pcnt ).'">'.$font_manager.'</div>';
return $output;
}
}
}
if(class_exists('Ultimate_Icon_Manager_Param'))
{
$Ultimate_Icon_Manager_Param = new Ultimate_Icon_Manager_Param();
}
@@ -0,0 +1,107 @@
<?php
/*-----------------------------------------------------------------------------------------
# HOW TO USE
-----------------------------------------------------------------------------------------
1] DEFINE STRUCTURE?
- Define below structure in module which you want.
e.g. array(
"type" => "ult_img_single",
"heading" => "Upload Image",
"param_name" => "icon_image",
"description" => __("description for image single.", "ultimate_vc"),
),
-----------------------------------------------------------------------------------------
2] USE FILTER?
- Return url, array or json.
e.g. apply_filters('ult_get_img_single', $PARAM_NAME, 'url', 'size'); // {size} [optional] - thumbnail, full, medium etc. - default: full
apply_filters('ult_get_img_single', $PARAM_NAME, 'array');
apply_filters('ult_get_img_single', $PARAM_NAME, 'json');
-----------------------------------------------------------------------------------------
3] OUTPUT
- Output of two image uploader fields.
http://i.imgur.com/csfJvKV.png
-----------------------------------------------------------------------------------------*/
if(!class_exists('Ult_Image_Single'))
{
class Ult_Image_Single
{
function __construct()
{
add_action( 'admin_enqueue_scripts', array( $this, 'image_single_scripts' ) );
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_img_single', array($this, 'ult_img_single_callback'), UAVC_URL.'admin/vc_extend/js/ultimate-image_single.js');
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('ult_img_single', array($this, 'ult_img_single_callback'), UAVC_URL.'admin/vc_extend/js/ultimate-image_single.js');
}
}
add_action('wp_ajax_ult_get_attachment_url', array($this, 'get_attachment_url_init') );
}
function get_attachment_url_init() {
check_ajax_referer( 'uavc-get-attachment-url-nonce', 'security' );
$id = $_POST['attach_id'];
$thumb = wp_get_attachment_image_src( $id, 'thumbnail' );
//echo json_encode( $thumb );
echo $thumb[0];
die();
}
function ult_img_single_callback($settings, $value)
{
$dependency = '';
$uid = 'ult-image_single-'. rand(1000, 9999);
$html = '<div class="ult-image_single" id="'.esc_attr( $uid ).'">';
$html .= '<div class="ult_selected_image">';
$html .= ' <ul class="ult_selected_image_list">';
$html .= ' <li class="">';
$html .= ' <div class="inner" style="width: 75px; height: 75px; overflow: hidden;text-align: center;">';
$html .= ' <div class="spinner ult_img_single_spinner"></div>';
$html .= ' <img src="">';
$html .= ' </div>';
$html .= ' <a title="Remove Footer Image" href="javascript:;" id="remove-thumbnail" class="icon-remove"></a>';
$html .= ' </li>';
$html .= ' </ul>';
$html .= '</div>';
$html .= '<a class="ult_add_image" href="#" title="Add image">Add image</a>';
$html .= ' <input type="hidden" name="'.esc_attr( $settings['param_name'] ).'" class="wpb_vc_param_value ult-image_single-value '. esc_attr( $settings['param_name'] ).' '. esc_attr( $settings['type'] ).'_field" value="'.esc_attr( $value ).'" '.$dependency.' />';
$html .= '</div>';
return $html;
}
function image_single_scripts() {
wp_enqueue_media();
wp_enqueue_style( 'ultimate_image_single_css', UAVC_URL.'admin/vc_extend/css/ultimate_image_single.css');
}
}
}
if(class_exists('Ult_Image_Single'))
{
$Ult_Image_Single = new Ult_Image_Single();
}
@@ -0,0 +1,54 @@
<?php
/*
# Usage -
array(
"type" => "ultimate_margins",
"positions" => array(
"Top" => "top",
"Bottom" => "bottom",
"Left" => "left",
"Right" => "right"
),
),
*/
if(!class_exists('Ultimate_Margin_Param'))
{
class Ultimate_Margin_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('ultimate_margins', array($this, 'ultimate_margins_param'), UAVC_URL.'admin/vc_extend/js/vc-headings-param.js');
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('ultimate_margins', array($this, 'ultimate_margins_param'), UAVC_URL.'admin/vc_extend/js/vc-headings-param.js');
}
}
}
function ultimate_margins_param($settings, $value)
{
$dependency = '';
$positions = $settings['positions'];
$html = '<div class="ultimate-margins">
<input type="hidden" name="'.esc_attr( $settings['param_name'] ).'" class="wpb_vc_param_value ultimate-margin-value '. esc_attr( $settings['param_name'] ).' '. esc_attr( $settings['type'] ).'_field" value="'.esc_attr( $value ).'" '.$dependency.'/>';
foreach($positions as $key => $position)
$html .= esc_attr( $key ).' <input type="text" style="width:50px;padding:3px" data-hmargin="'.esc_attr( $position ).'" class="ultimate-margin-inputs" id="margin-'.esc_attr( $key ).'" /> &nbsp;&nbsp;';
$html .= '</div>';
return $html;
}
}
}
if(class_exists('Ultimate_Margin_Param'))
{
$Ultimate_Margin_Param = new Ultimate_Margin_Param();
}
@@ -0,0 +1,121 @@
<?php
/*
# Use
1] Previous Icon
Use param_name = prev_icon
2] Next Icon
Use param_name = next_icon
3] Dots
Use param_name = dots_icon
*/
if(!class_exists('Ultimate_Navigation'))
{
class Ultimate_Navigation
{
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('ultimate_navigation' , array(&$this, 'icon_settings_field' ) );
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('ultimate_navigation' , array(&$this, 'icon_settings_field' ) );
}
}
}
function icon_settings_field($settings, $value)
{
$dependency = '';
$uid = uniqid();
$param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
$type = isset($settings['type']) ? $settings['type'] : '';
$class = isset($settings['class']) ? $settings['class'] : '';
if($param_name == "next_icon"){
$icons = array('ultsl-arrow-right','ultsl-arrow-right2','ultsl-arrow-right3','ultsl-arrow-right4','ultsl-arrow-right6');
}
if($param_name == "prev_icon"){
$icons = array('ultsl-arrow-left','ultsl-arrow-left2','ultsl-arrow-left3','ultsl-arrow-left4','ultsl-arrow-left6');
}
if($param_name == "dots_icon"){
$icons = array('ultsl-checkbox-unchecked','ultsl-checkbox-partial','ultsl-stop','ultsl-radio-checked','ultsl-radio-unchecked','ultsl-record');
}
/*if($param_name == "exp_icon"){
//$icons = array('ultsl-checkbox-unchecked','ultsl-checkbox-partial','ultsl-stop','ultsl-radio-checked','ultsl-radio-unchecked','ultsl-record');
$icons = array('Defaults-circle-arrow-down','Defaults-arrow-down','Defaults-chevron-down','Defaults-hand-down','Defaults-circle-arrow-down','Defaults-angle-down','Defaults-chevron-sign-down');
}*/
$output = '<input type="hidden" name="'.esc_attr( $param_name ).'" class="wpb_vc_param_value '.esc_attr( $param_name ).' '.esc_attr( $type ).' '.esc_attr( $class ).'" value="'.esc_attr( $value ).'" id="trace-'.esc_attr( $uid ).'"/>';
//$output .= '<div class="ult-icon-preview icon-preview-'.$uid.'"><i class="'.$value.'"></i></div>';
//$output .='<input class="search" type="text" placeholder="Search" />';
$output .='<div id="icon-dropdown-'.esc_attr( $uid ).'" >';
$output .= '<ul class="icon-list">';
$n = 1;
foreach($icons as $icon)
{
$selected = ($icon == $value) ? 'class="selected"' : '';
$id = 'icon-'.$n;
$output .= '<li '.$selected.' data-ac-icon="'.esc_attr( $icon ).'"><i class="ult-icon '.esc_attr( $icon ).'"></i><label class="ult-icon">'.esc_html( $icon ).'</label></li>';
$n++;
}
$output .='</ul>';
$output .='</div>';
$output .= '<script type="text/javascript">
jQuery("#icon-dropdown-'.esc_attr( $uid ).' li").click(function() {
jQuery(this).attr("class","selected").siblings().removeAttr("class");
var icon = jQuery(this).attr("data-ac-icon");
jQuery("#trace-'.esc_attr( $uid ).'").val(icon);
jQuery(".icon-preview-'.esc_attr( $uid ).'").html("<i class=\'ult-icon "+icon+"\'></i>");
});
</script>';
$output .= '<style type="text/css">';
$output .= 'ul.icon-list li {
display: inline-block;
float: left;
padding: 5px;
border: 1px solid #ddd;
font-size: 18px;
width: 18px;
height: 18px;
line-height: 18px;
margin: 0 auto;
}
ul.icon-list li label.ult-icon {
display: none;
}
.ult-icon-preview {
padding: 5px;
font-size: 24px;
border: 1px solid #ddd;
display: inline-block;
}
ul.icon-list li.selected {
background: #3486D1;
padding: 10px;
margin: 0 -1px;
margin-top: -7px;
color: #fff;
font-size: 24px;
width: 24px;
height: 24px;
}';
$output .= '</style>';
return $output;
}
}
}
if(class_exists('Ultimate_Navigation'))
{
$Ultimate_Navigation = new Ultimate_Navigation();
}
@@ -0,0 +1,42 @@
<?php
if(!class_exists('Ultimate_Number_Param'))
{
class Ultimate_Number_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('number' , array(&$this, 'number_settings_field' ));
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('number' , array(&$this, 'number_settings_field' ));
}
}
}
function number_settings_field($settings, $value)
{
$dependency = '';
$param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
$type = isset($settings['type']) ? $settings['type'] : '';
$min = isset($settings['min']) ? $settings['min'] : '';
$max = isset($settings['max']) ? $settings['max'] : '';
$step = isset($settings['step']) ? $settings['step'] : '';
$suffix = isset($settings['suffix']) ? $settings['suffix'] : '';
$class = isset($settings['class']) ? $settings['class'] : '';
$output = '<input type="number" min="'.esc_attr( $min ).'" max="'.esc_attr( $max ).'" step="'. esc_attr( $step ).'" class="wpb_vc_param_value ' . esc_attr( $param_name ) . ' ' . esc_attr( $type ) . ' ' . esc_attr( $class ) . '" name="' . esc_attr( $param_name ) . '" value="'.esc_attr( $value ).'" style="max-width:100px; margin-right: 10px;" />'.esc_html($suffix);
return $output;
}
}
}
if(class_exists('Ultimate_Number_Param'))
{
$Ultimate_Number_Param = new Ultimate_Number_Param();
}
@@ -0,0 +1,39 @@
<?php
if(!class_exists('Ultimate_ParamHeading_Param'))
{
class Ultimate_ParamHeading_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_param_heading' , array($this, 'ult_param_heading_callback'));
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('ult_param_heading' , array($this, 'ult_param_heading_callback'));
}
}
}
function ult_param_heading_callback($settings, $value)
{
$dependency = '';
$param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
$class = isset($settings['class']) ? $settings['class'] : '';
$text = isset($settings['text']) ? $settings['text'] : '';
$output = '<h4 '.$dependency.' class="wpb_vc_param_value '.esc_attr( $class ).'">'.$text.'</h4>';
$output .= '<input type="hidden" name="'.esc_attr( $settings['param_name'] ).'" class="wpb_vc_param_value ultimate-param-heading '.esc_attr( $settings['param_name'] ).' '. esc_attr( $settings['type'] ).'_field" value="'.esc_attr( $value ).'" '.$dependency.'/>';
return $output;
}
}
}
if(class_exists('Ultimate_ParamHeading_Param'))
{
$Ultimate_ParamHeading_Param = new Ultimate_ParamHeading_Param();
}
@@ -0,0 +1,128 @@
<?php
/*
# Usage -
array(
'type' => 'radio_image_box',
'options' => array(
'image-1' => plugins_url('../assets/images/patterns/01.png',__FILE__),
'image-2' => plugins_url('../assets/images/patterns/12.png',__FILE__),
),
'useextension' => false, // if false it will use key as value instead file name. Eg - "image-1" instead "01.png"
'css' => array(
'width' => '40px',
'height' => '35px',
'background-repeat' => 'repeat',
'background-size' => 'cover'
),
)
*/
if(!class_exists('Ultimate_Radio_Image_Param'))
{
class Ultimate_Radio_Image_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('radio_image_box' , array(&$this, 'radio_image_settings_field' ) );
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('radio_image_box' , array(&$this, 'radio_image_settings_field' ) );
}
}
}
function radio_image_settings_field($settings, $value)
{
$default_css = array(
'width' => '25px',
'height' => '25px',
'background-repeat' => 'repeat',
'background-size' => 'cover'
);
$dependency = '';
$param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
$type = isset($settings['type']) ? $settings['type'] : '';
$options = isset($settings['options']) ? $settings['options'] : '';
$css = isset($settings['css']) ? $settings['css'] : $default_css;
$class = isset($settings['class']) ? $settings['class'] : '';
$useextension = (isset($settings['useextension']) && $settings['useextension'] != '' ) ? $settings['useextension'] : 'true';
$default = isset($settings['default']) ? $settings['default'] : 'transperant';
$uni = uniqid();
$output = '';
$output = '<input id="radio_image_setting_val_'.esc_attr( $uni ).'" class="wpb_vc_param_value ' . esc_attr( $param_name ) . ' ' . esc_attr( $type ) . ' ' . esc_attr( $class ) . ' '.esc_attr( $value ).' vc_ug_gradient" name="' . esc_attr( $param_name ) . '" style="display:none" value="'.esc_attr( $value ).'" '.$dependency.'/>';
$output .= '<div class="ult-radio-image-box" data-uniqid="'.esc_attr( $uni ).'">';
if($value == 'transperant')
$checked = 'checked';
else
$checked = '';
$output .= '<label>
<input type="radio" name="radio_image_'.esc_attr( $uni ).'" '.$checked.' class="radio_pattern_image" value="'.esc_attr( $default ).'" />
<span class="pattern-background no-bg" style="background:transperant;"></span>
</label>';
foreach($options as $key => $img_url)
{
if($value == $key)
$checked = 'checked';
else
$checked = '';
if($useextension != 'true')
{
$temp = pathinfo($key);
$temp_filename = $temp['filename'];
$key = $temp_filename;
}
$output .= '<label>
<input type="radio" name="radio_image_'.esc_attr( $uni ).'" '.$checked.' class="radio_pattern_image" value="'.esc_attr( $key ).'" />
<span class="pattern-background" style="background:url('.esc_url( $img_url ).')"></span>
</label>';
}
$output .= '</div>';
$output .= '<style>
.ult-radio-image-box label > input{ /* HIDE RADIO */
display:none;
}
.ult-radio-image-box label > input + img{ /* IMAGE STYLES */
cursor:pointer;
border:2px solid transparent;
}
.ult-radio-image-box .no-bg {
border:2px solid #ccc;
}
.ult-radio-image-box label > input:checked + img, .ult-radio-image-box label > input:checked + .pattern-background{ /* (CHECKED) IMAGE STYLES */
border:2px solid #f00;
}
.pattern-background {';
foreach($css as $attr => $inine_style)
{
$output .= $attr.':'.$inine_style.';';
}
$output .= 'display: inline-block;
border:2px solid transparent;
}
</style>';
$output .= '<script type="text/javascript">
jQuery(".radio_pattern_image").change(function(){
var radio_id = jQuery(this).parent().parent().data("uniqid");
var val = jQuery(this).val();
jQuery("#radio_image_setting_val_"+radio_id).val(val);
});
</script>';
return $output;
}
}
}
if(class_exists('Ultimate_Radio_Image_Param'))
{
$Ultimate_Radio_Image_Param = new Ultimate_Radio_Image_Param();
}
@@ -0,0 +1,178 @@
<?php
/*
# Param Use -
array(
"type" => "ultimate_responsive",
"class" => "",
"heading" => __("Font size", 'ultimate_vc'),
"param_name" => "YOUR_PARAM_NAME_FONT_SIZE",
"unit" => "px", // use '%' or 'px'
"media" => array(
// "Large Screen" => '',
"Desktop" => '28', // Here '28' is default value set for 'Desktop'
"Tablet" => '',
"Tablet Portrait" => '',
"Mobile Landscape" => '',
"Mobile" => '',
),
"group" => "Typography"
),
# Module implementation -
1] Create Data List -
$args = array(
'target' => '#ID .TARGET_element_CLASS, #ID #TARGET_element_ID', // set targeted element e.g. unique class/id etc.
'media_sizes' => array(
font-size' => $YOUR_PARAM_NAME_FONT_SIZE, // Your PARAM_NAME which you set in array
'line-height' => $YOUR_PARAM_NAME_LINE_HEIGHT // Your PARAM_NAME which you set in array
),
);
$data_list = get_ultimate_vc_responsive_media_css($args);
2] Add ID and class 'ult-responsive' and set data attribute - $data_list to targeted element
<div id="#ID" class='ult-responsive' '.$data_list.' >
<div class="TARGET_element_ID">
...
</div>
<div class="TARGET_element_CLASS">
...
</div>
....
</div>
Note - Without .ult-responsive class on target resposive param will not work
*/
if(!class_exists('Ultimate_Responsive'))
{
class Ultimate_Responsive
{
function __construct()
{
add_action( 'admin_enqueue_scripts', array( $this, 'ultimate_admin_responsive_param_scripts' ) );
if(defined('WPB_VC_VERSION') && version_compare(WPB_VC_VERSION, 4.8) >= 0) {
if(function_exists('vc_add_shortcode_param'))
{
vc_add_shortcode_param('ultimate_responsive', array($this, 'ultimate_responsive_callback'), UAVC_URL.'admin/vc_extend/js/ultimate-responsive.js');
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('ultimate_responsive', array($this, 'ultimate_responsive_callback'), UAVC_URL.'admin/vc_extend/js/ultimate-responsive.js');
}
}
}
function ultimate_responsive_callback($settings, $value)
{
$dependency = '';
$unit = $settings['unit'];
$medias = $settings['media'];
if(is_numeric($value)){
$value = "desktop:".$value.'px;';
}
$uid = 'ultimate-responsive-'. rand(1000, 9999);
$html = '<div class="ultimate-responsive-wrapper" id="'.$uid.'" >';
$html .= ' <div class="ultimate-responsive-items" >';
foreach($medias as $key => $default_value ) {
//$html .= $key;
switch ($key) {
case 'Desktop':
$class = 'required';
$data_id = strtolower((preg_replace('/\s+/', '_', $key)));
$dashicon = "<i class='dashicons dashicons-desktop'></i>";
$icons = 'simplify-icon dashicons dashicons-arrow-right-alt2';
if ( is_rtl() ) {
$icons = 'simplify-icon dashicons dashicons-arrow-left-alt2';
}
$html .= $this->ultimate_responsive_param_media($class, $dashicon, $key, $default_value ,$unit, $data_id);
$html .= "<div class='simplify'>
<div class='ult-tooltip simplify-options'>".__("Responsive Options","ultimate_vc")."</div>
<i class='$icons'></i>
</div>";
break;
case 'Tablet':
$class = 'optional';
$data_id = strtolower((preg_replace('/\s+/', '_', $key)));
$dashicon = "<i class='dashicons dashicons-tablet' style='transform: rotate(90deg);'></i>";
$html .= $this->ultimate_responsive_param_media($class, $dashicon, $key, $default_value ,$unit, $data_id);
break;
case 'Tablet Portrait':
$class = 'optional';
$data_id = strtolower((preg_replace('/\s+/', '_', $key)));
$dashicon = "<i class='dashicons dashicons-tablet'></i>";
$html .= $this->ultimate_responsive_param_media($class, $dashicon, $key, $default_value ,$unit, $data_id);
break;
case 'Mobile Landscape':
$class = 'optional';
$data_id = strtolower((preg_replace('/\s+/', '_', $key)));
$dashicon = "<i class='dashicons dashicons-smartphone' style='transform: rotate(90deg);'></i>";
$html .= $this->ultimate_responsive_param_media($class, $dashicon, $key, $default_value ,$unit, $data_id);
break;
case 'Mobile':
$class = 'optional';
$data_id = strtolower((preg_replace('/\s+/', '_', $key)));
$dashicon = "<i class='dashicons dashicons-smartphone'></i>";
$html .= $this->ultimate_responsive_param_media($class, $dashicon, $key, $default_value ,$unit, $data_id);
break;
}
}
$html .= ' </div>';
$html .= $this->get_units($unit);
$html .= ' <input type="hidden" data-unit="'.esc_attr( $unit ).'" name="'.esc_attr( $settings['param_name'] ).'" class="wpb_vc_param_value ultimate-responsive-value '. esc_attr( $settings['param_name'] ).' '.esc_attr( $settings['type'] ).'_field" value="'.esc_attr( $value ).'" '.$dependency.' />';
$html .= '</div>';
return $html;
}
function ultimate_responsive_param_media($class, $dashicon, $key, $default_value, $unit, $data_id) {
$tooltipVal = str_replace('_', ' ', $data_id);
$html = ' <div class="ult-responsive-item '.esc_attr( $class ).' '.esc_attr( $data_id ).' ">';
$html .= ' <span class="ult-icon">';
$html .= ' <div class="ult-tooltip '.esc_attr( $class ).' '.esc_attr( $data_id ).'">'.ucwords($tooltipVal).'</div>';
$html .= $dashicon;
$html .= ' </span>';
$html .= ' <input type="text" class="ult-responsive-input" data-default="'.esc_attr( $default_value ) .'" data-unit="'.esc_attr( $unit ).'" data-id="'.esc_attr( $data_id ).'" />';
$html .= ' </div>';
return $html;
}
function get_units($unit) {
// set units - px, em, %
$html = '<div class="ultimate-unit-section">';
$html .= ' <label>'.esc_html( $unit ).'</label>';
$html .= '</div>';
return $html;
}
// admin scripts
function ultimate_admin_responsive_param_scripts($hook) {
if($hook == "post.php" || $hook == "post-new.php"){
wp_enqueue_style( 'wp-color-picker' );
$bsf_dev_mode = bsf_get_option('dev_mode');
if($bsf_dev_mode === 'enable') {
$css_ext = '.css';
if ( is_rtl() ) {
$css_ext = '-rtl.css';
}
Ultimate_VC_Addons::ultimate_register_style( 'ultimate_responsive_param_css', UAVC_URL.'admin/vc_extend/css/ultimate_responsive' . $css_ext, true );
// wp_register_style('ultimate_responsive_param_css', plugins_url('../admin/vc_extend/css/ultimate_responsive.min.css', __FILE__ ));
wp_enqueue_style( 'ultimate_responsive_param_css');
}
}
}
}
}
if(class_exists('Ultimate_Responsive'))
{
$Ultimate_Responsive = new Ultimate_Responsive();
}
@@ -0,0 +1,62 @@
<?php
if(!class_exists('Ultimate_Select_Param'))
{
class Ultimate_Select_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_select2' , array($this, 'select2_param'));
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('ult_select2' , array($this, 'select2_param'));
}
}
}
function select2_param($settings, $value){
$param_name = isset($settings['param_name']) ? $settings['param_name'] : '';
$type = isset($settings['type']) ? $settings['type'] : '';
$class = isset($settings['class']) ? $settings['class'] : '';
$json = isset($settings['json']) ? $settings['json'] : '';
$jsonIterator = json_decode($json,true);
$selector = '<select name="'.esc_attr( $param_name ).'" class="wpb_vc_param_value ' . esc_attr( $param_name ) . ' ' . esc_attr( $type ) . ' ' . esc_attr( $class ) . '">';
foreach ($jsonIterator as $key => $val) {
if(is_array($val)) {
$labels = str_replace('_',' ', $key);
$selector .= '<optgroup label="'.ucwords( esc_attr( $labels ) ).'">';
foreach($val as $label => $style){
$label = str_replace('_',' ', $label);
if($style == $value)
$selector .= '<option selected value="'.esc_attr( $style ).'">'.esc_html__($label,"ultimate_vc").'</option>';
else
$selector .= '<option value="'.esc_attr( $style ).'">'.esc_html__($label,"ultimate_vc").'</option>';
}
} else {
if($val == $value)
$selector .= "<option selected value=".esc_attr( $val ).">".esc_html__($key,"ultimate_vc")."</option>";
else
$selector .= "<option value=".esc_attr( $val ).">".esc_html__($key,"ultimate_vc")."</option>";
}
}
$selector .= '<select>';
$output = '';
$output .= '<div class="select2_option" style="width: 45%; float: left;">';
$output .= $selector;
$output .= '</div>';
return $output;
}
}
}
if(class_exists('Ultimate_Select_Param'))
{
$Ultimate_Select_Param = new Ultimate_Select_Param();
}
@@ -0,0 +1,124 @@
<?php
if(!class_exists('Ult_Spacing'))
{
class Ult_Spacing
{
function __construct()
{
add_action( 'admin_enqueue_scripts', array( $this, 'ultimate_spacing_param_scripts' ) );
if(defined('WPB_VC_VERSION') && version_compare(WPB_VC_VERSION, 4.8) >= 0) {
if(function_exists('vc_add_shortcode_param'))
{
vc_add_shortcode_param('ultimate_spacing', array($this, 'ultimate_spacing_callback'), UAVC_URL.'admin/vc_extend/js/ultimate-spacing.js');
}
}
else {
if(function_exists('add_shortcode_param'))
{
add_shortcode_param('ultimate_spacing', array($this, 'ultimate_spacing_callback'), UAVC_URL.'admin/vc_extend/js/ultimate-spacing.js');
}
}
}
function ultimate_spacing_callback($settings, $value)
{
$dependency = '';
$positions = $settings['positions'];
$mode = $settings['mode'];
$uid = 'ultimate-spacing-'. rand(1000, 9999);
if(isset($settings['unit'])) { $unit = $settings['unit']; } else { $unit = ''; }
$html = '<div class="ultimate-spacing" id="'.esc_attr( $uid ).'" data-unit="'.esc_attr( $unit ).'" >';
// Expand / Collapse
$html .= '<div class="ult-spacing-expand">';
$html .= ' <span class="ult-tooltip">Expand / Collapse</span>';
$html .= ' <i class="dashicons dashicons-minus"></i>';
$html .= '</div>';
$html .= '<div class="ultimate-four-input-section" >';
foreach($positions as $key => $default_value) {
switch ($key) {
case 'Top':
// add '-width' if mode equals 'spacing'
$dashicon = 'dashicons dashicons-arrow-up-alt';
$html .= $this->ultimate_spacing_param_item($dashicon, $mode, $unit, /*$default_value,*/$default_value, $key);
break;
case 'Right':
$dashicon = 'dashicons dashicons-arrow-right-alt';
$html .= $this->ultimate_spacing_param_item($dashicon, $mode, $unit, /*$default_value,*/$default_value, $key);
break;
case 'Bottom':
$dashicon = 'dashicons dashicons-arrow-down-alt';
$html .= $this->ultimate_spacing_param_item($dashicon, $mode, $unit, /*$default_value,*/$default_value, $key);
break;
case 'Left':
$dashicon = 'dashicons dashicons-arrow-left-alt';
$html .= $this->ultimate_spacing_param_item($dashicon, $mode, $unit, /*$default_value,*/$default_value, $key);
break;
}
}
$html .= '<div class="ultimate-spacing-input-block ult-spacing-all " data-status="hide-all">
<span class="ultimate-spacing-icon"><i class="dashicons dashicons-editor-expand"></i></span>
<input type="text" class="ultimate-spacing-inputs ultimate-spacing-input" data-unit="'.esc_attr( $unit ).'" data-default="" data-id="'.esc_attr( $mode ).'" placeholder="All">
</div>';
$html .= $this->get_units($unit);
$html .= '</div><!-- .ultimate-four-input-section -->';
$html .= ' <input type="hidden" data-unit="'.esc_attr( $unit ).'" name="'.esc_attr( $settings['param_name'] ).'" class="wpb_vc_param_value ultimate-spacing-value '.esc_attr( $settings['param_name'] ).' '.esc_attr( $settings['type'] ).'_field" value="'.esc_attr( $value ).'" '.$dependency.' />';
$html .= '</div>';
return $html;
}
function ultimate_spacing_param_item($dashicon, $mode, $unit,/* $default_value,*/$default_value, $key) {
$html = ' <div class="ultimate-spacing-input-block ult-spacing-single">';
$html .= ' <span class="ultimate-spacing-icon">';
$html .= ' <i class="'.esc_attr($dashicon).'"></i>';
$html .= ' </span>';
$html .= ' <input type="text" class="ultimate-spacing-inputs ultimate-spacing-input" data-unit="'.esc_attr( $unit ).'" data-default="'.esc_attr( $default_value ).'" data-id="'.esc_attr( $mode.'-'.strtolower($key) ).'" placeholder="'.esc_attr( $key ).'" />';
$html .= ' </div>';
return $html;
}
function get_units($unit) {
// set units - px, em, %
$html = '<div class="ultimate-unit-section">';
//$html .= ' <label>'.$unit.'</label>';
$html .= ' <select data-placeholder="Select Unit" class="ult-unit-spacing" >';
switch($unit) {
case "px": $html .= ' <option value="px" selected>px</option>';
$html .= ' <option value="em">em</option>';
$html .= ' <option value="%">%</option>';
break;
case "em": $html .= ' <option value="em" selected>em</option>';
$html .= ' <option value="px">px</option>';
$html .= ' <option value="%">%</option>';
break;
case "%": $html .= ' <option value="%" selected>%</option>';
$html .= ' <option value="px">px</option>';
$html .= ' <option value="em">em</option>';
break;
}
$html .= ' </select>';
$html .= '</div>';
return $html;
}
function ultimate_spacing_param_scripts($hook) {
if($hook == "post.php" || $hook == "post-new.php"){
$bsf_dev_mode = bsf_get_option('dev_mode');
if($bsf_dev_mode === 'enable') {
wp_register_style( 'ultimate_spacing_css', UAVC_URL.'admin/vc_extend/css/ultimate_spacing.css');
wp_enqueue_style( 'ultimate_spacing_css');
}
}
}
}
}
if(class_exists('Ult_Spacing'))
{
$Ult_Spacing = new Ult_Spacing();
}
@@ -0,0 +1,89 @@
<?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="ult-onoffswitch">
<input type="checkbox" name="'.esc_attr( $param_name ).'" value="'.esc_attr( $value ).'" '.$dependency.' class="wpb_vc_param_value ' . esc_attr( $param_name ) . ' ' . esc_attr( $type ) . ' ' . esc_attr( $class ) . ' '.esc_attr( $dependency ).' ult-onoffswitch-checkbox chk-switch-'.esc_attr( $un ).'" id="switch'.esc_attr( $uid ).'" '.$checked.'>
<label class="ult-onoffswitch-label" for="switch'.esc_attr( $uid ).'">
<div class="ult-onoffswitch-inner">
<div class="ult-onoffswitch-active">
<div class="ult-onoffswitch-switch">'.esc_html( $opts['on'] ).'</div>
</div>
<div class="ult-onoffswitch-inactive">
<div class="ult-onoffswitch-switch">'.esc_html( $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'.esc_attr( $uid ).'").change(function(){
if(jQuery("#switch'.esc_attr( $uid ).'").is(":checked")){
jQuery("#switch'.esc_attr( $uid ).'").val("'.esc_attr( $key ).'");
jQuery("#switch'.esc_attr( $uid ).'").attr("checked","checked");
} else {
jQuery("#switch'.esc_attr( $uid ).'").val("'.esc_attr( $set_value ).'");
jQuery("#switch'.esc_attr( $uid ).'").removeAttr("checked");
}
});
</script>';
return $output;
}
}
}
if(class_exists('Ultimate_Switch_Param'))
{
$Ultimate_Switch_Param = new Ultimate_Switch_Param();
}
@@ -0,0 +1,275 @@
[08-Nov-2025 01:43:18 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php(246): Ultimate_Border->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php on line 9
[08-Nov-2025 01:43:18 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php:44
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php(157): Ultimate_BoxShadow->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php on line 44
[08-Nov-2025 01:43:21 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php:40
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php(106): Ult_Image_Single->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php on line 40
[08-Nov-2025 01:43:23 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php:55
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php(177): Ultimate_Responsive->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php on line 55
[08-Nov-2025 01:43:23 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php(123): Ult_Spacing->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php on line 9
[15-Nov-2025 02:56:12 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php(246): Ultimate_Border->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php on line 9
[15-Nov-2025 02:56:12 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php:44
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php(157): Ultimate_BoxShadow->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php on line 44
[15-Nov-2025 02:56:12 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php:40
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php(106): Ult_Image_Single->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php on line 40
[15-Nov-2025 02:56:12 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php:55
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php(177): Ultimate_Responsive->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php on line 55
[15-Nov-2025 02:56:12 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php(123): Ult_Spacing->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php on line 9
[11-Dec-2025 17:24:22 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php(246): Ultimate_Border->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php on line 9
[11-Dec-2025 17:24:22 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php:44
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php(157): Ultimate_BoxShadow->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php on line 44
[11-Dec-2025 17:24:23 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php:40
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php(106): Ult_Image_Single->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php on line 40
[11-Dec-2025 17:24:24 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php:55
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php(177): Ultimate_Responsive->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php on line 55
[11-Dec-2025 17:24:24 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php(123): Ult_Spacing->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php on line 9
[22-Feb-2026 00:16:28 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php(246): Ultimate_Border->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php on line 9
[22-Feb-2026 00:16:35 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php:44
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php(157): Ultimate_BoxShadow->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php on line 44
[22-Feb-2026 00:16:41 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php:40
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php(106): Ult_Image_Single->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php on line 40
[22-Feb-2026 00:16:45 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php:55
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php(177): Ultimate_Responsive->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php on line 55
[22-Feb-2026 00:16:49 UTC] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php(123): Ult_Spacing->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php on line 9
[20-May-2026 08:04:18 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php(246): Ultimate_Border->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php on line 9
[20-May-2026 08:04:18 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php:44
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php(157): Ultimate_BoxShadow->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php on line 44
[20-May-2026 08:04:19 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php:40
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php(106): Ult_Image_Single->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php on line 40
[20-May-2026 08:04:19 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php:55
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php(177): Ultimate_Responsive->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php on line 55
[20-May-2026 08:04:19 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php(123): Ult_Spacing->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php on line 9
[15-Jul-2026 14:28:05 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php(246): Ultimate_Border->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php on line 9
[15-Jul-2026 14:28:06 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php:44
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php(157): Ultimate_BoxShadow->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php on line 44
[15-Jul-2026 14:28:09 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php:40
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php(106): Ult_Image_Single->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php on line 40
[15-Jul-2026 14:28:12 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php:55
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php(177): Ultimate_Responsive->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php on line 55
[15-Jul-2026 14:28:13 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php(123): Ult_Spacing->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php on line 9
[16-Jul-2026 13:28:08 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php(246): Ultimate_Border->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php on line 9
[16-Jul-2026 13:28:09 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php:44
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php(157): Ultimate_BoxShadow->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php on line 44
[16-Jul-2026 13:28:17 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php:40
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php(106): Ult_Image_Single->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php on line 40
[16-Jul-2026 13:30:31 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php:55
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php(177): Ultimate_Responsive->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php on line 55
[16-Jul-2026 13:34:43 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php(123): Ult_Spacing->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php on line 9
[21-Aug-2026 12:43:43 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php(246): Ultimate_Border->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php on line 9
[21-Aug-2026 12:43:43 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php:44
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php(157): Ultimate_BoxShadow->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php on line 44
[21-Aug-2026 12:43:45 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php:40
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php(106): Ult_Image_Single->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php on line 40
[21-Aug-2026 12:43:46 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php:55
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php(177): Ultimate_Responsive->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php on line 55
[21-Aug-2026 12:43:46 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php(123): Ult_Spacing->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php on line 9
[22-Aug-2026 01:25:28 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php(246): Ultimate_Border->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php on line 9
[22-Aug-2026 01:25:29 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php:44
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php(157): Ultimate_BoxShadow->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php on line 44
[22-Aug-2026 01:25:30 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php:40
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php(106): Ult_Image_Single->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php on line 40
[22-Aug-2026 01:25:31 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php:55
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php(177): Ultimate_Responsive->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php on line 55
[22-Aug-2026 01:25:31 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php(123): Ult_Spacing->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php on line 9
[24-Aug-2026 19:02:00 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php(246): Ultimate_Border->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php on line 9
[24-Aug-2026 19:02:00 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php:44
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php(157): Ultimate_BoxShadow->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php on line 44
[24-Aug-2026 19:02:00 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php:40
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php(106): Ult_Image_Single->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php on line 40
[24-Aug-2026 19:02:00 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php:55
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php(177): Ultimate_Responsive->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php on line 55
[24-Aug-2026 19:02:01 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php(123): Ult_Spacing->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php on line 9
[25-Aug-2026 11:17:02 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php(246): Ultimate_Border->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Border.php on line 9
[25-Aug-2026 11:17:02 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php:44
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php(157): Ultimate_BoxShadow->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_BoxShadow.php on line 44
[25-Aug-2026 11:17:02 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php:40
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php(106): Ult_Image_Single->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Image_Single.php on line 40
[25-Aug-2026 11:17:03 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php:55
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php(177): Ultimate_Responsive->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Responsive.php on line 55
[25-Aug-2026 11:17:03 Asia/Jakarta] PHP Fatal error: Uncaught Error: Call to undefined function add_action() in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php:9
Stack trace:
#0 /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php(123): Ult_Spacing->__construct()
#1 {main}
thrown in /home/nurm6544/public_html/wp-content/plugins/Ultimate_VC_Addons/params/Ultimate_Spacing.php on line 9