<?php
$output = $el_class = '';
extract(shortcode_atts(array(
    'el_class' => '',
    'row_type'=>0,
    'row_id'=>'',
    'blox_image'=>'',
    'blox_height'=>'',
	'blox_bg_attachment'=>'',
    'blox_cover'=>'',
    'blox_repeat'=>'',
	'page_title'=>'',
	'align_center'=>'',
    'blox_padding_top'=>'',
    'blox_padding_bottom'=>'',
    'blox_dark'=>'',
    'blox_class'=>'',
    'blox_bgcolor'=>'',
    'parallax_speed'=>'',
	
	'process_count'=>'4',
	
	'video_url'=> '',
	'video_pattern'=>'',
	'video_type'=>'',
	'video_fullscreen'=>'',
	
	'row_pattern'=>'',
	'row_color'=>'',

	'maxslider_image1'=>'',
	'maxslider_image2'=>'',
	'maxslider_image3'=>'',
	'maxslider_image4'=>'',
	'maxslider_image5'=>'',
	'maxslider_parallax'=>'',
	'maxslider_pattern'=>'',
		
   
), $atts));

wp_enqueue_style( 'js_composer_front' );
wp_enqueue_script( 'wpb_composer_front_js' );
wp_enqueue_style('js_composer_custom_css');

$el_class = $this->getExtraClass($el_class);
$css_class =  apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_row '.get_row_css_class().$el_class, $this->settings['base']);
$row_id_s = (!empty($row_id))?'id="'.$row_id.'"':'';

switch($row_type){
	case 1:
		$output .= '</div></section><section '.$row_id_s.' class="'.$css_class.' full-row">';
		$output .= wpb_js_remove_wpautop($content);
		$output .= '</section><section class="container"><div class="row-wrapper-x">'.$this->endBlockComment('row');
		break;
	case 2: 
		$output = wpb_js_remove_wpautop("[blox id='$row_id'  row_pattern='$row_pattern' row_color='$row_color' bgcolor='$blox_bgcolor' img='{$blox_image}' dark='{$blox_dark}' height='{$blox_height}' padding_top='{$blox_padding_top}' padding_bottom='{$blox_padding_bottom}' bg_attachment='{$blox_bg_attachment}' bgcover='{$blox_cover}' repeat='{$blox_repeat}' class='{$align_center} {$page_title} {$blox_class}']" . $content . "[/blox]");

		break;
	case 3:
		$output = wpb_js_remove_wpautop("[parallax id='$row_id'  row_pattern='$row_pattern' row_color='$row_color' img='{$blox_image}' dark='{$blox_dark}' height='{$blox_height}' padding_top='{$blox_padding_top}' padding_bottom='{$blox_padding_bottom}' bg_attachment='{$blox_bg_attachment}' bgcover='{$blox_cover}' repeat='{$blox_repeat}' speed='{$parallax_speed}' class='{$align_center} {$page_title} {$blox_class}']".$content."[/parallax]");
		break;
	case 4:
		$output .= '</div></section><section class="our-process-wrap container">';
		$output .= '<div class="our-process proc'.$process_count.'level">';
		$output .= wpb_js_remove_wpautop($content);
		$output .= '</div></section><section class="container"><div class="row-wrapper-x">'.$this->endBlockComment('row');
	break;
	case 5:
			$output = wpb_js_remove_wpautop("[videorow id='$row_id' img='{$blox_image}' dark='{$blox_dark}' height='{$blox_height}' padding_top='{$blox_padding_top}' padding_bottom='{$blox_padding_bottom}' bg_attachment='{$blox_bg_attachment}' bgcover='{$blox_cover}' repeat='{$blox_repeat}' class='{$align_center} {$page_title} {$blox_class}' video_url='$video_url' video_pattern='$video_pattern' video_type='$video_type' video_fullscreen='$video_fullscreen']" . $content . "[/videorow]");
		break;
	case 6:
			$output = wpb_js_remove_wpautop("[maxslider id='$row_id' slide1_img_url='$maxslider_image1' slide2_img_url='$maxslider_image2' slide3_img_url='$maxslider_image3' slide4_img_url='$maxslider_image4' slide5_img_url='$maxslider_image5' slide_img_pattern='$maxslider_pattern' slide_img_parallax='$maxslider_parallax']" . $content . '[/maxslider]');
	break;
	default:
		if(!empty($row_id))
			$output .= '<section id="'.$row_id.'" class="'.$css_class.'">';
		else
			$output .= '<section class="'.$css_class.'">';
		$output .= wpb_js_remove_wpautop($content);
		$output .= '</section>'.$this->endBlockComment('row');
		break;
}
echo wpb_js_remove_wpautop($output);