diff --git a/site/controllers/program.php b/site/controllers/program.php index a99cf53..61ea71a 100644 --- a/site/controllers/program.php +++ b/site/controllers/program.php @@ -49,7 +49,7 @@ function createArraySession($event, $session) { $arraySession['public'] = $event->public(); $arraySession['event-url'] = $event->url(); $arraySession['duration'] = $event->duration(); - $arraySession['ticketingUrl'] = $isMapadoEvent ? $session->ticketingUrl() : false; + $arraySession['ticketingUrl'] = $isMapadoEvent ? $session->ticketingUrl()->value() : $event->bookingUrl()->value(); $arraySession['bookableStock'] = $isMapadoEvent ? $session->bookableStock()->value() : 'free'; $arraySession['totalStock'] = $isMapadoEvent ? (int) $event->totalStock()->value() : 'free'; $arraySession['color'] = $event->color(); diff --git a/site/snippets/event-card.php b/site/snippets/event-card.php index f5140e8..a32a872 100644 --- a/site/snippets/event-card.php +++ b/site/snippets/event-card.php @@ -18,6 +18,8 @@
title() ?>
isMapadoEvent() == 'true'): ?> option('ticketingUrl') . 'event/' . $event->mapadoSlug(), 'size' => (100 / (12 / $span) - 10)]) ?> + bookingUrl()->isNotEmpty()): ?> + $event->bookingUrl(), 'size' => (100 / (12 / $span) - 10)]) ?>
diff --git a/site/templates/program.php b/site/templates/program.php index 1e124d3..dc07bfe 100644 --- a/site/templates/program.php +++ b/site/templates/program.php @@ -148,8 +148,17 @@
+ + 0): ?> + Billetterie + Entrée libre + Complet