fix nav mobile - load alpine on all pages

This commit is contained in:
isUnknown 2024-09-11 08:45:15 +02:00
parent 362e34d3ea
commit c27447b67d
2 changed files with 6 additions and 4 deletions

View file

@ -11,10 +11,12 @@
<meta name="robots" content="noindex,nofollow">
<!-- Alpine -->
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/locale/fr.js"></script>
<!-- Calendar -->
<?php if ($page->isHomePage() || $page->template() == 'event' || $page->template() == 'program'): ?>
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/locale/fr.js"></script>
<?= js('/assets/js/calendar.js') ?>
<?php endif ?>

View file

@ -95,7 +95,7 @@
try {
$endTime = strlen($session['duration']) > 0 ? getEndTime($session) : false;
} catch (\Throwable $th) {
} catch (\Throwable $th) {https://ntb-full.adrien-payet.fr/
throw new Exception($session['title'] .' - ' . $th->getMessage(), 1);
}
?>