nouveau-theatre-de-besancon/site/snippets/header.php

55 lines
2.2 KiB
PHP
Raw Normal View History

2024-07-24 09:43:31 +02:00
<!DOCTYPE html>
2024-09-21 09:46:24 +02:00
<!--===========================================-->
<!--===========================================-->
<!--========== CODED BY ADRIEN PAYET ==========-->
<!--============= ADRIEN-PAYET.FR =============-->
<!--===========================================-->
<!--===========================================-->
2024-09-21 09:47:39 +02:00
<html lang="fr">
2024-07-24 09:43:31 +02:00
<head>
2024-09-19 07:36:53 +02:00
<?php snippet('seo/head'); ?>
2024-07-24 09:43:31 +02:00
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2024-10-31 14:35:37 +01:00
<link rel="stylesheet" type="text/css" href="<?= url('assets/css/style.css?version-cache-prevent') . rand(0, 1000) ?>">
2024-07-24 09:43:31 +02:00
<meta name="robots" content="noindex,nofollow">
2024-08-30 14:37:13 +02:00
<!-- Alpine -->
<script src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
2024-09-17 15:57:47 +02:00
<!-- Calendar -->
2024-08-30 14:37:13 +02:00
<?php if ($page->isHomePage() || $page->template() == 'event' || $page->template() == 'program'): ?>
2024-09-12 15:14:01 +02:00
<!-- dayjs -->
<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>
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/weekOfYear.js"></script>
2024-09-24 08:59:17 +02:00
<script src="<?= url('/assets/js/calendar.js') ?>"></script>
2024-07-24 09:43:31 +02:00
<?php endif ?>
2024-09-17 15:57:47 +02:00
2024-08-30 14:37:13 +02:00
<!-- Swiper -->
2024-08-28 14:16:34 +02:00
<?php if ($page->template() == 'event'): ?>
2024-09-17 12:01:06 +02:00
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" defer />
2024-09-17 15:57:47 +02:00
<script defer src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
2024-09-20 10:32:49 +02:00
<script defer src="<?= url('assets/dist/swiper.min.js') ?>"></script>
2024-08-28 14:16:34 +02:00
<?php endif ?>
2024-09-17 15:57:47 +02:00
<!-- script.js -->
2024-09-20 10:32:49 +02:00
<script defer src="<?= url('assets/dist/script.min.js') ?>" type="module"></script>
<style>
:root {
<?php if ($page->color()->exists()): ?>
--color-event: <?= e($page->color()->isNotEmpty() == 'true', $page->color(), '#000') ?>;
<?php endif ?>
--color-season: <?= $kirby->collection('current-season')->color() ?>;
}
</style>
2024-07-24 09:43:31 +02:00
</head>
2024-09-03 14:18:49 +02:00
<body data-template="<?= $page->template() ?>">
2024-07-24 09:43:31 +02:00
<?php if ($page->isHomePage()): ?>
2024-09-03 14:18:49 +02:00
<?php snippet('info-banner') ?>
2024-07-24 09:43:31 +02:00
<?php endif ?>
<?php snippet('nav') ?>
2024-09-10 17:16:22 +02:00
<?php snippet('front-comments') ?>
<main>