From 221c7ff3a705c0dd642480686074270a62094ec1 Mon Sep 17 00:00:00 2001 From: dedeibel Date: Sun, 30 Dec 2018 15:46:21 +0100 Subject: Added short display name feature for longer rooms / schedule and mobile view --- model/Room.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'model') diff --git a/model/Room.php b/model/Room.php index 21a05a9..cfc14c1 100644 --- a/model/Room.php +++ b/model/Room.php @@ -67,6 +67,16 @@ class Room return $this->getConference()->get('ROOMS.'.$this->getSlug().'.DISPLAY', $this->getSlug()); } + public function getDisplayShort() { + $display_short = $this->getConference()->get('ROOMS.'.$this->getSlug().'.DISPLAY_SHORT', $this->getSlug()); + if (empty($display_short)) { + return $this->getDisplay(); + } + else { + return $display_short; + } + } + public function hasStereo() { -- cgit v1.2.3