'1', 'speed' => '', 'style' => '', 'itemres' => '', 'nav_slider'=> 'nav-hidden', 'animation' => '', ),$attr)); $html .= '
'; $html .= '
'; $html .= wpb_js_remove_wpautop($content, false); $html .= '
'; $html .= '
'; return $html; } } stp_reg_shortcode('slide_carousel','sv_vc_slide_carousel'); vc_map( array( 'name' => esc_html__( 'Carousel Slider', 'bigc' ), 'base' => 'slide_carousel', 'category' => esc_html__( '7Up-theme', 'bigc' ), 'icon' => 'icon-st', 'as_parent' => array( 'only' => 'vc_column_text,slide_carousel_item_image,slide_partner_item,slide_testimonial_item,slide_banner_item,slide_team_item,slide_testimonial_item2' ), 'content_element' => true, 'js_view' => 'VcColumnView', 'params' => array( array( 'heading' => esc_html__( 'Item slider display', 'bigc' ), 'type' => 'textfield', 'description' => esc_html__( 'Enter number of item. Default is 1.', 'bigc' ), 'param_name' => 'item', ), array( 'heading' => esc_html__( 'Speed', 'bigc' ), 'type' => 'textfield', 'description' => esc_html__( 'Enter time slider go to next item. Unit (ms). Example 5000. If empty this field autoPlay is false.', 'bigc' ), 'param_name' => 'speed', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Navigation style', 'bigc' ), 'param_name' => 'nav_slider', 'value' => array( esc_html__( 'Hidden', 'bigc' ) => 'nav-hidden', esc_html__( 'Default', 'bigc' ) => 'default', esc_html__( 'Default Inner', 'bigc' ) => 'default-paginav', esc_html__( 'Default ontop', 'bigc' ) => 'nav-ontop', esc_html__( 'Pagination on top', 'bigc' ) => 'the-brand', esc_html__( 'Navigation Arrow', 'bigc' ) => 'owl-arrow-banner', esc_html__( 'Caret Arrow', 'bigc' ) => 'post-slider', esc_html__( 'Pagination on right', 'bigc' ) => 'banner-slider-circle-vertical', esc_html__( 'Navigation Arrow on top right', 'bigc' ) => 'home-directnav', esc_html__( 'Pagination rect vertical', 'bigc' ) => 'banner-slider-rect-vertical', esc_html__( 'Navigation Arrow style 2', 'bigc' ) => 'partner-slider-directnav', esc_html__( 'Pagination dot hoztical', 'bigc' ) => 'banner-slider-circle-hoztical', ) ), array( 'heading' => esc_html__( 'Custom Item', 'bigc' ), 'type' => 'textfield', 'description' => esc_html__( 'Enter custom item for each window 360px,480px,768px,992px. Default is auto. Example: "2,3,4,5"', 'bigc' ), 'param_name' => 'itemres', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Animation', 'bigc' ), 'param_name' => 'animation', 'value' => array( esc_html__( 'None', 'bigc' ) => '', esc_html__( 'Fade', 'bigc' ) => 'fade', esc_html__( 'BackSlide', 'bigc' ) => 'backSlide', esc_html__( 'GoDown', 'bigc' ) => 'goDown', esc_html__( 'FadeUp', 'bigc' ) => 'fadeUp', ) ), ) ) ); /*******************************************END MAIN*****************************************/ /**************************************BEGIN ITEM************************************/ if(!function_exists('sv_vc_slide_carousel_item_image')) { function sv_vc_slide_carousel_item_image($attr, $content = false) { $html = ''; extract(shortcode_atts(array( 'title' => '', 'image_center' => '', 'label' => '', 'link_center' => '#', 'image_left' => '', 'link_left' => '', 'image_right' => '', 'link_right' => '', ),$attr)); if(!empty($image_left) && !empty($image_center) && !empty($image_right)): if(empty($link_left)) $link_left = $link_center; if(empty($link_right)) $link_right = $link_center; if(!empty($label)) $html_bt = ''.$label.''; else $html_bt = ''; $html .= '
'; endif; return $html; } } stp_reg_shortcode('slide_carousel_item_image','sv_vc_slide_carousel_item_image'); vc_map( array( 'name' => esc_html__( 'Carousel Item', 'bigc' ), 'base' => 'slide_carousel_item_image', 'icon' => 'icon-st', 'content_element' => true, 'as_child' => array('only' => 'slide_carousel'), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Title', 'bigc' ), 'param_name' => 'title', ), array( 'type' => 'attach_image', 'heading' => esc_html__( 'Image Center', 'bigc' ), 'param_name' => 'image_center', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Label button', 'bigc' ), 'param_name' => 'label', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Link Center', 'bigc' ), 'param_name' => 'link_center', ), //Left settings array( 'type' => 'attach_image', 'heading' => esc_html__( 'Image Left', 'bigc' ), 'param_name' => 'image_left', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Link Left', 'bigc' ), 'param_name' => 'link_left', ), //Right settings array( 'type' => 'attach_image', 'heading' => esc_html__( 'Image Right', 'bigc' ), 'param_name' => 'image_right', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Link Right', 'bigc' ), 'param_name' => 'link_right', ), ) ) ); /**************************************END ITEM************************************/ /**************************************BEGIN ITEM************************************/ //Partner Frontend if(!function_exists('sv_vc_slide_partner_item')) { function sv_vc_slide_partner_item($attr, $content = false) { $html = ''; extract(shortcode_atts(array( 'image' => '', 'link' => '#', ),$attr)); if(!empty($image)){ $html .= '
'.wp_get_attachment_image($image,'full').'
'; } return $html; } } stp_reg_shortcode('slide_partner_item','sv_vc_slide_partner_item'); // Partner item vc_map( array( 'name' => esc_html__( 'Partner Item', 'bigc' ), 'base' => 'slide_partner_item', 'icon' => 'icon-st', 'content_element' => true, 'as_child' => array('only' => 'slide_carousel'), 'params' => array( array( 'type' => 'attach_image', 'heading' => esc_html__( 'Image', 'bigc' ), 'param_name' => 'image', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Link Partner', 'bigc' ), 'param_name' => 'link', ), ) ) ); /**************************************END ITEM************************************/ /**************************************BEGIN ITEM************************************/ //Testimonial Frontend if(!function_exists('sv_vc_slide_testimonial_item')) { function sv_vc_slide_testimonial_item($attr, $content = false) { $html = ''; extract(shortcode_atts(array( 'style' => 'style-1', 'image' => '', // 'bg_image' => '', 'name' => '', 'position' => '', 'link' => '#', ),$attr)); if(!empty($image)){ if($style == 'style-2'){ $html .= '
'.wpb_js_remove_wpautop($content, true).'

