diff --git a/assets/css/src/collapsable-section.css b/assets/css/src/collapsable-section.css index c4337e4..567c143 100644 --- a/assets/css/src/collapsable-section.css +++ b/assets/css/src/collapsable-section.css @@ -42,6 +42,10 @@ grid-template-columns: 2fr 1fr 1fr 2fr; } +.collapsable.sessions .session { + grid-template-columns: 1fr 2fr 1fr 2fr; +} + .collapsable__content .production p:not(:last-child) { margin-bottom: 2rem; } diff --git a/assets/css/src/generic.css b/assets/css/src/generic.css index 841c811..3b93e8b 100644 --- a/assets/css/src/generic.css +++ b/assets/css/src/generic.css @@ -16,7 +16,7 @@ cursor: progress !important; } .calendar-strip__days.progress > li { - animation: loading 0.3s; + animation: loading 0.75s; } .calendar-strip__days.progress button { cursor: progress !important; diff --git a/site/config/config.php b/site/config/config.php index 12dc474..f38232d 100644 --- a/site/config/config.php +++ b/site/config/config.php @@ -45,4 +45,5 @@ return [ ], 'locale' => 'fr_FR.UTF-8', 'ticketingUrl' => 'https://cdn-besancon.mapado.com/', + 'stockThreshold' => 15, ]; \ No newline at end of file diff --git a/site/controllers/program.php b/site/controllers/program.php index 708d37d..5fa8354 100644 --- a/site/controllers/program.php +++ b/site/controllers/program.php @@ -46,13 +46,14 @@ return function($page) { $arraySession['place'] = $event->place(); $arraySession['duration'] = $event->isMapadoEvent() == 'true' ? $event->remoteDuration() : $event->duration(); $arraySession['ticketingUrl'] = ''; + $arraySession['bookableStock'] = $event->isMapadoEvent() == 'true' ? $session->bookableStock()->value() : 'free'; + $arraySession['color'] = $event->color(); $currentSeasonSessions[] = $arraySession; $sessionDate = str_replace('-', '', $session->date()->toDate('YMMdd')); if ($sessionDate >= $today) { $isStillShowing = true; - break; } } diff --git a/site/templates/event.php b/site/templates/event.php index 4c4863f..581ea01 100644 --- a/site/templates/event.php +++ b/site/templates/event.php @@ -61,7 +61,7 @@
- formatObject($date, "d MMMM"); +
+