From 7ed33ca7227e32ec82cd06d135f3ac4373454155 Mon Sep 17 00:00:00 2001 From: Andreas Hubel Date: Sat, 3 Feb 2024 14:12:23 +0100 Subject: [PATCH] feat(overview): add option to display room track --- configs/conferences/fosdem/config.json | 2 +- model/Schedule.php | 1 + template/overview.phtml | 8 +++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/configs/conferences/fosdem/config.json b/configs/conferences/fosdem/config.json index 066ec727..b240e69c 100644 --- a/configs/conferences/fosdem/config.json +++ b/configs/conferences/fosdem/config.json @@ -32,9 +32,9 @@ "display": "#%s:fosdem.org", "url": "https://matrix.to/#/#%s:fosdem.org?web-instance[element.io]=chat.fosdem.org" } - } }, "hide_rooms_without_talks": true, + "show_track_in_overview": true }, "overviewPage": {}, "schedule": { diff --git a/model/Schedule.php b/model/Schedule.php index c2506333..266225e7 100644 --- a/model/Schedule.php +++ b/model/Schedule.php @@ -244,6 +244,7 @@ class Schedule // normal talk $talk = $this->makeEvent($start, $end); $talk['guid'] = (string)$event['guid']; + $talk['track'] = (string)$event->track; $talk['title'] = (string)$event->title; $talk['speaker'] = implode(', ', $personnames); $talk['room_known'] = $this->isRoomMapped($roomName); diff --git a/template/overview.phtml b/template/overview.phtml index def70cf9..b9e03a45 100644 --- a/template/overview.phtml +++ b/template/overview.phtml @@ -107,7 +107,13 @@ $current = @$upcoming['current']; $next = @$upcoming['next']; $current_is_special = $current['special'] ?? false; - $next_is_special = $next['special'] ?? false; ?> + $next_is_special = $next['special'] ?? false; + + if($conference->get('show_track_in_overview')): + ?> +
+ +