<?php

/**
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

function urbanews_vertical_list_featured_posts_slideshow($args, $section_title) {

	?>

	<div class="vertical-featured-posts-section">
		
		<div class="featured-posts-head">
			
			<h4><?php echo esc_html($section_title);?></h4>
			<div class="featured-posts-navigation vertical-featured-posts-navigation"></div>

		</div>

		<div class="vertical-featured-posts-slideshow featured-posts-slideshow urbanews-slick-container">

			<?php

				$vertical_slideshow_query = new WP_Query($args);
				if( $vertical_slideshow_query->have_posts() ) :  while( $vertical_slideshow_query->have_posts() ) : $vertical_slideshow_query->the_post();
			
			?>

					<div class="featured-posts-small-article-wrapper">
					
						<div class="featured-posts-small-article">

							<div class="featured-posts-content">

								<h2><a href="<?php echo esc_url(get_permalink()); ?>"><?php echo esc_html(get_the_title()); ?></a></h2>
								<p class="featured-posts-date"><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo get_the_date();?></p>

							</div>

						</div>

					</div>
		
			<?php

				endwhile;
				wp_reset_postdata();
				endif;
		
			?>     


		</div>

	</div>

	<?php

}
	
?>