diff --git a/web/typo3conf/ext/ep_products/Classes/Domain/Model/Hotel.php b/web/typo3conf/ext/ep_products/Classes/Domain/Model/Hotel.php index 7d6c553d..09efef9c 100644 --- a/web/typo3conf/ext/ep_products/Classes/Domain/Model/Hotel.php +++ b/web/typo3conf/ext/ep_products/Classes/Domain/Model/Hotel.php @@ -875,4 +875,28 @@ class Hotel extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements Te $this->externalLink = $externalLink; } + /** + * @return bool + */ + public function getIsApartment() + { + return $this->getType() === self::TYPE_APPARTMENT; + } + + /** + * @return bool + */ + public function getIsHolidayFlat() + { + return $this->getType() === self::TYPE_HOLIDAY_FLAT; + } + + /** + * @return bool + */ + public function getIsOther() + { + return !$this->getIsApartment() && !$this->getIsHolidayFlat(); + } + } diff --git a/web/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/Details.html b/web/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/Details.html index b98a672e..c7a84287 100644 --- a/web/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/Details.html +++ b/web/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/Details.html @@ -45,9 +45,23 @@