<?php  
	$poolcleaning_hs_blog 			= get_theme_mod('hs_blog','1');
	$poolcleaning_blog_title 		= get_theme_mod('blog_title');
	$poolcleaning_blog_subtitle		= get_theme_mod('blog_subtitle'); 
	$poolcleaning_blog_description	= get_theme_mod('blog_description');
	$poolcleaning_blog_num			= get_theme_mod('blog_display_num','3');
	if($poolcleaning_hs_blog=='1'):
?>

<section id="blog-section" class="blog-area home-blog">
	<div class="container">
		<?php if(!empty($poolcleaning_blog_title) || !empty($poolcleaning_blog_subtitle) || !empty($poolcleaning_blog_description)): ?>
			<div class="title">
				<?php if(!empty($poolcleaning_blog_title)): ?>
					<h6><?php echo wp_kses_post($poolcleaning_blog_title); ?></h6>
				<?php endif; ?>
				
				<?php if(!empty($poolcleaning_blog_subtitle)): ?>
					<h2><?php echo wp_kses_post($poolcleaning_blog_subtitle); ?></h2>
					<span class="shap"></span>
				<?php endif; ?>
				
				<?php if(!empty($poolcleaning_blog_description)): ?>
					<p><?php echo wp_kses_post($poolcleaning_blog_description); ?></p>
				<?php endif; ?>
			</div>
		<?php endif; ?> 
		<div class="row">
			<?php 	
				$poolcleaning_blogs_args = array( 'post_type' => 'post', 'posts_per_page' => $poolcleaning_blog_num,'post__not_in'=>get_option("sticky_posts")) ; 	
				$poolcleaning_blog_wp_query = new WP_Query($poolcleaning_blogs_args);
				if($poolcleaning_blog_wp_query)
				{	
				while($poolcleaning_blog_wp_query->have_posts()):$poolcleaning_blog_wp_query->the_post(); ?>
				<div class="col-lg-4 col-md-6">
					<?php get_template_part('/template-parts/content/content','page'); ?>
				</div>
			<?php 
				endwhile; 
				}
				wp_reset_postdata();
			?>
		</div>
	</div>
</section>
<?php endif; ?>