'', 'row_type' => 'row', 'use_as_box' => '', 'use_row_as_full_screen_section' => '', 'type' => 'full_width', 'expandable_content_top_padding'=>'', 'header_style' => '', 'parallax_content_width' => 'in_grid', 'anchor' => '', 'in_content_menu'=>'', 'content_menu_title' => '', 'content_menu_icon' => '', 'angled_section' => '', 'angled_section_direction' => '', 'angled_section_position' => 'both', 'video' => '', 'video_overlay' => '', 'video_overlay_image' => '', 'video_webm' => '', 'video_mp4' => '', 'video_ogv' => '', 'video_image' => '', 'background_color' => '', 'full_screen_section_height' => 'no', 'vertically_align_content_in_middle' => 'no', 'section_height' => '', 'parallax_speed' => '1', 'background_image' => '', 'background_image_as_pattern' => 'without_pattern', 'border_color' => '', 'padding_top' => '', 'padding_bottom' => '', 'side_padding' => '', 'row_negative_margin' => '', 'parallax_side_padding' => '', 'text_align' => is_rtl() ? 'right' : 'left', 'more_button_label' =>'More Facts', 'less_button_label'=>'Less Facts', 'button_position'=>'center', 'color'=>'', 'hover_color'=>'', 'content_background_color' => '', 'css_animation'=>'', 'transition_delay'=>'', 'css' => '', 'el_id' => '' ), $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_classes = array( 'vc_row', 'wpb_row', //deprecated 'vc_inner', 'section', $el_class, //vc_shortcode_custom_css_class( $css ), ); $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'vc_row wpb_row section vc_row-fluid '. ( $this->settings('base')==='vc_row_inner' ? 'vc_inner ' : '' ) . $el_class . vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts ); if($type == "grid"){ $css_class_type = " grid_section"; } else { $css_class_type = ""; } if($type == "grid"){ $css_class_type_inner = " section_inner"; } else { $css_class_type_inner = " full_section_inner"; } $header_style_data = ''; if($header_style != ""){ $header_style_data = 'data-q_header_style="'.$header_style.'"'; } $css_class_video = ""; if($video == "show_video"){ $css_class_video = " video_section"; } $css_class_in_content_menu = ""; if($in_content_menu == "in_content_menu"){ $css_class_in_content_menu = " in_content_menu"; } $_image =""; if($background_image != '' || $background_image != ' ') { $_image = wp_get_attachment_image_src( $background_image, 'full'); } $overlay_image =""; if($video_overlay_image != '' && $video_overlay_image != ' ') { $overlay_image = wp_get_attachment_image_src( $video_overlay_image, 'full'); } if($css_animation != ""){ $clsss_css_animation = " " . $css_animation; } else { $clsss_css_animation = ""; } $delay = ""; if($transition_delay != ""){ $delay = " style='transition-delay:" . $transition_delay . "ms; -webkit-animation-delay:" . $transition_delay . "ms; animation-delay:" . $transition_delay . "ms;'"; } $anchor_id = ""; if($anchor != ""){ $anchor_id = ' data-q_id="#'.$anchor.'"'; } $menu_title = ""; if($content_menu_title != ""){ $menu_title = ' data-q_title="'.$content_menu_title.'"'; } $menu_icon = ""; if($content_menu_icon != ""){ $menu_icon = ' data-q_icon="'.$content_menu_icon.'"'; } $use_row_as_box_class=""; if($use_as_box == 'use_row_as_box'){ $use_row_as_box_class = ' use_row_as_box'; } $row_negative_margin_class=""; if($row_negative_margin == 'disable_negative_margin'){ $row_negative_margin_class = ' disable_negative_margin'; } $full_screen_section_class = ""; if($use_row_as_full_screen_section == "yes"){ $full_screen_section_class = " full_screen_section"; } if($angled_section == 'yes') { if($background_color != ""){ $angled_section_style = 'style="fill:'.$background_color.';"'; } else $angled_section_style = ""; } $parallax_section_classes = ''; if($full_screen_section_height == 'yes'){ $parallax_section_classes .= ' qode_full_screen_height_parallax'; if($vertically_align_content_in_middle == 'yes'){ $parallax_section_classes .= ' qode_vertical_middle_align'; $after_wrapper_open .= '
'; $before_wrapper_close .= '
'; } } $row_id = ''; if($el_id !== '') { $row_id = 'id="'.esc_attr($el_id).'"'; } if($row_type == 'row') { $output .= '
'; } if($angled_section_direction == 'from_right_to_left'){ $output .= ''; } $output .= ''; } if($video == "show_video"){ $v_image = wp_get_attachment_url($video_image); $v_overlay_image = wp_get_attachment_url($video_overlay_image); if($use_row_as_full_screen_section == "yes"){ $output .= '
'; if(!empty($video_webm)) { $output .= ''; } if(!empty($video_mp4)) { $output .= ''; } if(!empty($video_ogv)) { $output .= ''; } $output .=' Video thumb '; } else { $output .= '
'; if(!empty($video_webm)) { $output .= ''; } if(!empty($video_mp4)) { $output .= ''; } if(!empty($video_ogv)) { $output .= ''; } $output .=' Video thumb
'; } } $output .= '
'; } }else if($row_type == 'parallax'){ $output .='
'; }else{ $output .='
'; } $output .= "
"; }else if($row_type == 'expandable') { $output .= '
'; $output .= ' '; $output .= '
'; $output .= '
'; $output .= '
'; } else if($row_type == 'content_menu'){ $output .= '
'.$this->endBlockComment('row'); }elseif($row_type == 'parallax'){ $output .= '
'; $output .= $before_wrapper_close; $output .= '
'.$this->endBlockComment('row'); }elseif($row_type == 'expandable'){ $output .= '
'.$this->endBlockComment('row'); }else if($row_type == 'content_menu'){ $output .= ''; } echo $output;