<?php
/**
 * The file process the ACF gallery output.
 *
 * @package Smart_Post_Show_Pro
 * @subpackage Public
 */

// List of images.
$images = $value;
?>

<ul>
	<?php foreach ( $images as $image ) : ?>
		<li>
			<a href="<?php echo esc_url( $image['url'] ); ?>">
				<img src="<?php echo esc_url( $image['sizes']['thumbnail'] ); ?>" alt="<?php echo esc_attr( $image['alt'] ); ?>" />
			</a>

			<p><?php echo esc_html( $image['caption'] ); ?></p>
		</li>
	<?php endforeach; ?>
</ul>
