Append hotel category to name on detail page
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{namespace ep=EP\EpTheme\ViewHelpers}
|
||||
<f:variable name="hotelTitle">{hotel.name -> f:format.raw()}{f:if(condition: hotel.categoryLabel, then: ' ({hotel.categoryLabel -> f:format.raw()})')}</f:variable>
|
||||
<f:if condition="{bars}">
|
||||
<f:then><div class="ep-headbar">{hotel.name -> f:format.raw()}</div></f:then>
|
||||
<f:else><h2>{hotel.name -> f:format.raw()}</h2></f:else>
|
||||
<f:then><div class="ep-headbar">{hotelTitle}</div></f:then>
|
||||
<f:else><h2>{hotelTitle}</h2></f:else>
|
||||
</f:if>
|
||||
<div class="hotel-details hotel-details--description">
|
||||
{hotel.description -> f:format.html()}
|
||||
|
||||
Reference in New Issue
Block a user