if ($align == 'left' || $align == 'center') {
                    // center is not working with this anyway
                    $output .= '<' . $tag . $el_style . '>' . $content . '</' . $tag . '>';
                    $output .= '<div class="wt_cheading_sep_wrap"><div class="wt_cheading_sep"></div></div>';
                } else {
                    // right
                    $output .= '<div class="wt_cheading_sep_wrap"><div class="wt_cheading_sep"></div></div>';
                    $output .= '<' . $tag . $el_style . '>' . $content . '</' . $tag . '>';
                }
                break;
            case "wt_cheading_3":
            default:
                $output .= '<' . $tag . $el_style . '><span>' . $content . '</span></' . $tag . '>';
                break;
        }
        $output .= '</div>';
        return $output;
    }
}
/*
Register WhoaThemes shortcode within Visual Composer interface.
*/
if (function_exists('wpb_map')) {
    $add_wt_sc_func = new WT_VCSC_SHORTCODE();
    $add_wt_extra_id = $add_wt_sc_func->getWTExtraId();
    $add_wt_extra_class = $add_wt_sc_func->getWTExtraClass();
    $add_wt_css_animation = $add_wt_sc_func->getWTAnimations();
    $add_wt_css_animation_type = $add_wt_sc_func->getWTAnimationsType();
    $add_wt_css_animation_delay = $add_wt_sc_func->getWTAnimationsDelay();
    wpb_map(array('name' => __('WT Custom Heading', 'wt_vcsc'), 'base' => 'wt_custom_heading', 'icon' => 'wt_vc_ico_custom_heading', 'class' => 'wt_vc_sc_custom_heading', 'category' => __('by WhoaThemes', 'wt_vcsc'), 'description' => __('Add custom heading text', 'wt_vcsc'), 'params' => array(array('type' => 'textarea', 'heading' => __('Text', 'wt_vcsc'), 'param_name' => 'content', 'admin_label' => true, 'value' => __('This is a custom heading element', 'wt_vcsc'), 'description' => __('Enter your custom heading content.', 'wt_vcsc')), array('type' => 'dropdown', 'heading' => __('Element tag', 'wt_vcsc'), 'param_name' => 'tag', 'value' => array(__('H1', 'wt_vcsc') => 'h1', __('H2', 'wt_vcsc') => 'h2', __('H3', 'wt_vcsc') => 'h3', __('H4', 'wt_vcsc') => 'h4', __('H5', 'wt_vcsc') => 'h5', __('H6', 'wt_vcsc') => 'h6'), 'std' => 'h2', 'description' => __('Select the element tag.', 'wt_vcsc')), array('type' => 'dropdown', 'heading' => __('Heading style', 'wt_vcsc'), 'param_name' => 'style', 'value' => array(__('Style #1', 'wt_vcsc') => 'wt_cheading_1', __('Style #2', 'wt_vcsc') => 'wt_cheading_2', __('Style #3', 'wt_vcsc') => 'wt_cheading_3', __('Style #4', 'wt_vcsc') => 'wt_cheading_4'), 'std' => 'wt_cheading_3', 'description' => __('Select the element tag.', 'wt_vcsc')), array('type' => 'dropdown', 'heading' => __('Text align', 'wt_vcsc'), 'param_name' => 'align', 'value' => array(__('Align left', 'wt_vcsc') => 'left', __('Align right', 'wt_vcsc') => 'right', __('Align center', 'wt_vcsc') => 'center'), 'std' => 'left', 'description' => __('Select text alignment. <strong>Style #2 is not working on center.</strong>', 'wt_vcsc')), array('type' => 'colorpicker', 'heading' => __('Text color', 'wt_vcsc'), 'param_name' => 'color', 'description' => __('Select text color.', 'wt_vcsc')), array('type' => 'colorpicker', 'heading' => __('Custom heading background', 'wt_vcsc'), 'param_name' => 'background', 'description' => __('Select custom heading background.', 'wt_vcsc')), $add_wt_extra_id, $add_wt_extra_class, $add_wt_css_animation, $add_wt_css_animation_type, $add_wt_css_animation_delay, array('type' => 'css_editor', 'heading' => __('Css', 'wt_vcsc'), 'param_name' => 'css', 'group' => __('Design options', 'wt_vcsc')))));
}