function vc_theme_vc_row($atts, $content = null) { extract(shortcode_atts(array('el_class' => '', 'el_id' => '', 'bg_image' => '', 'bg_color' => '', 'bg_image_repeat' => '', 'font_color' => '', 'padding' => '', 'margin_bottom' => '', 'container' => '', 'css' => ''), $atts)); $atts['base'] = ''; wp_enqueue_style('js_composer_front'); wp_enqueue_script('wpb_composer_front_js'); wp_enqueue_style('js_composer_custom_css'); $vc_row = new WPBakeryShortCode_VC_Row($atts); $el_class = $vc_row->getExtraClass($el_class); $output = ''; $css_class = $el_class; $id = sh_set($atts, 'el_id') ? ' id="' . $atts['el_id'] . '"' : ''; if ($css) { $css_class .= vc_shortcode_custom_css_class($css, ' ') . ' '; } $style = $vc_row->buildStyle($bg_image, $bg_color, $bg_image_repeat, $font_color, $padding, $margin_bottom); //$boxed = sh_set( _WSH()->option(), 'boxed_layout' ); //if( $css_class) exit($css_class); if ($container) { return '<section class="section ' . $css_class . '" ' . $style . $id . ' > <div class="container"> <div class="general-row"> ' . wpb_js_remove_wpautop($content) . ' </div> </div> <div class="clearfix"></div> </section> ' . "\n"; } return '<section class="section ' . $css_class . ' general-row" ' . $style . $id . ' > ' . wpb_js_remove_wpautop($content) . ' <div class="clearfix"></div> </section> ' . "\n"; }
function vc_theme_vc_row($atts, $content = null) { extract(shortcode_atts(array('el_class' => '', 'bg_image' => '', 'bg_color' => '', 'bg_image_repeat' => '', 'font_color' => '', 'padding' => '', 'margin_bottom' => '', 'container' => '', 'css' => ''), $atts)); $atts['base'] = ''; wp_enqueue_style('js_composer_front'); wp_enqueue_script('wpb_composer_front_js'); wp_enqueue_style('js_composer_custom_css'); $vc_row = new WPBakeryShortCode_VC_Row($atts); $el_class = $vc_row->getExtraClass($el_class); $output = ''; $css_class = $el_class; if ($css) { $css_class .= vc_shortcode_custom_css_class($css, ' ') . ' '; } $style = $vc_row->buildStyle($bg_image, $bg_color, $bg_image_repeat, $font_color, $padding, $margin_bottom); if ($container) { return '<div class="' . $css_class . '">' . wpb_js_remove_wpautop($content) . '</div>'; } return '<div class="row ' . $css_class . '">' . wpb_js_remove_wpautop($content) . '</div>'; }
public function __construct($settings) { parent::__construct($settings); }