<?php

/**
 * Template part for displaying the footer content
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package ljn
 */
if (is_page_template('template-contact.php')) {
  $agences = array();
} else {
  $agences = ljn_get_option('agences');
}
if (is_array($agences) && sizeof($agences) > 0) :
?>

  <footer id="colophon" class="py-20 lg:py-32 lg:pl-[100px]">

    <div class="container flex flex-col md:flex-row md:justify-around gap-10 md:gap-0 text-green font-medium">
      <?php foreach ($agences as $agence) : ?>
        <address class="text-center not-italic ">
          <h3 class="uppercase round-after round-after-sm  round-after-orange  mb-5 "><?php echo $agence['titre'] ?></h3>
          <div><?php echo $agence['description'] ?></div>
        </address>
      <?php endforeach; ?>
    </div>
  </footer><!-- #colophon -->

  <div class="btn-backtotop js-back-to-top ">
    <?php echo lnj_load_inline_svg('scroll-up.svg'); ?>

  </div>

<?php endif; ?>