From d34e95dfff45a619e7d83ff6ce74898cf75383fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Tue, 21 Aug 2018 19:43:16 +0200 Subject: [PATCH] Fix missing flag icons --- .../ext/ep_products/Classes/Service/HotelService.php | 5 +++++ .../Resources/Private/Partials/Hotel/TeaserWide.html | 11 +++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/web/typo3conf/ext/ep_products/Classes/Service/HotelService.php b/web/typo3conf/ext/ep_products/Classes/Service/HotelService.php index abdd1836..75f30b62 100644 --- a/web/typo3conf/ext/ep_products/Classes/Service/HotelService.php +++ b/web/typo3conf/ext/ep_products/Classes/Service/HotelService.php @@ -225,6 +225,11 @@ class HotelService implements SingletonInterface 'images' => $this->hotelImageService->getImages($row['hotelUid']), 'fact' => $row['hotelFact'], ], + 'country' => [ + 'name' => $row['country'], + 'code' => $row['countryCode'], + 'flag' => $this->flagIconService->getImage($row['countryCode']), + ], 'available' => 0, 'board' => $row['board'], 'earlybird' => $row['earlybird'], diff --git a/web/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserWide.html b/web/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserWide.html index 6e06a81e..28321389 100644 --- a/web/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserWide.html +++ b/web/typo3conf/ext/ep_theme/Resources/Private/Partials/Hotel/TeaserWide.html @@ -1,7 +1,6 @@ + xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers"> @@ -9,8 +8,8 @@
{product.country.name} + src="{item.country.flag}" + alt="{item.country.name}"/> - + - +