start footer

This commit is contained in:
isUnknown 2024-07-31 12:09:03 +02:00
parent 41a7b7b4cb
commit 1945557d93
21 changed files with 195 additions and 77 deletions

View file

@ -42,5 +42,6 @@ return [
'date' => [
'handler' => 'intl'
],
'locale' => 'fr_FR.UTF-8'
'locale' => 'fr_FR.UTF-8',
'ticketingUrl' => 'https://cdn-besancon.mapado.com/'
];

View file

@ -45,7 +45,7 @@ return function($newPage, $oldPage) {
$startTime = substr($session->startDate, 11, 5);
$eventDateId = explode('/', $session->{'@id'});
$eventDateId = $eventDateId[count($eventDateId) - 1];
$ticketingUrl = 'https://cdn-besancon.mapado.com/event/' . $mapadoEvent->slug . '?eventDate=' . $eventDateId;
$ticketingUrl = option('ticketingUrl') . 'event/' . $mapadoEvent->slug . '?eventDate=' . $eventDateId;
if (isset($session->endDate) && !$duration) {
$endTime = substr($session->endDate, 11 , 5);

View file

@ -85,7 +85,7 @@ return [
$startTime = substr($session->startDate, 11, 5);
$eventDateId = explode('/', $session->{'@id'});
$eventDateId = $eventDateId[count($eventDateId) - 1];
$ticketingUrl = 'https://cdn-besancon.mapado.com/event/' . $mapadoEvent->slug . '?eventDate=' . $eventDateId;
$ticketingUrl = option('ticketingUrl') . 'event/' . $mapadoEvent->slug . '?eventDate=' . $eventDateId;
if (isset($session->endDate) && !$duration) {
$endTime = substr($session->endDate, 11 , 5);

View file

@ -51,7 +51,7 @@ return [
"day" => $day,
"time" => str_replace(':', 'h', $startTime),
"duration" => $duration,
"ticketingUrl" => 'https://cdn-besancon.mapado.com/event/' . $mapadoEvent->slug . '?eventDate=' . $eventDateId
"ticketingUrl" => option('ticketingUrl') . 'event/' . $mapadoEvent->slug . '?eventDate=' . $eventDateId
]);
$sessionsToSave[] = [

View file

@ -8,7 +8,7 @@
<h5><?= $event->title() ?></h5>
</a>
<?php if ($event->isMapadoEvent() == 'true'): ?>
<?php snippet('ticket', ['link' => 'https://cdn-besancon.mapado.com/event/' . $event->mapadoSlug()]) ?>
<?php snippet('ticket', ['link' => option('ticketingUrl') . 'event/' . $event->mapadoSlug()]) ?>
<?php endif ?>
</div>
<div>

View file

@ -1,2 +1,43 @@
<footer class="main-footer">
<h1 class="logo">
<span>Nouveau</span>
<span>Théâtre</span>
<span>Besançon</span>
</h1>
<form action="">
<p>S'inscrire à la newsletter</p>
<input placeholder="e-mail" type="email" name="email" autocomplete="email" id="email">
</form>
<div class="main-footer__infos">
<p><strong>Contact</strong></p>
<p>
Nouveau Théâtre de Besançon<br>
2 avenue Édouard Droz<br>
Parc du Casino<br>
25000 Besançon
</p>
<p><strong>Accueil</strong></p>
<p>
accueil@ntbesancon.fr<br>
03 81 88 55 11
</p>
</div>
<div class="main-footer__socials">
<p><strong>Suivez nous</strong></p>
<ul class="social-icons">
<li>
<a href="" target="_blank" title="Voir la page Instagram du NTB"><?= svg('assets/images/icons/instagram.svg') ?></a>
</li>
<li>
<a href="" target="_blank" title="Voir la page Facebook du NTB"><?= svg('assets/images/icons/facebook.svg') ?></a>
</li>
</ul>
<a href="#">Contacts et Mentions légales</a>
</div>
</footer>
</body>
</html>

View file

@ -22,9 +22,7 @@
</li>
<?php endforeach ?>
</ul>
<button class="main-nav__ticket">
<?= svg('/assets/images/icons/ticket.svg') ?>
</button>
<?php snippet('ticket', ['link' => option('ticketingUrl')]) ?>
<button class="main-nav__search">
<?= svg('/assets/images/icons/search.svg') ?>
</button>

View file

@ -1,3 +1,9 @@
<a class="ticket" href="<?= $link ?>" target="_blank" title="Aller à la billetterie">
<?= svg('assets/images/icons/ticket.svg') ?>
</a>
<?php if (isset($link)): ?>
<a class="ticket" href="<?= $link ?>" target="_blank" title="Aller à la billetterie">
<?= svg('assets/images/icons/ticket.svg') ?>
</a>
<?php else: ?>
<figure class="ticket" target="_blank" title="Aller à la billetterie">
<?= svg('assets/images/icons/ticket.svg') ?>
</figure>
<?php endif; ?>

View file

@ -30,4 +30,9 @@
<?php snippet('events-grid', ['events' => $orderedEvents->slice(2, 5)]) ?>
<section class="callout">
<h4><?= $site->callout() ?></h4>
<a href="<?= option('ticketingUrl') ?>" target="_blank" title="Aller à la billetterie"><?php snippet('ticket') ?> Billetterie</a>
</section>
<?php snippet('footer') ?>