<div class="slider-area <?php if(!get_theme_mod('featured_box')) : ?>feat-box<?php endif; ?>">
			
	<div class="ct_slides_area">

		<div class="<?php if(get_theme_mod('vine_themes_slider_full')=='full') : ?> ct_full_slider <?php elseif(get_theme_mod('vine_themes_slider_full')=='carousel') : ?> ct_slider_carousel <?php endif; ?>">
		
			<?php
				
				$featured_cat = get_theme_mod( 'ct_featured_cat' );
				$get_featured_posts = get_theme_mod('ct_featured_id');
				$number = get_theme_mod( 'ct_featured_slider_slides' );
				
				if($get_featured_posts) {
					$featured_posts = explode(',', $get_featured_posts);
					$args = array( 'showposts' => $number, 'post_type' => array('post', 'page'), 'post__in' => $featured_posts, 'orderby' => 'post__in' );
				} else {
					$args = array( 'cat' => $featured_cat, 'showposts' => $number );
				}
				
			?>
			
               <?php
            $image_size = "slider-thumb";
            $i=0;
$the_cat = get_the_category();
$category_name = $the_cat[0]->cat_name;
$category_description = $the_cat[0]->category_description;
$category_link = get_category_link( $the_cat[0]->cat_ID );
?>
            
			<?php $feat_query = new WP_Query( $args ); ?>
		
			<?php if ($feat_query->have_posts()) : while ($feat_query->have_posts()) : $feat_query->the_post(); ?>
            
             <?php 

            if(get_theme_mod('vine_themes_slider_full')=='car'){$image_size="car-thumb"; }
            
            elseif(get_theme_mod('vine_themes_slider_full')=='full'){$image_size="full-thumb";}
            
            ?>
                <?php if(get_theme_mod('vine_themes_slider_full')=='full'||'carousel') : ?>
                    <div class="item-slide">
			<div class="image-slide">
                


             <a href="<?php echo get_permalink(); ?>">
                 <div class="feat-item" style="background-image:url(<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), $image_size ); if(!$image) { echo get_template_directory_uri() . '/img/slider-default.png'; } else { echo $image[0]; } ?>);"></div>
             </a>
                
                <?php if(get_theme_mod('vine_themes_slider_full')=='car') : ?> 
                       <span class="category"><a href="<?php echo $category_link; ?>"><?php
echo $category_name;?></a></span>
                        
                        
                        <?php endif; ?>
                
                </div>
				<div class="feat-item-wrapper"><div class="feat-overlay">
					<div class="feat-inner">
                        
                        
						<span class="category">

                            <div class="post-category">
					      <span class="front-post-category">

                            <?php getCategory(); ?>
                          </span>
                            </div>

                        </span>
                        

                        
						<h2 class="feat-title"><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a></h2>

                        <span class="post-date"><?php _e( '', 'vinethemes' ); ?> <?php the_time( get_option('date_format') ); ?></span>

                        
                        <?php if(get_theme_mod('vine_themes_slider_full')=='car') : ?>
                        <span class="feat-author"><?php _e( 'By', 'vinethemes' ); ?> <?php the_author_posts_link(); ?></span>
                         <span class="feat-date"><?php _e( '', 'vinethemes' ); ?> <?php the_time( get_option('date_format') ); ?></span>

                        <?php endif; ?>
                        
                        
					</div>
				</div></div>
				
        </div>

                    <?php endif; endwhile; endif; ?>


		</div>
	
	</div>
	
</div>