Fix missing flag icons

This commit is contained in:
Björn Fromme
2018-08-21 19:43:16 +02:00
parent 39971dcbeb
commit d34e95dfff
2 changed files with 10 additions and 6 deletions
@@ -225,6 +225,11 @@ class HotelService implements SingletonInterface
'images' => $this->hotelImageService->getImages($row['hotelUid']), 'images' => $this->hotelImageService->getImages($row['hotelUid']),
'fact' => $row['hotelFact'], 'fact' => $row['hotelFact'],
], ],
'country' => [
'name' => $row['country'],
'code' => $row['countryCode'],
'flag' => $this->flagIconService->getImage($row['countryCode']),
],
'available' => 0, 'available' => 0,
'board' => $row['board'], 'board' => $row['board'],
'earlybird' => $row['earlybird'], 'earlybird' => $row['earlybird'],
@@ -1,7 +1,6 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" <html xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers" xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers" xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers">
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
<f:layout name="Default"/> <f:layout name="Default"/>
@@ -9,8 +8,8 @@
<div class="teaserbox teaserbox--landscape teaserbox--searchresult searchresult-item"> <div class="teaserbox teaserbox--landscape teaserbox--searchresult searchresult-item">
<div class="teaserbox__image"> <div class="teaserbox__image">
<img class="teaserbox__flag" <img class="teaserbox__flag"
src="{product.country.flag}" src="{item.country.flag}"
alt="{product.country.name}"/> alt="{item.country.name}"/>
<f:link.action <f:link.action
pageUid="{product.detailPage}" pageUid="{product.detailPage}"
action="detail" action="detail"
@@ -131,9 +130,9 @@
</f:section> </f:section>
<f:section name="Image"> <f:section name="Image">
<f:if condition="{item.hotel.images}"> <f:if condition="{item.hotel.images.original}">
<f:then> <f:then>
<f:alias map="{image: item.hotel.images.0}"> <f:alias map="{image: item.hotel.images.original.0}">
<picture class="searchresult-item__image"> <picture class="searchresult-item__image">
<source media="(max-width: 768px)" srcset="{f:uri.image( <source media="(max-width: 768px)" srcset="{f:uri.image(
src: image.uid, treatIdAsReference: 1, src: image.uid, treatIdAsReference: 1,