$post->title = the_title("", "", false);
        $post->title_attribute = the_title_attribute('echo=0');
        $post->post_type = get_post_type();
        $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();
// $options = vc_parse_options_string($bxslider_options, $this->shortcode, 'bxslider_options');
$tmp_options = vc_parse_options_string($swiper_options, $this->shortcode, 'swiper_options');
// }}
$this->setLinktarget($link_target);
// wp_enqueue_script('vc_bxslider');
// wp_enqueue_style('vc_bxslider_css');
// wp_enqueue_script('vc_swiper');
// wp_enqueue_style('vc_swiper_css');
wp_enqueue_script('vc_carousel_js');
wp_enqueue_style('vc_carousel_css');
$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) {
Example #2
0
while ($my_query->have_posts()) {
    $my_query->the_post();
    // Get post from query
    $post = new stdClass();
    // Creating post object.
    $post->id = get_the_ID();
    $post->title = the_title("", "", false);
    $post->post_type = get_post_type();
    $post->content = $this->getPostContent($content);
    $post->thumbnail_data = $this->getPostThumbnail($layout, $post->id, $thumb_size);
    $post->thumbnail = $post->thumbnail_data && isset($post->thumbnail_data['thumbnail']) ? $post->thumbnail_data['thumbnail'] : '';
    $post->link = $this->getPostLink($link, $post);
    $posts[] = $post;
}
wp_reset_query();
$options = vc_parse_options_string($bxslider_options, $this->shortcode, 'bxslider_options');
/**
 * Get teaser block template path
 */
$template_r = VcTeaserTemplates::getInstance();
$template_path = $template_r->getTemplatePath($layout);
// }}
$this->setLinktarget($link_target);
$image_css = 'link_image' . ($link === 'link_post' ? '' : ' prettyphoto');
$title_css = 'link_title' . ($link === 'link_image' ? ' prettyphoto' : '');
wp_enqueue_script('vc_bxslider');
wp_enqueue_style('vc_bxslider_css');
if ($link == 'link_image' || $link == 'link_image_post') {
    wp_enqueue_script('prettyphoto');
    wp_enqueue_style('prettyphoto');
}