Files

46 lines
2.8 KiB
PHP

</main><?php /* opened at the end of site/_open.php */ ?>
<!-- Footer section -->
<footer class="footer-section set-bg fade-in"
data-setbg="<?= base_url(($current_uri_2 ?? '') == 'crossfit' ? 'site/assets/img/footer-bg-cf.jpg' : 'site/assets/img/footer-bg-gym.jpg') ?>">
<?php /* Contact details live in the #contactos section — the footer just carries
social links, the site menu and the mandatory legal links. */ ?>
<div class="container text-center">
<?php if (!empty($info['facebook']) || !empty($info['instagram']) || !empty($info['whatsapp'])): ?>
<div class="social-links footer-social">
<?php if(!empty($info['facebook'])): ?>
<a href="<?= htmlspecialchars($info['facebook']) ?>" target="_blank" rel="noopener" aria-label="Facebook"><i class="fab fa-facebook"></i></a>
<?php endif; ?>
<?php if(!empty($info['instagram'])): ?>
<a href="<?= htmlspecialchars($info['instagram']) ?>" target="_blank" rel="noopener" aria-label="Instagram"><i class="fab fa-instagram"></i></a>
<?php endif; ?>
<?php if(!empty($info['whatsapp'])): ?>
<a target="_blank" href="https://wa.me/<?= htmlspecialchars($info['whatsapp']) ?>" rel="noopener" aria-label="WhatsApp"><i class="fab fa-whatsapp"></i></a>
<?php endif; ?>
</div>
<?php endif; ?>
<ul class="footer-menu">
<?php foreach($navbar as $key => $n): ?>
<li><a href="<?= htmlspecialchars($n) ?>" <?= str_contains($n, '#') ? 'class="smooth-scroll"' : '' ?>><?= $key ?></a></li>
<?php endforeach; ?>
</ul>
<p class="small footer-legal">Este estabelecimento possui livro de reclamações online em <a href="https://www.livroreclamacoes.pt/Pedido/Reclamacao" target="_blank" rel="noopener">www.livroreclamacoes.pt</a></p>
<p class="small footer-legal"><a href="<?= base_url('home/privacidade') ?>">Política de Privacidade</a>
<span class="footer-legal-sep" aria-hidden="true">·</span>
<a href="<?= base_url('home/termos') ?>">Termos e Condições</a>
<?php /* Discreet backoffice entry point — bounces through SSO (id.andmore.pt). */ ?>
<span class="footer-legal-sep" aria-hidden="true">·</span>
<a href="<?= base_url('views/auth/login.php') ?>" class="footer-admin-link" rel="nofollow" aria-label="Acesso reservado" title="Backoffice"><i class="fas fa-lock"></i></a>
</p>
<p class="small footer-legal">Powered by <a href="https://andmore.pt" target="_blank" rel="noopener">andmore.pt</a></p>
</div>
</footer>
<!-- Scripts: jQuery first (Bootstrap navbar/alerts depend on it), then plugins -->
<?= script_tag('assets/vendor/jquery/jquery-3.7.1.min.js') ?>
<?= script_tag('assets/vendor/bootstrap5/js/bootstrap.bundle.min.js') ?>
<?= script_tag('site/assets/js/main.js') ?>
<?php include dirname(__DIR__, 2) . '/includes/dev_toolbar.php'; // DEV ONLY: sem saída fora de dev ?>
</body>
</html>