<?php get_header(); ?>
	<?php 
	if ( get_theme_mod('thefashblog_slider',true) ) :
	$slider_display = '';
	else:
	$slider_display = ' ' . 'slider-hide';
	endif;
	?>
	<div class="carousel-area<?php echo esc_html( $slider_display ); ?>" style="background-image:url(<?php echo esc_url( get_header_image() ); ?>);">
			<div class="carousel-area-wrap">
				<?php $args = array(
				'post_status' => 'publish',
				'post__in' => get_option("sticky_posts")
				);
				$fPosts = new WP_Query( $args );?>
				<?php while ( $fPosts -> have_posts() ) : $fPosts -> the_post(); ?>
				<div class="carousel-item">
					<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
					<?php 
					if(has_post_thumbnail()){
						the_post_thumbnail('thefashblog-thumb-carousel');
					}
					else {
						$blank = get_template_directory_uri() . '/images/slider-blank.jpg'; ?>
						<img src="<?php echo esc_url($blank); ?>">
					<?php } ?>

					<div>
						<h1><?php the_title(); ?></h1>
						
					</div>
				</div>
				<?php endwhile; ?>
				<?php wp_reset_postdata(); ?>
				
			</div>
		<span class="pattern-overlay"></span>
	</div>
	<div class="front-wrapper">
		<div id="content">
			<div class="wrap">
				<div class="blog-list" id="blog">
						<?php while ( have_posts() ) : the_post(); ?>
		  						<article id="post-<?php the_ID(); ?>" <?php post_class( 'item' ); ?>>
			  						<?php get_template_part( 'home-content/home', 'blog'); ?>
								</article>
		  				<?php endwhile;  ?>
		 				<div class="clear"></div>
						<?php thefashblog_paging_nav(); ?>
				</div>
			</div>
		</div> <!-- content -->
	</div><!-- front-wrapper -->

<?php get_footer(); ?>