40 lines
1.8 KiB
PHP
Executable File
40 lines
1.8 KiB
PHP
Executable File
</main>
|
|
|
|
<footer class="text-center py-3 mt-auto" style="background: var(--military-dark); border-top: 1px solid var(--military-green);">
|
|
<small class="text-muted">
|
|
© <?= date('Y') ?> <strong>LASTWAR</strong> - <?= t('Sistema de Mensajería') ?> |
|
|
<?= t('Desarrollado por') ?> <a href="https://github.com/nickpons666" target="_blank" style="color: var(--accent-orange);">nickpons666</a> |
|
|
<a href="https://opensource.org/licenses/MIT" target="_blank" style="color: var(--military-sand);">MIT License</a>
|
|
</small>
|
|
</footer>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.js"></script>
|
|
<script>
|
|
(function() {
|
|
const html = document.documentElement;
|
|
const toggleBtn = document.getElementById('theme-toggle');
|
|
const icon = toggleBtn.querySelector('i');
|
|
|
|
function updateIcon(theme) {
|
|
icon.className = theme === 'dark' ? 'bi bi-sun-fill' : 'bi bi-moon-fill';
|
|
}
|
|
|
|
updateIcon(html.getAttribute('data-bs-theme'));
|
|
|
|
toggleBtn.addEventListener('click', function() {
|
|
const currentTheme = html.getAttribute('data-bs-theme');
|
|
const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
|
|
html.setAttribute('data-bs-theme', newTheme);
|
|
document.cookie = 'theme=' + newTheme + ';path=/;max-age=31536000';
|
|
updateIcon(newTheme);
|
|
});
|
|
})();
|
|
</script>
|
|
<?php if (isset($extraScripts)): ?>
|
|
<?= $extraScripts ?>
|
|
<?php endif; ?>
|
|
</body>
|
|
</html>
|