From cfecaf77340569df6a4002b0aced94367e2562e2 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 20 Dec 2015 16:41:39 +0100 Subject: allow rooms to be forced to full-width --- model/Room.php | 4 ++++ template/overview.phtml | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/model/Room.php b/model/Room.php index b4fc1d1..7386c1d 100644 --- a/model/Room.php +++ b/model/Room.php @@ -72,6 +72,10 @@ class Room extends ModelBase return $this->get('ROOMS.'.$this->getSlug().'.PREVIEW'); } + public function requestsWide() { + return $this->get('ROOMS.'.$this->getSlug().'.WIDE'); + } + public function hasSchedule() { return $this->get('ROOMS.'.$this->getSlug().'.SCHEDULE') && $this->has('SCHEDULE'); } 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 @@
- - $room): ?> + +