<?php
$output = $el_class = $width = '';
extract(shortcode_atts(array(
			'font_color'=>'',
            'el_class' => '',
            'width' => '1/1',
            'column_responsive_large'=>'',
            'column_responsive_medium'=>'',
            'column_responsive_small'=>'',
            'column_responsive_extra_small'=>'',
            'column_2_responsive'=>'',
            'css'=>'',
            'offset'=>'',
            'animation' => '',
            'column_border' => false,
            'column_style' => '',
            'text_align' => ''
                ), $atts));

$el_class = $this->getExtraClass($el_class);
$width = wpb_translateColumnWidthToSpan($width);
$width = vc_column_offset_class_merge($offset, $width);

/* Responsive */
    $responsive = '';
    if($column_responsive_large){
        $responsive .= ' hidden-lg';
    }
    if($column_responsive_medium){
        $responsive .= ' hidden-md';
    }
    if($column_responsive_small){
        $responsive .= ' hidden-sm';
    }
    if($column_responsive_extra_small){
        $responsive .= ' hidden-xs';
    }
/* Animation */
if ($animation) {
    $animation .= ' animate-element';
}
/* */
if($column_2_responsive){
    $column_2_responsive = ' col-sm-6';
}
$border_class = "";
if ($column_border) {
    $border_class = " cs-border-radius";
}

$styles = array();
$class_align = '';
if (!empty($text_align)) {
    $styles[] = " text-align: $text_align;";
    $class_align = " align-$text_align";
}

if(!empty($font_color)){
	$styles[] = " color: $font_color;";
}


$el_class .= ' wpb_column vc_column_container ' . $animation . $border_class.' '.$column_style.$class_align;
$style = cshero_build_style($styles);

$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $width . $column_2_responsive . $el_class . $responsive . vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
$output .= "\n\t".'<div class="'.$css_class.'" '.$style.'>';
$output .= "\n\t\t".'<div class="wpb_wrapper">';
$output .= "\n\t\t\t".wpb_js_remove_wpautop($content);
$output .= "\n\t\t".'</div> '.$this->endBlockComment('.wpb_wrapper');
$output .= "\n\t".'</div> '.$this->endBlockComment($el_class) . "\n";

echo $output;