__('Image','visual-slider'), 'id' => 'image', 'img' => VISUALSLIDER_DIR .'admin/assets/image/layer_image.png' ); include VISUALSLIDER_PATH . 'layer/mini/position_size.php'; $option[]= array( "name" => __('Image','visual-slider'), "id" => "image", "default" => VISUALSLIDER_DIR.'admin/assets/image/image.png', "group" => __('Image','visual-slider'), "type" => "image", ); $option[]= array( "name" => __('Alignment','visual-slider'), "id" => "image_align", "type" => "radio_image", "default" => 'center', "group" => __('Image','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" => __('Image','visual-slider'), "id" => "tablet_image_align_heading", "type" => "heading", ); $option[]= array( "responsive" => "tablet", "name" => __('Alignment on Tablet','visual-slider'), "id" => "tablet_image_align", "type" => "radio_image", "default" => '', "group" => __('Image','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" => __('Image','visual-slider'), "id" => "tablet_image_align_heading", "type" => "heading", ); $option[]= array( "responsive" => "mobile", "name" => __('Alignment on Mobile','visual-slider'), "id" => "mobile_image_align", "type" => "radio_image", "default" => '', "group" => __('Image','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', ), ); } include VISUALSLIDER_PATH . 'layer/mini/effect.php'; $item['options']=$option; $element[]=$item; return $element; } } } /***************************************************************************************************************************************************** ****************************************************************************************************************************************************** Slider Text Config *///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// if ( !function_exists ( "vs_image_perview" )){ add_filter('vs_layer_perview_image', 'vs_image_perview'); function vs_image_perview( $value ) { $option= $value['option']; $key= $value['key']; ////////////////////////////////////////////////////////////OUTPUT//////////////////////////////////////////////////////////////////////////////////////// echo ''; } } if ( !function_exists ( "vs_image_config" )){ add_filter('vs_layer_image', 'vs_image_config'); function vs_image_config( $value ) { $option= $value['option']; $key= $value['key']; $global_key= $value['global_key']; $slide_key= $value['slide_key']; echo ''; } }