getShortcode(), $atts ); extract( $atts ); $el_class = $this->getExtraClass( $el_class ); $css_classes = array( 'vc_row', 'wpb_row', //deprecated 'vc_inner', 'vc_row-fluid', $el_class, vc_shortcode_custom_css_class( $css ), ); if ( 'yes' === $disable_element ) { if ( vc_is_page_editable() ) { $css_classes[] = 'vc_hidden-lg vc_hidden-xs vc_hidden-sm vc_hidden-md'; } else { return ''; } } if (vc_shortcode_custom_css_has_property( $css, array('border', 'background') )) { $css_classes[]='vc_row-has-fill'; } if (!empty($atts['gap'])) { $css_classes[] = 'vc_column-gap-'.$atts['gap']; } if ( ! empty( $equal_height ) ) { $flex_row = true; $css_classes[] = 'vc_row-o-equal-height'; } if ( ! empty( $content_placement ) ) { $flex_row = true; $css_classes[] = 'vc_row-o-content-' . $content_placement; } if ( ! empty( $flex_row ) ) { $css_classes[] = 'vc_row-flex'; } $wrapper_attributes = array(); // build attributes for wrapper if ( ! empty( $el_id ) ) { $wrapper_attributes[] = 'id="' . esc_attr( $el_id ) . '"'; } /***** Our code modification - begin *****/ $grid_row_class = $grid_row_data = $mkdf_vc_row_style = $mkdf_grid_row_style = array(); if ( $row_content_width !== 'grid' ) { if (!empty($disable_background_image)){ $css_classes[] = 'mkdf-disabled-bg-image-bellow-' . esc_attr($disable_background_image); } if ( ! empty( $simple_background_color ) ) { $mkdf_vc_row_style[] = 'background-color:' . esc_attr( $simple_background_color ); } if ( ! empty( $simple_background_image ) ) { $image_src = wp_get_attachment_image_src($simple_background_image, 'full'); $mkdf_vc_row_style[] = 'background-image: url(' . esc_url( $image_src[0] ) . ')'; } if (!empty($content_text_aligment)){ $css_classes[] = 'mkdf-content-aligment-' . esc_attr($content_text_aligment); } } else { if (!empty($disable_background_image)){ $grid_row_class[] = 'mkdf-disabled-bg-image-bellow-' . esc_attr($disable_background_image); } if ( ! empty( $simple_background_color ) ) { $mkdf_grid_row_style[] = 'background-color:' . esc_attr( $simple_background_color ); } if ( ! empty( $simple_background_image ) ) { $image_src = wp_get_attachment_image_src($simple_background_image, 'full'); $mkdf_grid_row_style[] = 'background-image: url(' . esc_url( $image_src[0] ) . ')'; } if (!empty($content_text_aligment)){ $grid_row_class[] = 'mkdf-content-aligment-' . esc_attr($content_text_aligment); } } $grid_row_classes = ''; if( ! empty( $grid_row_class ) ) { $grid_row_classes = implode( ' ', $grid_row_class ); } $mkdf_vc_row_styles = ''; if( ! empty( $mkdf_vc_row_style ) ) { $mkdf_vc_row_styles = implode( ';', $mkdf_vc_row_style ); } $mkdf_grid_row_styles = ''; if( ! empty( $mkdf_grid_row_style ) ) { $mkdf_grid_row_styles = implode( ';', $mkdf_grid_row_style ); } if($row_content_width === 'grid'){ $mkdf_row_wrapper_start .= '
'; $mkdf_row_wrapper_end .= '
'; } /***** Our code modification - end *****/ $css_class = preg_replace( '/\s+/', ' ', apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, implode( ' ', array_filter( array_unique( $css_classes ) ) ), $this->settings['base'], $atts ) ); $wrapper_attributes[] = 'class="' . esc_attr( trim( $css_class ) ) . '"'; $output .= $mkdf_row_wrapper_start; $output .= '
'; $output .= wpb_js_remove_wpautop( $content ); $output .= '
'; $output .= $mkdf_row_wrapper_end; $output .= $after_output; print staffscout_mikado_display_content_output($output);