'.$name.'

'.$position.'
'; } else{ $html .= '
'.wp_get_attachment_image($image,array(570,390),0,array('class'=>'testimo-thumb')).'
'.wpb_js_remove_wpautop($content, true).'
'; } } return $html; } } stp_reg_shortcode('slide_testimonial_item','sv_vc_slide_testimonial_item'); // Testimonial item vc_map( array( 'name' => esc_html__( 'Testimonial Item', 'bigc' ), 'base' => 'slide_testimonial_item', 'icon' => 'icon-st', 'content_element' => true, 'as_child' => array('only' => 'slide_carousel'), 'params' => array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Style', 'bigc' ), 'param_name' => 'style', 'value' => array( esc_html__( 'Style 1', 'bigc' ) => 'style-1', esc_html__( 'Style 2', 'bigc' ) => 'style-2', ) ), array( 'type' => 'attach_image', 'heading' => esc_html__( 'Avatar', 'bigc' ), 'param_name' => 'image', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Name', 'bigc' ), 'param_name' => 'name', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Position', 'bigc' ), 'param_name' => 'position', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Link Detail', 'bigc' ), 'param_name' => 'link', ), array( "type" => "textarea_html", "holder" => "div", "heading" => esc_html__("Content",'bigc'), "param_name" => "content", ), ) ) ); /**************************************END ITEM************************************/ /**************************************BEGIN ITEM************************************/ //Testimonial Frontend 2 if(!function_exists('sv_vc_slide_testimonial_item2')) { function sv_vc_slide_testimonial_item2($attr, $content = false) { $html = ''; extract(shortcode_atts(array( 'name1' => '', 'image1' => '', 'position1' => '', 'link1' => '#', 'name2' => '', 'image2' => '', 'position2' => '', 'link2' => '#', 'content_left' => '', 'content_right' => '', ),$attr)); // $html .= '
//
// // //
//
'; $html .= '

'.$content_left.'

'.$content_right.'

