aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorAndreas Hubel2019-03-13 16:04:59 +0100
committerAndreas Hubel2019-03-13 16:04:59 +0100
commit3d18a67a2f2cb6934a8394ff7513466ed0a88093 (patch)
tree144fc5d1df31971cec8f41ac33128b40a0fb0ed1 /template
parentf6069f771241051bf6ce94578ae4f3bbaf47fdcf (diff)
optimize schedule display for talks.duration <= 10 minutes
Diffstat (limited to '')
-rw-r--r--template/assemblies/schedule.phtml17
1 files changed, 9 insertions, 8 deletions
diff --git a/template/assemblies/schedule.phtml b/template/assemblies/schedule.phtml
index a519c23..fe0ccbb 100644
--- a/template/assemblies/schedule.phtml
+++ b/template/assemblies/schedule.phtml
@@ -41,14 +41,15 @@
<h3><?=h($event['title'])?></h3>
<? else: ?>
-
- <h4><?=h(strftime('%H:%M', $event['start']))?>
- &ndash;
- <?=h(strftime('%H:%M', $event['end']))?>
- &nbsp;in&nbsp;
- <?=h($scheduleRoom ? $scheduleRoom->getDisplayShort() : $roomname) ?>
- </h4>
- <h3>
+ <? if($event['duration'] > 10*60): /* only display when event is longer as 10 minutes */ ?>
+ <h4><?=h(strftime('%H:%M', $event['start']))?>
+ &ndash;
+ <?=h(strftime('%H:%M', $event['end']))?>
+ &nbsp;in&nbsp;
+ <?=h($scheduleRoom ? $scheduleRoom->getDisplayShort() : $roomname) ?>
+ </h4>
+ <? endif ?>
+ <h3 title="<?=$event['title']?>">
<?=h($event['title'])?><? if (@$event['optout']): ?><i> (no stream)</i><? endif ?>
</h3>
<? if(! empty(trim($event['speaker']))): ?>