aboutsummaryrefslogtreecommitdiff
path: root/template/overview.phtml
diff options
context:
space:
mode:
authorMaZderMind2015-03-02 14:55:37 +0100
committerMaZderMind2015-03-02 14:55:37 +0100
commit3b16385db8037630296947828f47b2c6b8a68cab (patch)
tree5141e7cb648b34d043ed7f061f05f4f321f1b2a3 /template/overview.phtml
parent7f8942ef509ca3fa4e625beef00e023e25c6e94a (diff)
Multitude of Smartphone-Fixes
Diffstat (limited to '')
-rw-r--r--template/overview.phtml11
1 files changed, 8 insertions, 3 deletions
diff --git a/template/overview.phtml b/template/overview.phtml
index fc9e80b..9210d47 100644
--- a/template/overview.phtml
+++ b/template/overview.phtml
@@ -16,13 +16,18 @@
<? $count = count($rooms); ?>
<? foreach($rooms as $idx => $room): ?>
<div class="
- room room-<?=h($room)?>
+ room room-<?=h($room)?> clearfix
<? /* when the count is odd and this is the last item - make it full width */ ?>
<? if($count % 2 == 1 && $idx == $count - 1): ?>
- col-sm-12 wide
+ col-xs-12 wide
<? else: ?>
- col-md-6 col-sm-12 narrow
+ <? if(get("ROOMS.$room.PREVIEW") && get("ROOMS.$room.SCHEDULE") && has("SCHEDULE")): ?>
+ col-md-6
+ <? else: ?>
+ col-sm-6
+ <? endif ?>
+ narrow
<? endif ?>
<? if(get("ROOMS.$room.PREVIEW")): ?>