Plain-PHP fleet platform with id.andmore.pt SSO. Wires shared/platform-tools as a submodule (platform_update, backups, git/migration tools) like the other platforms. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
41 lines
2.4 KiB
PHP
41 lines
2.4 KiB
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="<?= base_url($n) ?>" <?= (isset($n[0]) && $n[0] === '#') ? '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>
|
|
<?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>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- Scripts: jQuery first (Bootstrap navbar/alerts depend on it), then plugins -->
|
|
<?= script_tag('site/assets/js/jquery-3.7.1.min.js') ?>
|
|
<?= script_tag('assets/vendor/bootstrap/js/bootstrap.min.js') ?>
|
|
<?= script_tag('site/assets/js/splide/dist/js/splide.min.js') ?>
|
|
<?= script_tag('site/assets/js/main.js') ?>
|
|
</body>
|
|
</html>
|