aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configs/conferences/35c3/main.less2
-rw-r--r--model/Schedule.php8
-rw-r--r--template/assemblies/schedule.phtml6
3 files changed, 12 insertions, 4 deletions
diff --git a/configs/conferences/35c3/main.less b/configs/conferences/35c3/main.less
index 8c1a64e..5b27ed6 100644
--- a/configs/conferences/35c3/main.less
+++ b/configs/conferences/35c3/main.less
@@ -382,7 +382,7 @@ nav {
body .schedule {
.block {
- &.pause {
+ &.pause, &.optout {
background-color: @color-grey-lightest;
background-image: linear-gradient(135deg, rgba(255,255,255,.35) 15%, transparent 15%, transparent 30%, rgba(255,255,255,.35) 30%, rgba(255,255,255,.35) 45%, transparent 45%, transparent 60%, rgba(255,255,255,.35) 60%, rgba(255,255,255,.35) 75%, transparent 75%, transparent 90%, rgba(255,255,255,.35) 90%, rgba(255,255,255,.35));
diff --git a/model/Schedule.php b/model/Schedule.php
index 4b5d25e..5ffbeda 100644
--- a/model/Schedule.php
+++ b/model/Schedule.php
@@ -39,6 +39,13 @@ class Schedule
return isset( $mapping[$scheduleRoom] );
}
+ public function isOptout($event) {
+ if (isset($event->recording)) {
+ return $event->recording->optout == 'true';
+ }
+ return false;
+ }
+
public function getMappedRoom($scheduleRoom) {
$mapping = $this->getScheduleToRoomSlugMapping();
return $this->getConference()->getRoomIfExists( @$mapping[$scheduleRoom] );
@@ -199,6 +206,7 @@ class Schedule
'end' => $end,
'duration' => $duration,
'room_known' => $this->isRoomMapped($name),
+ 'optout' => $this->isOptout($event),
);
$lastend = $end;
diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml
index 461353c..4a737da 100644
--- a/template/assemblies/schedule.phtml
+++ b/template/assemblies/schedule.phtml
@@ -8,7 +8,7 @@
<? $fromstart = 0; ?>
<? foreach($events as $event): ?>
<div
- class="block <?=h(@$event['special'] ?: 'event')?>"
+ class="block <?=h(@$event['special'] ?: 'event')?> <?=h((@$event['optout']) ? 'optout' : '')?>"
style="width: <?=h(round($event['duration'] / $schedule->getScale()))?>px; left: <?=h(round($fromstart / $schedule->getScale()))?>px"
data-start="<?=intval($event['start'])?>"
data-end="<?=intval($event['end'])?>"
@@ -30,7 +30,7 @@
<? if(@$event['special'] == 'daychange'): ?>
- <h3><?=h($event['title'])?></h3>
+ <h3><?=h($event['title'])?></h3>
<? elseif(@$event['special'] == 'gap'): ?>
@@ -49,7 +49,7 @@
<?=h($scheduleRoom ? $scheduleRoom->getDisplay() : $roomname) ?>
</h4>
<h3>
- <?=h($event['title'])?>
+ <?=h($event['title'])?><? if (@$event['optout']): ?><i> (no stream)</i><? endif ?>
</h3>
<? if($event['speaker']): ?>
<h5>by&nbsp;<?=h($event['speaker'])?></h5>