<footer class="footer">
<?php
if (!is_page_template(['careers.php', 'contact.php', '404.php', 'terms.php']) && !is_singular(['case-study', 'vacancies']) ) {
get_template_part('templates/footer-contact-form');
}
$footer = get_field('footer', 'option');
?>
<div class="footer-content --black-section">
<div class="container">
<div class="footer-content__wrapper">
<div class="footer-content__top footer-content__content">
<div class="footer-content__top-menu text-2 mob-text-2 --bold">
<?php
foreach($footer['navigation_group'] as $item) :
$link = get_link_group_field($item['link']);
if ($link) :
?>
<a href="<?php echo $link['url']; ?>" <?php echo $link['target']; ?>><?php echo $link['title']; ?></a>
<?php
endif;
endforeach;
?>
</div>
<?php
if ($footer['right_top_link']) :
?>
<div class="text text-2 mob-text-2 --light">
<?php
echo $footer['right_top_link'];
?>
</div>
<?php
endif;
?>
</div>
<div class="footer-content__bottom footer-content__content">
<div class="footer-content__bottom-menu">
<?php
if ($footer['copyright']) :
?>
<p class="text text-2 mob-text-2 --light"><?php echo $footer['copyright']; ?></p>
<?php
endif;
?>
<?php
foreach($footer['navigation_group_bottom'] as $item) :
$link = get_link_group_field($item['link']);
if ($link) :
?>
<a class="text-2 mob-text-2 --light" href="<?php echo $link['url']; ?>" <?php echo $link['target']; ?>><?php echo $link['title']; ?></a>
<?php
endif;
endforeach;
?>
</div>
<p class="text text-2 mob-text-2 --light">
Designed by <a target="_blank" href="https://goodface.agency/">Goodface</a>
</p>
</div>
</div>
</div>
</div>
</footer>
</main>
<?php
$cookie_accept = false;
if (isset($_COOKIE['cookie_accept']) && !empty($_COOKIE['cookie_accept'])) {
$cookie_accept = true;
}
$cookie_banner = get_field('cookie_banner', 'option');
if ($cookie_accept === false && $cookie_banner['title']):
?>
<div class="cookie-banner">
<div class="container">
<div class="cookie-banner__inner">
<div class="cookie-banner__text text-2 mob-text-2">
<?php echo $cookie_banner['title']; ?>
</div>
<div class="button accept-cookie text-2 mob-text-2">
<?php echo $cookie_banner['button_text']; ?>
</div>
</div>
</div>
</div>
<?php
endif;
?>
<?php wp_footer(); ?>
</body>
</html>