__('Text','visual-slider'),
'id' => 'text',
'img' => VISUALSLIDER_DIR .'admin/assets/image/layer_text.png'
);
include VISUALSLIDER_PATH . 'layer/mini/position_size.php';
$option[]= array(
"name" => __('Text','visual-slider'),
"default" => __('Lorem ipsum dolor sit amet, consectetur adipiscing elit','visual-slider'),
"id" => "text",
"type" => "textarea",
"warp_width" => "100%",
"group" => __('Content','visual-slider'),
);
$option[]= array(
"name" => __('Link','visual-slider'),
"id" => "text_link",
"type" => "text",
"placeholder" => "http://",
"warp_width" => "100%",
"width" => "100%",
"group" => __('Content','visual-slider'),
);
$option[] = array(
"name" => __('Open in a new window','visual-slider'),
"id" => "text_widows",
"type" => "checkbox",
"group" => __('Content','visual-slider'),
);
$option[]= array(
"name" => __('HTML Tag','visual-slider'),
"id" => "text_html_tag",
"group" => __('Content','visual-slider'),
"type" => "select",
"default" => '',
"options" =>
array(
"" => __('Default','visual-slider'),
"h1" => 'H1',
"h2" => 'H2',
"h3" => 'H3',
"h4" => 'H4',
"h4" => 'H5',
"h6" => 'H6',
"div" => 'div',
"span" => 'span',
"p" => 'p',
),
);
$option[]= array(
"responsive" => "desktop",
"name" => __('Alignment','visual-slider'),
"id" => "text_align",
"type" => "radio_image",
"default" => 'center',
"group" => __('Content','visual-slider'),
"options" => array(
'left' => VISUALSLIDER_DIR.'admin/assets/image/left.jpg',
'center' => VISUALSLIDER_DIR.'admin/assets/image/center.jpg',
'right' => VISUALSLIDER_DIR.'admin/assets/image/right.jpg',
),
);
if(!empty(wp_unslash(filter_input( INPUT_POST, 'vs_tablet', FILTER_VALIDATE_BOOLEAN )))){
$option[]= array(
"responsive" => "tablet",
"name" => __('Responsive on tablet','visual-slider'),
"group" => __('Content','visual-slider'),
"id" => "tablet_text_align_heading",
"type" => "heading",
);
$option[]= array(
"responsive" => "tablet",
"name" => __('Alignment on Tablet','visual-slider'),
"id" => "tablet_text_align",
"type" => "radio_image",
"default" => '',
"group" => __('Content','visual-slider'),
"options" => array(
'' => VISUALSLIDER_DIR.'admin/assets/image/none.jpg',
'left' => VISUALSLIDER_DIR.'admin/assets/image/left.jpg',
'center' => VISUALSLIDER_DIR.'admin/assets/image/center.jpg',
'right' => VISUALSLIDER_DIR.'admin/assets/image/right.jpg',
),
);
}
if(!empty(wp_unslash(filter_input( INPUT_POST, 'vs_mobile', FILTER_VALIDATE_BOOLEAN )))){
$option[]= array(
"responsive" => "mobile",
"name" => __('Responsive on Mobile','visual-slider'),
"group" => __('Content','visual-slider'),
"id" => "tablet_text_align_heading",
"type" => "heading",
);
$option[]= array(
"responsive" => "mobile",
"name" => __('Alignment on Mobile','visual-slider'),
"id" => "mobile_text_align",
"type" => "radio_image",
"default" => '',
"group" => __('Content','visual-slider'),
"options" => array(
'' => VISUALSLIDER_DIR.'admin/assets/image/none.jpg',
'left' => VISUALSLIDER_DIR.'admin/assets/image/left.jpg',
'center' => VISUALSLIDER_DIR.'admin/assets/image/center.jpg',
'right' => VISUALSLIDER_DIR.'admin/assets/image/right.jpg',
),
);
}
/// *********************** Text*************************************************************************************/
$option[]= array(
"name" => __('Icon','visual-slider'),
"id" => "icon",
"type" => "icon",
"group" => __('Icon','visual-slider'),
);
$option[]= array(
"name" => __('Icon Alignment','visual-slider'),
"id" => "icon_align",
"fold" => array(
true => 'icon',
),
"type" => "radio_image",
"group" => __('Icon','visual-slider'),
"options" => array(
'left' => VISUALSLIDER_DIR.'admin/assets/image/left.jpg',
'right' => VISUALSLIDER_DIR.'admin/assets/image/right.jpg',
),
);
$option[]= array(
"name" => __('Hover','visual-slider'),
"id" => "icon_effects",
"group" => __('Icon','visual-slider'),
"type" => "hover",
"fold" => array(
true => 'icon',
) ,
"options" => array(
'normal' => __('NORMAL','visual-slider'),
'hover' => __('HOVER','visual-slider'),
),
);
$option[]= array(
"name" => __('Icon Color','visual-slider'),
"id" => "icon_color",
"fold" => array(
'normal' => 'icon_effects',
),
"group" => __('Icon','visual-slider'),
"type" => "multi_options",
"options" => array(
array(
"id" => "first",
"type" => "color_rgba",
),
),
);
$option[]= array(
"name" => __('Icon Hover Color','visual-slider'),
"id" => "icon_hover_color",
"fold" => array(
'hover' => 'icon_effects',
),
"group" => __('Icon','visual-slider'),
"type" => "multi_options",
"options" => array(
array(
"id" => "first",
"type" => "color_rgba",
),
),
);
$option[]= array(
"name" => __('Hover','visual-slider'),
"id" => "text_effects",
"group" => __('Style','visual-slider'),
"type" => "hover",
"options" => array(
'normal' => __('NORMAL','visual-slider'),
'hover' => __('HOVER','visual-slider'),
),
);
$option[]= array(
"name" => __('Text Color','visual-slider'),
"id" => "text_color",
"fold" => array(
'normal' => 'text_effects',
) ,
"group" => __('Style','visual-slider'),
"type" => "multi_options",
"options" => array(
array(
"id" => "first",
"type" => "color_rgba",
),
),
);
$option[]= array(
"name" => __('Text Hover Color','visual-slider'),
"id" => "text_hover_color",
"fold" => array(
'hover' => 'text_effects',
) ,
"group" => __('Style','visual-slider'),
"type" => "multi_options",
"options" => array(
array(
"id" => "first",
"type" => "color_rgba",
),
),
);
$option[]= array(
"name" => __('Text Shadow','visual-slider'),
"id" => "text_shadow",
"fold" => array(
'normal' => 'text_effects',
) ,
"group" => __('Style','visual-slider'),
"type" => "multi_options",
"options" => vs_multi_array_options('text_shadow'),
);
$option[]= array(
"name" => __('Text Hover Shadow','visual-slider'),
"id" => "text_hover_shadow",
"fold" => array(
'hover' => 'text_effects',
) ,
"group" => __('Style','visual-slider'),
"type" => "multi_options",
"options" => vs_multi_array_options('text_shadow'),
);
/***********************************boxed************************************************************************************/
$boxed='text';
include VISUALSLIDER_PATH . 'layer/mini/boxed.php';
include VISUALSLIDER_PATH . 'layer/mini/text_typography.php';
include VISUALSLIDER_PATH . 'layer/mini/effect.php';
$item['options']=$option;
$element[]=$item;
return $element;
}
}
}
/*****************************************************************************************************************************************************
******************************************************************************************************************************************************
Slider Text Config
*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if ( !function_exists ( "vs_text_perview" )){
add_filter('vs_layer_perview_text', 'vs_text_perview');
function vs_text_perview( $value ) {
$key= $value['key'];
echo '';
////////////////////////////////////////////////////////////End////////////////////////////////////////////////////////////////////////////////////////
}
}
if ( !function_exists ( "vs_text_config" )){
add_filter('vs_layer_text', 'vs_text_config');
function vs_text_config( $value ) {
$option= $value['option'];
$key= $value['key'];
$global_key= $value['global_key'];
$slide_key= $value['slide_key'];
$text_html_tag = !empty($option['text_html_tag'])?$option['text_html_tag']:'div';
$text_boxed = !empty($option['text_boxed'])?$option['text_boxed']:'';
if($text_boxed=='boxed'){
$boxed ='vs-text-boxed';
}else{
$boxed ='vs-text-none';
}
$icon_align = !empty($option['icon_align'])?'vs-icon-'.vs_rtl_has($option['icon_align']).' ':'';
//text Css
echo '';
}
}