aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorMaZderMind2016-12-21 00:22:27 +0100
committerMaZderMind2016-12-21 00:27:10 +0100
commit8d05da5674048a76d234e09a24f4ecd61eef2f0f (patch)
tree75e4fa7d83365d78f5fd4083668a78a9cde0b618 /template
parentd0472453e1ab95fc526ed201b747758461ee4927 (diff)
rework design of panels and headlines on startpage
Diffstat (limited to 'template')
-rw-r--r--template/overview.phtml50
1 files changed, 22 insertions, 28 deletions
diff --git a/template/overview.phtml b/template/overview.phtml
index bbb9568..3332fb9 100644
--- a/template/overview.phtml
+++ b/template/overview.phtml
@@ -44,49 +44,43 @@
<? endif ?>
">
- <div class="panel panel-default">
- <div class="panel-heading">
- <div class="panel-title">
- <a href="<?=h($room->getLink())?>">
+ <a href="<?=h($room->getLink())?>">
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ <div class="panel-title">
<?=h($room->getDisplay())?>
- </a>
+ </div>
</div>
- </div>
- <div class="panel-body">
- <? if($room->hasPreview()): ?>
+ <div class="panel-body">
+ <? if($room->hasPreview()): ?>
- <a href="<?=h($room->getLink())?>">
<img
class="preview"
src="<?=h($room->getThumb())?>"
alt="<?=h($room->getDisplay())?>"
width="213" height="120"
/>
- </a>
- <? endif ?>
+ <? endif ?>
- <a href="<?=h($room->getLink())?>" class="title">
- <?=h($room->getDisplay())?>
- </a>
+ <? if($room->hasSchedule()): ?>
+ <? $upcoming = @$upcomingTalksPerRoom[ $room->getScheduleName() ] ?: [] ?>
+ <div class="program-schedule">
+ <div class="talk current-talk" title="<?=h(@$upcoming['current']['title'] ?: 'none') ?>">
+ <strong>Now:</strong>
+ <span class="t"><?=h(@$upcoming['current']['title'] ?: 'none') ?></span>
+ </div>
- <? if($room->hasSchedule()): ?>
- <? $upcoming = @$upcomingTalksPerRoom[ $room->getScheduleName() ] ?: [] ?>
- <div class="program-schedule">
- <div class="talk current-talk">
- <strong>Now:</strong>
- <span class="t"><?=h(@$upcoming['current']['title'] ?: 'none') ?></span>
+ <div class="talk next-talk" title="<?=h(@$upcoming['next']['title'] ?: 'none') ?>">
+ <strong>Next Talk:</strong>
+ <span class="t"><?=h(@$upcoming['next']['title'] ?: 'none') ?></span>
+ </div>
</div>
-
- <div class="talk next-talk">
- <strong>Next Talk:</strong>
- <span class="t"><?=h(@$upcoming['next']['title'] ?: 'none') ?></span>
- </div>
- </div>
- <? endif ?>
+ <? endif ?>
+ </div>
</div>
- </div>
+ </a>
</div>
<? $idx++ ?>
<? endforeach ?>