a2g_maps/Resources/Private/Templates/Map/Popup.html
2023-12-04 16:36:56 +01:00

55 lines
2.2 KiB
HTML
Executable File

<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:bk2k="http://typo3.org/ns/BK2K/BootstrapPackage/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="MapPopupContent" />
<f:section name="content">
<bk2k:data.imageVariants as="variants" variants="{variants}" multiplier="{columnConfig.multiplier}" gutters="{columnConfig.gutters}" corrections="{columnConfig.corrections}" />
<f:if condition="{mapEntry.image}">
<f:then>
<f:render partial="Image" arguments="{file: mapEntry.image, settings: settings, variants: variants, maxWidth: 230}" />
</f:then>
</f:if>
<div class="{f:if(condition:'{mapEntry.image}',then:'mt-2')}">
<f:if condition="{mapEntry.title} !== ''">
<f:then>
<h4>
{mapEntry.title}
</h4>
</f:then>
</f:if>
<div>
<f:if condition="{mapEntry.addressline} !== ''">
<f:then>
{mapEntry.addressline}
</f:then>
</f:if>
<f:if condition="{mapEntry.zip}">
<f:then>
<br/>{mapEntry.zip}
</f:then>
</f:if>
<f:if condition="{mapEntry.city}">
<f:then>
{mapEntry.city}
</f:then>
</f:if>
<f:if condition="{mapEntry.region} !== ''">
<f:then>
<br/>{mapEntry.region}
</f:then>
</f:if>
</div>
<f:if condition="{mapEntry.popupContent}">
<f:then>
<f:format.htmlentitiesDecode>
{mapEntry.popupContent}
</f:format.htmlentitiesDecode>
</f:then>
</f:if>
<f:if condition="{mapEntry.navToUrl}">
<f:then>
<a href="{mapEntry.navToUrl}" target="_blank"><f:translate key="nav_me_to" default="mich navigieren"></f:translate></a>
</f:then>
</f:if>
</div>
</f:section>
</html>