<?php 
$storex_hs_blog		 	 = get_theme_mod('storex_hs_blog','1');
$storex_blog_title		 = get_theme_mod('storex_blog_title');
$storex_blog_view_all    = get_theme_mod('storex_blog_view_all_label');
$storex_blog_view_all_url= get_theme_mod('storex_blog_view_all_url');
$storex_blog_display_num = get_theme_mod('storex_blog_display_num','3');
if($storex_hs_blog=='1'){
	?>
	<section class="news-section pb_45">
		<div class="large-container">
			<div class="sec-title">
				<?php if ( ! empty( $storex_blog_title ) ) : ?> 
				<h2><?php echo wp_kses_post($storex_blog_title); ?></h2>
				<?php endif; ?>

				<?php if ( ! empty( $storex_blog_view_all ) ) : ?> 
				<a href="<?php echo esc_url( $storex_blog_view_all_url ); ?>"><?php echo wp_kses_post($storex_blog_view_all); ?></a>
				<?php endif; ?>
			</div>
			<div class="row clearfix">
				<?php 	
				$storex_blogs_args = array( 'post_type' => 'post', 'posts_per_page' => $storex_blog_display_num,'post__not_in'=>get_option("sticky_posts")) ; 	
				$storex_blog_wp_query = new WP_Query($storex_blogs_args);
				if($storex_blog_wp_query)
				{	
					while($storex_blog_wp_query->have_posts()):$storex_blog_wp_query->the_post(); ?>

						<div class="col-lg-3 col-md-6 col-sm-12 news-block">

							<?php get_template_part('template-parts/content/content','page'); ?>
						</div>

						<?php
					endwhile;
				}
				wp_reset_postdata();
				?>

			</div>
		</div>
	</section>
	<?php } ?>