<?php if ( get_theme_mod('movie_review_blog_latest_update_section_enable',false) ) : ?>

<?php $movie_review_blog_left_args = array(
  'post_type' => 'post',
  'post_status' => 'publish',
  'category_name' =>  get_theme_mod('movie_review_blog_latest_update_category'),
  'posts_per_page' => get_theme_mod('movie_review_blog_latest_update_number'),
  'order' => 'ASC',
  'orderby' => 'title'
); ?>

	<div id="trending" class="py-5">
		<div class="container">
			<div class="text-center">
				<?php if ( get_theme_mod('movie_review_blog_latest_update_heading') ) : ?>
	    		<h2 class="mb-0  wow fadeInDown"><?php echo esc_html(get_theme_mod('movie_review_blog_latest_update_heading'));?></h2>
	    	<?php endif; ?>
	    </div>
			<div class="row mt-5">
				<?php $movie_review_blog_arr_posts = new WP_Query( $movie_review_blog_left_args );
			    if ( $movie_review_blog_arr_posts->have_posts() ) :
			      while ( $movie_review_blog_arr_posts->have_posts() ) :
			        $movie_review_blog_arr_posts->the_post(); ?>
			        <div class="col-lg-3 col-md-6 col-sm-6 wow zoomIn">
				        <div class="mb-3">
		                <?php
					            if ( has_post_thumbnail() ) :
					              the_post_thumbnail();
					            else:
					              ?>
					              <div class="slider-alternate">
					                <img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/banner.png'; ?>">
					              </div>
					              <?php
					            endif;
					          ?>
					          <strong><?php the_date(); ?></strong>
                    <h3><a href="<?php echo esc_url(get_permalink($post->ID)); ?>"><?php the_title(); ?></a></h3>
                    <p><?php echo wp_trim_words(get_the_content(), 10); ?></p>
			            </div>
							</div>
			    <?php
			    endwhile;
			    wp_reset_postdata();
			    endif; ?>
			</div>
		</div>
	</div>
<?php endif; ?>