<?php

//
//   Template Name: Page Mentions légales
//

/**
 * The template for displaying all pages
 *
 * This is the template that displays all pages by default. Please note that
 * this is the WordPress construct of pages: specifically, posts with a post
 * type of `page`.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package ljn
 */

get_header();
$fields = get_fields();
$bloc_1 = $fields['bloc_1'] ?? '';
$bloc_2 = $fields['bloc_2'] ?? '';
?>


<main id="main relative ">
	<?php if (!empty($bloc_1)) : ?>
		<section class="py-20" id="mentions">
			<div class="container edito">
				<?php echo $bloc_1; ?>
			</div>
		</section>
	<?php endif; ?>
	<?php if (!empty($bloc_2)) : ?>
		<section class="py-20 bg-[#FFF9F0]" id="confidentialite">
			<div class="container edito">
				<?php echo $bloc_2; ?>
			</div>
		</section>
	<?php endif; ?>
</main><!-- #main -->






<?php
get_footer();
