collapsable sections - add transition

This commit is contained in:
isUnknown 2024-09-03 12:02:57 +02:00
parent 7efec15b2f
commit 674c65a25e
8 changed files with 35 additions and 28 deletions

View file

@ -93,7 +93,7 @@
<section class="collapsable-sections">
<?php foreach($currentSeasonSessions as $month => $sessions): ?>
<?php if (count($sessions) > 0): ?>
<?php snippet('collapsable-section', ['title' => $month, 'sessions' => true], slots: true) ?>
<?php snippet('collapsable-section', ['title' => $month, 'padding' => false], slots: true) ?>
<?php slot('content') ?>
<ul class="sessions sessions--detailed">
<?php
@ -159,7 +159,7 @@
<div class="program-content__events">
<section class="collapsable-sections">
<?php foreach($previousSeasons as $previousSeason): ?>
<?php snippet('collapsable-section', ['title' => $previousSeason->title()], slots: true) ?>
<?php snippet('collapsable-section', ['title' => $previousSeason->title(), 'padding' => false], slots: true) ?>
<?php slot('content') ?>
<div class="program-content__events">
<?php snippet('events-grid', ['events' => $previousSeason->children(), 'columns' => 3]) ?>