function ts_banner_carousel_func($atts, $content = null)
{
    global $post;
    extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_delay_item' => '', 'animation_iteration' => '', 'carousel_style' => '', 'full_width_lines' => '', 'category' => '', 'limit' => 10), $atts));
    // Reset and setup variables
    $output = '';
    $temp_title = '';
    $temp_link = '';
    $carousel_classes = '';
    if ($carousel_style == 'mini') {
        $width = 127;
        $height = 79;
        $carousel_classes = 'banner-set-mini banner-set-no-pagination';
    } else {
        $width = 253;
        $height = 158;
    }
    if ($full_width_lines == 'enabled') {
        $carousel_classes .= ' banner-border-shop';
    }
    $output .= "<div class='banner-set load " . sanitize_html_classes($carousel_classes) . "'>\n            <div class='container'>\n              <div class='banners'>";
    $args = array('post_type' => 'banner', 'posts_per_page' => $limit);
    if (!empty($category)) {
        $args['tax_query'] = array(array('taxonomy' => 'banner-cat', 'field' => 'id', 'terms' => $category));
    }
    $current_animation_delay = $animation_delay;
    query_posts($args);
    // the loop
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $temp_title = get_the_title($post->ID);
            $url = xv_get_field('url');
            $temp_link = '#';
            if ($url) {
                $temp_link = $url;
            }
            $excerpt = get_xv_excerpt(250);
            // output all findings - CUSTOMIZE TO YOUR LIKING
            $output .= "<a  class='banner " . ts_get_animation_class($animation) . "' href='" . esc_url($temp_link) . "' " . ts_get_animation_data_class($current_animation_delay, $animation_iteration) . ">";
            $thumb = get_xv_thumbnail($width, $height);
            $output .= '<img src="' . esc_url($thumb) . '" alt="' . the_title_attribute('echo=0') . '" />';
            $output .= "<h2 class='title'>{$temp_title}</h2>";
            if ($carousel_style != 'mini') {
                $output .= "<div class='description'>{$excerpt}</div>";
            }
            $output .= "</a>";
            $current_animation_delay += $animation_delay_item;
        }
    }
    wp_reset_query();
    $output .= "</div>\n                  <div class='clearfix'></div>\n                 </div>\n                  <div class='nav-box " . ts_get_animation_class($animation) . "' " . ts_get_animation_data_class($current_animation_delay, $animation_iteration) . ">\n                  <div class='container'>\n                    <a class='prev' href='#'><span class='icon-left'></span></a>\n                    <div class='pagination switches'></div>\n                    <a class='next' href='#'><span class='icon-right'></span></a>  \n                  </div>\n                  </div>\n                </div>\n                <div class='clearfix'></div>";
    return $output;
}
function recent_posts2_func($atts, $content = null)
{
    extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_delay_item' => '', 'animation_iteration' => '', 'title' => '', 'style' => '', 'count' => '4', 'length' => '125', 'blog_text' => '', 'blog_url' => ''), $atts));
    ob_start();
    ?>
	<?php 
    if (!empty($title)) {
        $t_class = 'title-box';
    } else {
        $t_class = '';
    }
    $current_animation_delay = $animation_delay;
    ?>
	<div class="news <?php 
    echo ts_get_animation_class($animation);
    ?>
" <?php 
    echo ts_get_animation_data_class($animation_delay, $animation_iteration);
    ?>
>
	    <div class="<?php 
    echo esc_attr($t_class);
    ?>
">
			<?php 
    if (!empty($blog_text)) {
        ?>
				<a href="<?php 
        echo esc_url($blog_url);
        ?>
 " class="btn btn-default"><?php 
        echo esc_html($blog_text);
        ?>
 <span class="glyphicon glyphicon-arrow-right"></span></a>
			<?php 
    }
    ?>
			<h2 class="title"><?php 
    echo esc_html($title);
    ?>
</h2>
	    </div>
	    <div class="row">

			<?php 
    $current_animation_delay += $animation_delay_item;
    query_posts(array('post_type' => 'post', 'posts_per_page' => $count));
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $thumb = get_xv_thumbnail(84, 84);
            $excerpt = get_xv_excerpt($length);
            ?>

					<div class="news-item col-sm-12 <?php 
            echo esc_attr($style);
            ?>
 <?php 
            echo ts_get_animation_class($animation);
            ?>
" <?php 
            echo ts_get_animation_data_class($current_animation_delay, $animation_iteration);
            ?>
>
						<div class="time"><?php 
            the_time('j.m.Y');
            ?>
</div>
						<h3 class="title"><a href="<?php 
            echo esc_url(get_the_permalink());
            ?>
"><?php 
            the_title();
            ?>
</a></h3>
						<div class="news-body"><?php 
            echo wp_kses_post($excerpt);
            ?>
</div>
						<a href="<?php 
            echo esc_url(get_the_permalink());
            ?>
" class="more"><?php 
            _e('Read more', 'progressive');
            ?>
 <span class="fa fa-angle-right"></span></a>
					</div><!-- .news-item -->

					<?php 
        }
    }
    wp_reset_query();
    ?>
  
	    </div>
	</div><!-- .news -->
	<?php 
    $output = ob_get_contents();
    ob_end_clean();
    return $output;
}
function xv_portfolio_filter_func($atts, $content = null)
{
    extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_delay_item' => '', 'animation_iteration' => '', 'limit' => '', 'limit2' => '300', 'style' => '', 'filter_style' => '', 'filter' => 'enabled', 'year_filter' => 'enabled'), $atts));
    ob_start();
    if ($style == '4col') {
        $width = 270;
        $height = 197;
        $col = 'col-sm-4 col-md-3';
        $wrapper_class = 'portfolio';
    } elseif ($style == '3col') {
        $width = 370;
        $height = 270;
        $col = 'col-sm-4 col-md-4';
        $wrapper_class = 'portfolio';
    } elseif ($style == '2col') {
        $width = 570;
        $height = 416;
        $col = 'col-sm-4 col-md-6';
        $wrapper_class = 'portfolio';
    } else {
        $width = 770;
        $height = 270;
        $col = 'col-sm-4 col-md-12';
        $wrapper_class = 'portfolio';
    }
    $current_animation_delay = $animation_delay;
    if (!empty($thumb_height)) {
        $height = $thumb_height;
    }
    $args = array('post_type' => 'portfolio', 'posts_per_page' => $limit);
    $terms = get_terms("portfolio_category");
    $years = array();
    if ($year_filter == 'enabled') {
        foreach ($terms as $term) {
            $args['portfolio_category'] = $term->slug;
            query_posts($args);
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    $data = get_post_meta(get_the_ID(), 'data', TRUE);
                    if ($data) {
                        $dataobj = DateTime::createFromFormat('Y, m, d', $data);
                        $year = $dataobj->format('Y');
                        $years[$year] = $year;
                    }
                }
            }
        }
        sort($years);
    }
    $year_filter_exists = false;
    ?>
	<div class="content <?php 
    echo esc_attr($wrapper_class);
    ?>
