aboutsummaryrefslogtreecommitdiff
path: root/template/overview.phtml
diff options
context:
space:
mode:
authorMaZderMind2015-12-20 16:41:39 +0100
committerMaZderMind2015-12-20 16:41:39 +0100
commitcfecaf77340569df6a4002b0aced94367e2562e2 (patch)
tree0f275a6519a818b7d2a14047f55e16ea97cae83e /template/overview.phtml
parent83d4c7d0176b2a6db5896a2819b8427d8a6f928a (diff)
allow rooms to be forced to full-width
Diffstat (limited to 'template/overview.phtml')
-rw-r--r--template/overview.phtml9
1 files changed, 7 insertions, 2 deletions
diff --git a/template/overview.phtml b/template/overview.phtml
index 45e2189..c23320e 100644
--- a/template/overview.phtml
+++ b/template/overview.phtml
@@ -17,8 +17,8 @@
<? endif ?>
<div class="row room-group room-group-n<?=h($i++)?>">
- <? $count = count($rooms); ?>
- <? foreach($rooms as $idx => $room): ?>
+ <? $count = count($rooms); $idx = 0 ?>
+ <? foreach($rooms as $room): ?>
<div class="
room
room-<?=h($room->getSlug())?>
@@ -28,6 +28,10 @@
<? if( ($count % 2 == 1) && ($idx == $count - 1) ): ?>
wide
col-xs-12
+ <? elseif($room->requestsWide()): ?>
+ <? $count++; $idx++ ?>
+ wide
+ col-xs-12
<? else: ?>
narrow
<? if($room->hasPreview() && $room->hasSchedule()): ?>
@@ -89,6 +93,7 @@
</div>
</div>
</div>
+ <? $idx++ ?>
<? endforeach ?>
</div>
<? endforeach ?>