<?php
/**
 * @package ac-travel
 */
?>

<article id="<?php the_ID(); ?>" class="picto">

	<?php if( get_field('display_title') ) : ?>
	<header>
		<h1><?php the_title(); ?></h1>
	</header>
	<?php endif; ?>
	
	<main>
		<?php $icons = get_field('icons'); ?>
		<?php if( $icons ): ?>
			<ul>
				<?php foreach( $icons as $icon): ?>
					<li>
						<?php $picto = get_picto($icon); ?>
						<i class="<?php echo $picto['name']; ?>" style="font-size: <?php echo $picto['scale'] ?>em; color: <?php echo $picto['colour'] ?>"></i> 
					</li>
				<?php endforeach; ?>
			</ul>

		<?php endif; ?>
	</main>

</article><!-- #post-## -->
