<?php 

/**
* WPBakery Page Builder Ohio Carousel Inner shortcode
*/

add_shortcode( 'ohio_carousel_inner', 'ohio_carousel_inner_func' );

function ohio_carousel_inner_func( $atts, $content_html = '' ) {
	if ( isset( $atts ) && is_array( $atts ) ) extract( $atts );

	// Default values, parsing and filtering
	$title = isset( $title ) ? OhioExtraFilter::string( $title, 'string', '' ) : '';
	$tab_id = isset( $tab_id ) ? OhioExtraFilter::string( $tab_id, 'attr', '' ) : '';
	$css_class = isset( $css_class ) ? ' ' . OhioExtraFilter::string( $css_class, 'attr', '' )  : '';

	// Assembling
	ob_start();
	include( plugin_dir_path( __FILE__ ) . 'carousel_inner__view.php' );
	return ob_get_clean();
}