$options = array();
// Convert keys to Camel case.
foreach ($tmp_options as $key => $value) {
    $key = preg_replace('/_([a-z])/e', "strtoupper('\\1')", $key);
    $options[$key] = $value;
}
if ((int) $slides_per_view > 0) {
    $options['slidesPerView'] = (int) $slides_per_view;
}
if ((int) $autoplay > 0) {
    $options['autoplay'] = (int) $autoplay;
}
$options['mode'] = $mode;
// $options['calculateHeight'] = true;
$css_class = $this->settings['base'] . ' wpb_content_element vc_carousel_slider_' . $slides_per_view . ' vc_carousel_' . $mode . (empty($el_class) ? '' : ' ' . $el_class);
$carousel_id = 'vc_carousel-' . WPBakeryShortCode_Vc_Carousel::getCarouselIndex();
?>
<div class="<?php 
echo apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $css_class, $this->settings['base'], $atts);
?>
">
	<div class="wpb_wrapper">
		<?php 
echo wpb_widget_title(array('title' => $title, 'extraclass' => 'wpb_gallery_heading'));
?>
		<div id="<?php 
echo $carousel_id;
?>
" data-ride="vc_carousel"
			 data-wrap="<?php 
echo $wrap === 'yes' ? 'true' : 'false';
        $post->content = $this->getPostContent();
        $post->excerpt = $this->getPostExcerpt();
        $post->thumbnail_data = $this->getPostThumbnail($post->id, $thumb_size);
        $post->thumbnail = $post->thumbnail_data && isset($post->thumbnail_data['thumbnail']) ? $post->thumbnail_data['thumbnail'] : '';
        $video = get_post_meta($post->id, '_p_video', true);
        $post->image_link = empty($video) && $post->thumbnail && isset($post->thumbnail_data['p_img_large'][0]) ? $post->thumbnail_data['p_img_large'][0] : $video;
    }
    $post->categories_css = $this->getCategoriesCss($post->id);
    $posts[] = $post;
}
wp_reset_query();
$this->setLinkTarget($link_target);
wp_enqueue_script('vc_carousel_js');
wp_enqueue_style('vc_carousel_css');
$css_class = $this->settings['base'] . ' wpb_content_element vc_carousel_slider_' . $slides_per_view . ' vc_carousel_' . $mode . (empty($el_class) ? '' : ' ' . $el_class);
$carousel_id = esc_attr('vc_carousel-' . WPBakeryShortCode_Vc_Carousel::getCarouselIndex());
?>
<div
	class="<?php 
echo esc_attr(apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $css_class, $this->settings['base'], $atts));
?>
">
	<div class="wpb_wrapper">
		<?php 
echo wpb_widget_title(array('title' => $title, 'extraclass' => 'wpb_gallery_heading'));
?>
		<div id="<?php 
echo $carousel_id;
?>
" data-ride="vc_carousel" data-wrap="<?php 
echo 'yes' === $wrap ? 'true' : 'false';