52 lines
2.5 KiB
PHP
52 lines
2.5 KiB
PHP
<footer class="footer text-center text-sm-left" style="padding: 20px; background-color: #f8f9fa; position: fixed; bottom: 0; width: 100%; z-index: 1000;">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-12 col-md-6 text-center text-md-left mb-2 mb-md-0">
|
|
© 2023 CE Soft
|
|
</div>
|
|
<div class="col-sm-12 col-md-6 text-center text-md-right">
|
|
|
|
<a href="regolamentoprivacy.php" target="_blank">Regolamento Privacy</a> / <a href="privacydoc.php" target="_blank">Privacy Policy</a> - <a href="cookie-policy-it.php" target="_blank">Cookie Policy Ita</a> / <a href="cookie-policy-en.php" target="_blank">Cookie Policy ENG</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const footer = document.querySelector('footer');
|
|
const footerHeight = footer.offsetHeight;
|
|
document.body.style.paddingBottom = footerHeight + 'px';
|
|
});
|
|
</script>
|
|
|
|
<!-- Cookie Banner -->
|
|
<div id="cookie-banner" style="position: fixed; bottom: 0; width: 100%; background: #333; color: #fff; padding: 15px; text-align: center; z-index: 1000; font-family: Arial, sans-serif; display: none;">
|
|
<div id="cookie-text">
|
|
<p>
|
|
Questo sito utilizza esclusivamente cookie tecnici per garantire funzionalità essenziali (come login e sicurezza).
|
|
<a href="cookie-policy-it.php" target="_blank" style="color: #fff; text-decoration: underline; margin-left: 5px;">Scopri di più</a>
|
|
</p>
|
|
<p>
|
|
This site uses only technical cookies to ensure essential features (such as login and security).
|
|
<a href="cookie-policy-en.php" target="_blank" style="color: #fff; text-decoration: underline; margin-left: 5px;">Learn more</a>
|
|
</p>
|
|
</div>
|
|
<div>
|
|
<button onclick="closeBanner()" style="background: #28a745; color: #fff; border: none; padding: 8px 16px; margin: 5px; cursor: pointer;">OK</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function closeBanner() {
|
|
document.getElementById('cookie-banner').style.display = 'none';
|
|
localStorage.setItem('cookiesAcknowledged', 'true');
|
|
}
|
|
|
|
// Mostra il banner solo se l'utente non ha ancora accettato i cookie
|
|
window.onload = function() {
|
|
if (!localStorage.getItem('cookiesAcknowledged')) {
|
|
document.getElementById('cookie-banner').style.display = 'block';
|
|
}
|
|
};
|
|
</script> |