Skip to content

Instantly share code, notes, and snippets.

Created October 18, 2014 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f49f2c08697775978355 to your computer and use it in GitHub Desktop.
Save anonymous/f49f2c08697775978355 to your computer and use it in GitHub Desktop.
function vc_theme_vc_row($atts, $content = null) {
$output = $el_class = $bg_image = $bg_color = $bg_image_repeat = $font_color = $padding = $margin_bottom = $css = '';
extract(shortcode_atts(array(
'el_class' => '',
'bg_image' => '',
'bg_color' => '',
'bg_image_repeat' => '',
'font_color' => '',
'padding' => '',
'margin_bottom' => '',
'css' => ''
), $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 . vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
$style = $this->buildStyle($bg_image, $bg_color, $bg_image_repeat, $font_color, $padding, $margin_bottom);
$output .= '<div class="'.$css_class.'"'.$style.'><div class="container">';
$output .= wpb_js_remove_wpautop($content);
$output .= '</div></div>'.$this->endBlockComment('row');
return $output;
}
@exciting91
Copy link

z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment