<?php
/*
 * Templatation.com
 *
 * Title with separator shortcode for VC
 *
 */
$sep_appear = $title = $title_size = $txt_color = $text = '';

$atts = vc_map_get_attributes( $this->getShortcode(), $atts );
extract( $atts );
$css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );

?>

<div class="sec-title <?php echo esc_attr($css_class); if ( 'no' == $sep_appear ) echo ' no-sep ';  ?>">
    <?php  if(!empty($title)) { ?>
     <h2><span style="<?php if (!empty($title_size)) echo 'font-size: ' . esc_html($title_size) . 'px;'; ?><?php if (!empty($txt_color)) echo 'color: ' . esc_html($txt_color) . ';'; ?>"><?php print esc_html($title); ?></span></h2>
    <?php } ?>
    <?php  if(!empty($text)) { ?>
        <p><?php print do_shortcode($text); ?></p>
    <?php } ?>
</div>