Soshot/tpl/footer.php

24 lines
998 B
PHP
Raw Permalink Normal View History

2023-06-21 11:42:36 +02:00
</div>
2024-09-18 10:02:32 +02:00
<script>
function switchTheme(e) {
let actualTheme = document.documentElement.getAttribute('data-theme');
if (actualTheme === null || actualTheme === 'light') {
document.documentElement.setAttribute('data-theme', 'dark');
localStorage.setItem('theme', 'dark');
} else {
document.documentElement.setAttribute('data-theme', 'light');
localStorage.setItem('theme', 'light');
}
return false;
}
const currentTheme = localStorage.getItem('theme') ? localStorage.getItem('theme') : null;
if (currentTheme) {
document.documentElement.setAttribute('data-theme', currentTheme);
}
</script>
2023-06-29 11:57:38 +02:00
<footer id="myFooter" class="w3-bottom">
2024-09-18 10:02:32 +02:00
<div class="w3-container">
<p>Powered by <a href="https://forge.leslibres.org/Knah-Tsaeb/Soshot" target="_blank"> Soshot </a>| Theme by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank">w3.css</a></p>
2023-06-21 11:42:36 +02:00
</div>
</footer>