* @var $el_class * @var $width * @var $css * @var $offset * @var $content - shortcode content * Shortcode class * @var $this WPBakeryShortCode_VC_Column */ $el_class = $width = $css = $offset = ''; $output = ''; $atts = vc_map_get_attributes($this->getShortcode(), $atts); extract($atts); $width = wpb_translateColumnWidthToSpan($width); $width = vc_column_offset_class_merge($offset, $width); $css_classes = array($this->getExtraClass($el_class), 'wpb_column', 'vc_column_container', $width); if (vc_shortcode_custom_css_has_property($css, array('border', 'background'))) { $css_classes[] = 'vc_col-has-fill'; } $wrapper_attributes = array(); /*start*/ $css_classes[] = !empty($st_animate) ? ' wow animated ' . $st_animate : ''; /*end*/ $css_class = preg_replace('/\\s+/', ' ', apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, implode(' ', array_filter($css_classes)), $this->settings['base'], $atts)); $wrapper_attributes[] = 'class="' . esc_attr(trim($css_class)) . '"'; $output .= '<div ' . implode(' ', $wrapper_attributes) . '>'; $output .= '<div class="vc_column-inner ' . esc_attr(trim(vc_shortcode_custom_css_class($css))) . '">'; $output .= '<div class="wpb_wrapper">'; $output .= wpb_js_remove_wpautop($content); $output .= '</div>'; $output .= '</div>'; $output .= '</div>';
$height_class = ""; if ($height != "") { $height_class = ' min-height:' . $height . '; '; } $custom_styles = 'style="' . $height_class . '"'; $columns_height_class = " " . $columns_height; //echo "<pre>"; //print_r($atts); //echo "</pre>"; //================================================ // /Get Bowtied Mod //================================================ wp_enqueue_script('wpb_composer_front_js'); $el_class = $this->getExtraClass($el_class); $css_classes = array('row', $columns_height_class, 'vc_row', 'wpb_row', 'vc_row-fluid', $el_class, vc_shortcode_custom_css_class($css)); if (vc_shortcode_custom_css_has_property($css, array('border', 'background')) || $video_bg || $parallax) { $css_classes[] = 'vc_row-has-fill'; } if (!empty($atts['gap'])) { $css_classes[] = 'vc_column-gap-' . $atts['gap']; } $wrapper_attributes = array(); // build attributes for wrapper if (!empty($el_id)) { $wrapper_attributes[] = 'id="' . esc_attr($el_id) . '"'; } if (!empty($full_width)) { $wrapper_attributes[] = 'data-vc-full-width="true"'; $wrapper_attributes[] = 'data-vc-full-width-init="false"'; if ('stretch_row_content' === $full_width) { $wrapper_attributes[] = 'data-vc-stretch-content="true"';
* @var $el_class * @var $width * @var $css * @var $offset * @var $content - shortcode content * Shortcode class * @var $this WPBakeryShortCode_VC_Column */ $el_class = $width = $css = $offset = $animation = ''; $output = ''; $atts = vc_map_get_attributes($this->getShortcode(), $atts); extract($atts); $width = wpb_translateColumnWidthToSpan($width); $width = vc_column_offset_class_merge($offset, $width); $css_classes = array($this->getExtraClass($el_class), 'wpb_column', 'vc_column_container', $width); if (function_exists('vc_shortcode_custom_css_has_property') && vc_shortcode_custom_css_has_property($css, array('border', 'background'))) { $css_classes[] = 'vc_col-has-fill'; } if ($animation && 'none' !== $animation) { $css_classes[] = $animation; $css_classes[] = 'animate-element'; } $wrapper_attributes = array(); $css_class = preg_replace('/\\s+/', ' ', apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, implode(' ', array_filter($css_classes)), $this->settings['base'], $atts)); $wrapper_attributes[] = 'class="' . esc_attr(trim($css_class)) . '"'; $output .= '<div ' . implode(' ', $wrapper_attributes) . '>'; $output .= '<div class="vc_column-inner ' . esc_attr(trim(vc_shortcode_custom_css_class($css))) . '">'; $output .= '<div class="wpb_wrapper">'; $output .= wpb_js_remove_wpautop($content); $output .= '</div>'; $output .= '</div>';