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']),
'fact' => $row['hotelFact'],
],
'country' => [
'name' => $row['country'],
'code' => $row['countryCode'],
'flag' => $this->flagIconService->getImage($row['countryCode']),
],
'available' => 0,
'board' => $row['board'],
'earlybird' => $row['earlybird'],
@@ -1,7 +1,6 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers">
<f:layout name="Default"/>
@@ -9,8 +8,8 @@
<div class="teaserbox teaserbox--landscape teaserbox--searchresult searchresult-item">
<div class="teaserbox__image">
<img class="teaserbox__flag"
src="{product.country.flag}"
alt="{product.country.name}"/>
src="{item.country.flag}"
alt="{item.country.name}"/>
<f:link.action
pageUid="{product.detailPage}"
action="detail"
@@ -131,9 +130,9 @@
</f:section>
<f:section name="Image">
<f:if condition="{item.hotel.images}">
<f:if condition="{item.hotel.images.original}">
<f:then>
<f:alias map="{image: item.hotel.images.0}">
<f:alias map="{image: item.hotel.images.original.0}">
<picture class="searchresult-item__image">
<source media="(max-width: 768px)" srcset="{f:uri.image(
src: image.uid, treatIdAsReference: 1,