'; return $html; } } stp_reg_shortcode('slide_testimonial_item2','sv_vc_slide_testimonial_item2'); // Testimonial item vc_map( array( 'name' => esc_html__( 'Testimonial Item 2', 'bigc' ), 'base' => 'slide_testimonial_item2', 'icon' => 'icon-st', 'content_element' => true, 'as_child' => array('only' => 'slide_carousel'), 'params' => array( array( 'type' => 'attach_image', 'heading' => esc_html__( 'Avatar Left', 'bigc' ), 'param_name' => 'image1', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Name Left', 'bigc' ), 'param_name' => 'name1', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Position Left', 'bigc' ), 'param_name' => 'position1', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Link Left', 'bigc' ), 'param_name' => 'link1', ), array( "type" => "textarea", "heading" => esc_html__("Content Left",'bigc'), "param_name" => "content_left", ), array( 'type' => 'attach_image', 'heading' => esc_html__( 'Avatar Right', 'bigc' ), 'param_name' => 'image2', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Name Right', 'bigc' ), 'param_name' => 'name2', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Position Right', 'bigc' ), 'param_name' => 'position2', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Link Right', 'bigc' ), 'param_name' => 'link2', ), array( "type" => "textarea", "heading" => esc_html__("Content Right",'bigc'), "param_name" => "content_right", ), ) ) ); /**************************************END ITEM************************************/ /**************************************BEGIN ITEM************************************/ //Banner item Frontend if(!function_exists('sv_vc_slide_banner_item')) { function sv_vc_slide_banner_item($attr, $content = false) { $html = ''; extract(shortcode_atts(array( 'style' => '', 'image' => '', 'link' => '', ),$attr)); if(!empty($image)){ if($style == 'style-3'){ $html .= '
'; } else{ $html .= '
'; if(!empty($content)){ if($style == 'style-2'){ $html .= ''; } else{ $html .= ''; } } $html .= '
'; } } return $html; } } stp_reg_shortcode('slide_banner_item','sv_vc_slide_banner_item'); // Banner item vc_map( array( 'name' => esc_html__( 'Banner Item', 'bigc' ), 'base' => 'slide_banner_item', 'icon' => 'icon-st', 'content_element' => true, 'as_child' => array('only' => 'slide_carousel'), 'params' => array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Image', 'bigc' ), 'param_name' => 'style', 'value' => array( esc_html__( 'Style 1', 'bigc' ) => '', esc_html__( 'Style 2', 'bigc' ) => 'style-2', esc_html__( 'Style 3', 'bigc' ) => 'style-3', ) ), array( 'type' => 'attach_image', 'heading' => esc_html__( 'Image', 'bigc' ), 'param_name' => 'image', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Link Banner', 'bigc' ), 'param_name' => 'link', ), array( "type" => "textarea_html", "holder" => "div", "heading" => esc_html__("Content",'bigc'), "param_name" => "content", ), ) ) ); /**************************************END ITEM************************************/ /**************************************BEGIN ITEM************************************/ //Team item Frontend if(!function_exists('sv_vc_slide_team_item')) { function sv_vc_slide_team_item($attr, $content = false) { $html = ''; extract(shortcode_atts(array( 'image' => '', 'link' => '', 'title' => '', 'name' => '', 'socials' => '', ),$attr)); parse_str( urldecode( $socials ), $data); $html .= '

'.$title.'

'.wp_get_attachment_image($image,'full').' '.esc_html__("by","bigc").' '.$name.' '.wpb_js_remove_wpautop($content, true); if(is_array($data)){ $html .= ''; } $html .= '
'; return $html; } } stp_reg_shortcode('slide_team_item','sv_vc_slide_team_item'); // Team item vc_map( array( 'name' => esc_html__( 'Team Item', 'bigc' ), 'base' => 'slide_team_item', 'icon' => 'icon-st', 'content_element' => true, 'as_child' => array('only' => 'slide_carousel'), 'params' => array( array( 'type' => 'textfield', 'heading' => esc_html__( 'Title', 'bigc' ), 'param_name' => 'title', ), array( 'type' => 'attach_image', 'heading' => esc_html__( 'Image', 'bigc' ), 'param_name' => 'image', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Name', 'bigc' ), 'param_name' => 'name', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Link Detail', 'bigc' ), 'param_name' => 'link', ), array( "type" => "textarea_html", "holder" => "div", "heading" => esc_html__("Content",'bigc'), "param_name" => "content", ), array( 'type' => 'add_social', 'heading' => esc_html__( 'Social', 'bigc' ), 'param_name' => 'socials', ), ) ) ); /**************************************END ITEM************************************/ //Your "container" content element should extend WPBakeryShortCodesContainer class to inherit all required functionality if ( class_exists( 'WPBakeryShortCodesContainer' ) ) { class WPBakeryShortCode_Slide_Carousel extends WPBakeryShortCodesContainer { } } if ( class_exists( 'WPBakeryShortCode' ) ) { class WPBakeryShortCode_Slide_Carousel_Item_Image extends WPBakeryShortCode {} class WPBakeryShortCode_Slide_Partner_Item extends WPBakeryShortCode {} class WPBakeryShortCode_Slide_Testimonial_Item extends WPBakeryShortCode {} class WPBakeryShortCode_Slide_Testimonial_Item2 extends WPBakeryShortCode {} class WPBakeryShortCode_Slide_Banner_Item extends WPBakeryShortCode {} class WPBakeryShortCode_Slide_Team_Item extends WPBakeryShortCode {} }