">
		<div class="row">
			<div class="col-sm-12 col-md-8 btn-group <?php 
    echo esc_attr($filter_style);
    ?>
 <?php 
    echo ts_get_animation_class($animation);
    ?>
" <?php 
    echo ts_get_animation_data_class($animation_delay, $animation_iteration);
    ?>
>
				<?php 
    if ($filter == 'enabled') {
        ?>
					<div class="filter-buttons filter-list">
						<button type="button" class="dropdown-toggle" data-toggle="dropdown">
							<?php 
        _e('All Works', 'progressive');
        ?>
 <span class="caret"></span>
						</button>
						<ul class="dropdown-menu" role="menu">
							<li><a href="#" data-filter="*" class="active"><?php 
        _e('All Works', 'progressive');
        ?>
</a></li>
							<?php 
        foreach ($terms as $term) {
            ?>
								<li><a href="#" data-filter=".<?php 
            echo esc_attr($term->slug);
            ?>
"><?php 
            echo esc_html($term->name);
            ?>
</a></li>
							<?php 
        }
        ?>
						</ul>
						<div class="clearfix"></div>
					</div>
				<?php 
    } else {
        if ($year_filter == 'enabled' && count($years) > 0) {
            $year_filter_exists = true;
            ?>
					<div class="year-regulator year-regulator-wrapper">
						<div class="label"><?php 
            _e('Year:', 'progressive');
            ?>
</div>
						<div class="layout-slider">
							<input class="year-filter-slider" type="slider" name="year" value="<?php 
            echo esc_attr($years[0]);
            ?>
;<?php 
            echo esc_attr(end($years));
            ?>
" class="form-control">
						</div>
						<div class="clearfix"></div>
					</div>
				<?php 
        }
    }
    ?>
			</div><!-- .filter-buttons -->

			<div class="col-sm-6 col-md-4">
				<?php 
    if ($year_filter_exists === false && $year_filter == 'enabled' && count($years) > 0) {
        ?>
					<div class="year-regulator">
						<div class="label"><?php 
        _e('Year:', 'progressive');
        ?>
</div>
						<div class="layout-slider">
							<input class="year-filter-slider" type="slider" name="year" value="<?php 
        echo esc_attr($years[0]);
        ?>
;<?php 
        echo esc_attr(end($years));
        ?>
" class="form-control">
						</div>
						<div class="clearfix"></div>
					</div>
				<?php 
    }
    ?>
			</div><!-- .price-regulator -->
		</div>
		<div class="row filter-elements">
			<?php 
    $current_animation_delay += $animation_delay_item;
    ?>
			<?php 
    global $post;
    if ($style == '1col') {
        foreach ($terms as $term) {
            $args['portfolio_category'] = $term->slug;
            if ($year_filter == 'enabled' && count($years) > 0) {
                $args['meta_query'] = array(array('key' => 'data', 'value' => array(''), 'compare' => 'NOT IN'));
            }
            query_posts($args);
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    $thumb = get_xv_thumbnail($width, $height);
                    $excerpt = get_xv_excerpt($limit2);
                    $data = get_post_meta(get_the_ID(), 'data', TRUE);
                    $year = '';
                    if ($data) {
                        $dataobj = DateTime::createFromFormat('Y, m, d', $data);
                        $year = $dataobj->format('Y');
                    }
                    ?>

							<div class="work-one <?php 
                    echo esc_attr($term->slug);
                    ?>
 <?php 
                    echo esc_attr($year);
                    ?>
 <?php 
                    echo ts_get_animation_class($animation);
                    ?>
">
								<div class="work-title col-sm-4 col-md-4">
									<h3 class="title"><a href="<?php 
                    the_permalink();
                    ?>
"><?php 
                    the_title();
                    ?>
</a></h3>
									<div class="description"><?php 
                    echo esc_html($term->name);
                    ?>
</div>
									<p><?php 
                    echo wp_kses_post($excerpt);
                    ?>
</p>
								</div>
								<div class="col-sm-8 col-md-8">
									<a href="<?php 
                    echo esc_url(get_the_permalink());
                    ?>
" class="work-image">
										<img src="<?php 
                    echo esc_url($thumb);
                    ?>
"  alt="" />
									</a>
								</div>
							</div>

							<?php 
                    $current_animation_delay += $animation_delay_item;
                }
            }
        }
        wp_reset_query();
    } else {
        $terms = get_terms("portfolio_category");
        $count = count($terms);
        foreach ($terms as $term) {
            $args['portfolio_category'] = $term->slug;
            if ($year_filter == 'enabled' && count($years) > 0) {
                $args['meta_query'] = array(array('key' => 'data', 'value' => array(''), 'compare' => 'NOT IN'));
            }
            query_posts($args);
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    $thumb = get_xv_thumbnail($width, $height);
                    $data = get_post_meta(get_the_ID(), 'data', TRUE);
                    $year = '';
                    if ($data) {
                        $dataobj = DateTime::createFromFormat('Y, m, d', $data);
                        $year = $dataobj->format('Y');
                    }
                    ?>

							<div class="work-element <?php 
                    echo esc_attr($term->slug);
                    ?>
 <?php 
                    echo esc_attr($year);
                    ?>
 <?php 
                    echo esc_attr($col);
                    ?>
 <?php 
                    echo ts_get_animation_class($animation);
                    ?>
" <?php 
                    echo ts_get_animation_data_class($current_animation_delay, $animation_iteration);
                    ?>
>
								<a href="<?php 
                    the_permalink();
                    ?>
" class="work">
									<img src="<?php 
                    echo esc_url($thumb);
                    ?>
"  alt="" />
									<span class="shadow"></span>
									<div class="bg-hover"></div>
									<div class="work-title">
										<h3 class="title"><?php 
                    the_title();
                    ?>
</h3>
										<div class="description"><?php 
                    echo esc_html($term->name);
                    ?>
</div>
									</div>
								</a>
							</div><!-- .work-element -->

							<?php 
                    $current_animation_delay += $animation_delay_item;
                }
            }
        }
        wp_reset_query();
        ?>
		        <div class="clearfix"></div>
			</div>
		</div> 

	<?php 
    }
    ?>


	<?php 
    wp_enqueue_script('isotope');
    wp_enqueue_script('jshashtable');
    wp_enqueue_script('jquery.numberformatter');
    wp_enqueue_script('price-regulator');
    wp_enqueue_script('jquery.dependClass');
    wp_enqueue_script('draggable');
    wp_enqueue_script('jquery.slider');
    $output = ob_get_contents();
    ob_end_clean();
    return $output;
}
function recent_posts_func($atts, $content = null)
{
    extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_delay_item' => '', 'animation_iteration' => '', 'title' => '', 'post_style' => '', 'count' => '3', 'length' => '125', 'blog_text' => '', 'blog_url' => ''), $atts));
    $current_animation_delay = $animation_delay;
    ob_start();
    if ($post_style == 'latest-posts-white') {
        $title_class = "title-white";
    } else {
        $title_class = "";
    }
    ?>
	<?php 
    if (!empty($title)) {
        $t_class = 'title-box';
    } else {
        $t_class = '';
    }
    $current_animation_delay = $animation_delay;
    ?>
	<div class="recent-posts">
		<div class="<?php 
    echo esc_attr($t_class);
    ?>
 <?php 
    echo ts_get_animation_class($animation);
    ?>
">
	<?php 
    if (!empty($blog_text)) {
        ?>
		<a class="btn btn-default" href="<?php 
        echo esc_url($blog_url);
        ?>
"><?php 
        echo esc_html($blog_text);
        ?>
<span class="glyphicon glyphicon-arrow-right"></span></a>
	<?php 
    }
    ?>
			<h2 class="title <?php 
    echo esc_attr($title_class);
    ?>
"><?php 
    echo esc_html($title);
    ?>
</h2>
		</div>
		<ul class="latest-posts <?php 
    echo esc_attr($post_style);
    ?>
">

			<?php 
    $current_animation_delay += $animation_delay_item;
    query_posts(array('post_type' => 'post', 'posts_per_page' => $count));
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $thumb = get_xv_thumbnail(84, 84);
            ?>
					<li <?php 
            echo ts_get_animation_class($animation, true);
            ?>
 <?php 
            echo ts_get_animation_data_class($current_animation_delay, $animation_iteration);
            ?>
>
						<img class="image img-circle animated" title="" alt="" src="<?php 
            echo esc_url($thumb);
            ?>
">
						<div class="meta">
			                <span><?php 
            the_title();
            ?>
</span>, 
			                <span class="time"><?php 
            the_time('j.m.Y');
            ?>
</span>
						</div>
						<div class="description">
			                <a href="<?php 
            echo esc_url(get_the_permalink());
            ?>
">
								<?php 
            echo wp_kses_post(get_xv_excerpt($length));
            ?>
			                </a>
						</div>
					</li>
					<?php 
        }
    }
    wp_reset_query();
    ?>
  
		</ul>
	</div>
	<?php 
    $output = ob_get_contents();
    ob_end_clean();
    return $output;
}
function posts_slider_func($atts, $content = null)
{
    extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'title' => '', 'count' => '3', 'length' => '125', 'blog_text' => '', 'blog_url' => '', 'category' => '', 'style' => '', 'autoplay' => ''), $atts));
    ob_start();
    query_posts(array('post_type' => 'post', 'posts_per_page' => $count, 'category_name' => $category));
    ?>

	<?php 
    if ($style == 'normal' || $style == 'wide') {
        if ($style == 'normal') {
            echo '<div class="content">';
            $width = 720;
            $height = 442;
        } else {
            $width = 1170;
            $height = 550;
        }
        if (!empty($title)) {
            echo '<h2 class="title">' . $title . '</h2>';
        }
        ?>
		<div class="slider progressive-slider load <?php 
        echo ts_get_animation_class($animation);
        ?>
" data-carousel-autoplay="<?php 
        echo $autoplay == 'enabled' ? 'true' : 'false';
        ?>
" <?php 
        echo ts_get_animation_data_class($animation_delay, $animation_iteration);
        ?>
>
			<div class="container"> 
				<div class="row">
					<div class="sliders-box">
						<?php 
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                $thumb = get_xv_thumbnail($width, $height);
                ?>
							<div class="col-sm-12 col-md-12">
								<div class="slid row">
									<div class="col-sm-12 col-md-12">
										<img class="slid-img" src="<?php 
                echo esc_url($thumb);
                ?>
" alt="">
									</div>

									<div class="slid-content col-sm-4 col-md-4">
										<h1 class="title"><?php 
                the_title();
                ?>
</h1>
										<p class="descriptions"><?php 
                echo get_xv_excerpt($length);
                ?>
</p>
										<?php 
                if ($style == 'wide') {
                    ?>
 
											<a href="<?php 
                    echo esc_url(get_the_permalink());
                    ?>
" class="btn btn-block btn-default btn-lg"><?php 
                    _e('More', 'progressive');
                    ?>
</a>
										<?php 
                }
                ?>
									</div>
								</div>
							</div>
							<?php 
            }
        }
        wp_reset_query();
        ?>
  
					</div><!-- .sliders-box -->

					<div class="slider-nav col-sm-4 col-md-4">
						<div class="nav-box">
							<a class="next" href="#">
								<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="9px" height="16px" viewBox="0 0 9 16" enable-background="new 0 0 9 16" xml:space="preserve">
									<polygon fill-rule="evenodd" clip-rule="evenodd" fill="#838383" points="1,0.001 0,1.001 7,8 0,14.999 1,15.999 9,8 "></polygon>
								</svg>
							</a>
							<a class="prev" href="#">
								<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="9px" height="16px" viewBox="0 0 9 16" enable-background="new 0 0 9 16" xml:space="preserve">
									<polygon fill-rule="evenodd" clip-rule="evenodd" fill="#838383" points="8,15.999 9,14.999 2,8 9,1.001 8,0.001 0,8 "></polygon>
								</svg>
							</a>
							<div class="pagination switches"></div> 
						</div>
					</div>

				</div>
			</div> <!-- .container -->
		</div> <!-- .progressive-slider -->
		<?php 
        if ($style == 'normal') {
            echo '</div>';
        }
    } else {
        //end normal or wide
        ?>

		<?php 
        $attributes = 'data-carousel-autoplay="' . ($autoplay == 'enabled' ? 'true' : '') . '" ';
        if ($style == 'style4') {
            $attributes .= 'data-carousel-one="true" data-carousel-nav="false"';
        } else {
            $attributes .= 'data-carousel-pagination="true" data-carousel-one="true"';
        }
        ?>

		<div class="carousel-box posts-carousel load overflow <?php 
        echo ts_get_animation_class($animation);
        ?>
" <?php 
        echo ts_get_animation_data_class($animation_delay, $animation_iteration);
        ?>
 <?php 
        echo $attributes;
        ?>
>
			<div class="title-box">
				<?php 
        if ($style == 'style2' || $style == 'style3') {
            ?>
			        <a class="next" href="#">
						<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="9px" height="16px" viewBox="0 0 9 16" enable-background="new 0 0 9 16" xml:space="preserve">
							<polygon fill-rule="evenodd" clip-rule="evenodd" fill="#fcfcfc" points="1,0.001 0,1.001 7,8 0,14.999 1,15.999 9,8 "></polygon>
						</svg>
			        </a>
			        <a class="prev" href="#">
						<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="9px" height="16px" viewBox="0 0 9 16" enable-background="new 0 0 9 16" xml:space="preserve">
							<polygon fill-rule="evenodd" clip-rule="evenodd" fill="#fcfcfc" points="8,15.999 9,14.999 2,8 9,1.001 8,0.001 0,8 "></polygon>
						</svg>
			        </a>
				<?php 
        }
        ?>
				<?php 
        if (!empty($title)) {
            echo '<h2 class="title">' . $title . '</h2>';
        }
        ?>
			</div>

			<div class="clearfix"></div>

			<div class="row">
		        <div class="carousel no-responsive">

					<?php 
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                ?>

							<div class="post">
								<h2 class="entry-title"><a href="<?php 
                echo esc_url(get_the_permalink());
                ?>
"><?php 
                the_title();
                ?>
</a></h2>
								<div class="entry-content">
									<?php 
                echo get_xv_excerpt($length);
                ?>
								</div>

								<footer class="entry-meta">
									<span class="autor-name"><?php 
                the_author();
                ?>
</span>,
									<span class="time"><?php 
                the_time('j.m.Y');
                ?>
</span>
									<span class="separator">|</span>
									<span class="meta"><?php 
                _e('Posted in', 'progressive');
                ?>
 <?php 
                echo get_the_category_list(__(', ', 'progressive'));
                ?>
</span>

									<span class="comments-link pull-right">
										<a href="<?php 
                echo esc_url(get_the_permalink());
                ?>
"><?php 
                comments_number('0', '1', '%');
                ?>
 <?php 
                _e('comment(s)', 'progressive');
                ?>
</a>
									</span>
								</footer>
							</div>


							<?php 
            }
        }
        wp_reset_query();
        ?>
  
		        </div>
			</div>
			<div class="clearfix"></div>
		<?php 
        if ($style == 'style1' || $style == 'style3') {
            ?>
				<div class="pagination switches"></div>
		<?php 
        }
        ?>
		</div>


	<?php 
    }
    $output = ob_get_contents();
    ob_end_clean();
    return $output;
}
function testimonials_posts_func($atts, $content = null)
{
    extract(shortcode_atts(array('animation' => '', 'animation_delay' => '', 'animation_iteration' => '', 'title' => '', 'style' => '', 'bg' => '', 'count' => '3', 'length' => '125', 'blog_text' => '', 'blog_url' => '', 'white' => '', 'text_color' => '', 'color' => ''), $atts));
    $oArgs = ThemeArguments::getInstance('testimonials_posts_func');
    $ts_testimonials_i = (int) $oArgs->get('ts_testimonials_i') + 1;
    $oArgs->set('ts_testimonials_i', $ts_testimonials_i);
    ob_start();
    ?>
	<?php 
    if ($style == 'style4') {
        $attributes = 'data-carousel-autoplay="true" data-carousel-one="true" data-carousel-nav="false"';
    } else {
        $attributes = 'data-carousel-pagination="true" data-carousel-one="true"';
    }
    $title_class = '';
    if (!empty($title)) {
        $title_class = 'title-box';
    }
    ?>

	<div class="respond-carousel <?php 
    echo ts_get_animation_class($animation);
    ?>
" <?php 
    echo ts_get_animation_data_class($animation_delay, $animation_iteration);
    ?>
>
		<div class="carousel-box load overflow" <?php 
    echo $attributes;
    ?>
>
			<div class="<?php 
    echo esc_attr($title_class);
    ?>
">
				<?php 
    if ($style == 'style2' || $style == 'style3') {
        ?>
					<a class="next" href="#">
		                <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="9px" height="16px" viewBox="0 0 9 16" enable-background="new 0 0 9 16" xml:space="preserve">
							<polygon fill-rule="evenodd" clip-rule="evenodd" fill="#fcfcfc" points="1,0.001 0,1.001 7,8 0,14.999 1,15.999 9,8 "></polygon>
		                </svg>
					</a>
					<a class="prev" href="#">
		                <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="9px" height="16px" viewBox="0 0 9 16" enable-background="new 0 0 9 16" xml:space="preserve">
							<polygon fill-rule="evenodd" clip-rule="evenodd" fill="#fcfcfc" points="8,15.999 9,14.999 2,8 9,1.001 8,0.001 0,8 "></polygon>
		                </svg>
					</a>
				<?php 
    }
    if (!empty($title)) {
        echo '<h2 class="title">' . $title . '</h2>';
    }
    ?>
			</div>
			<div class="row">
				<?php 
    $data = '';
    if (!empty($text_color)) {
        $data .= 'data-text-color="' . esc_attr($text_color) . '" ';
    }
    if (!empty($color)) {
        $data .= 'data-color="' . esc_attr($color) . '" ';
    }
    ?>
				<div class="carousel testimonials-wrapper" id="testimonials-<?php 
    echo esc_attr($ts_testimonials_i);
    ?>
" <?php 
    echo $data;
    ?>
>

					<?php 
    query_posts(array('post_type' => 'testimonials', 'posts_per_page' => $count));
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $thumb = get_xv_thumbnail(84, 84);
            $excerpt = get_xv_excerpt($length);
            ?>
							<?php 
            if ($bg == '1') {
                $bg_style = 'bg-info';
                $bg_class = 'bg';
            } else {
                $bg_style = 'border-info';
                $bg_class = 'border white';
            }
            ?>


							<div class="respond respond-blockquote <?php 
            echo sanitize_html_classes($bg_class);
            ?>
 col-sm-12 col-md-12">
								<div class="description <?php 
            echo esc_attr($bg_style);
            ?>
">
									<blockquote>
										<?php 
            the_content();
            ?>
									</blockquote>
								</div>
								<div class="name">
									<div class="icon">
										<?php 
            if (has_post_thumbnail()) {
                the_post_thumbnail();
            }
            ?>
									</div>
									
									<strong <?php 
            echo $white == 'white' ? 'class="white"' : '';
            ?>
><?php 
            the_title();
            ?>
</strong>
									<div <?php 
            echo $white == 'white' ? 'class="white"' : '';
            ?>
><?php 
            echo get_post_meta(get_the_ID(), 'designation', TRUE);
            ?>
</div>
								</div>
							</div>
							<?php 
        }
    }
    wp_reset_query();
    ?>
				</div>
			</div>
			<div class="clearfix"></div>
			<?php 
    if ($style == 'style1' || $style == 'style3') {
        ?>
				<div class="pagination switches"></div>
			<?php 
    }
    ?>
		</div>
	</div>

	<?php 
    $output = ob_get_contents();
    ob_end_clean();
    return $output;
}