<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
      xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
      xmlns:nahrstedt="http://typo3.org/ns/AmadeusAgentur/Nahrstedt/Sitepackage/ViewHelpers"
      data-namespace-typo3-fluid="true">


<f:cache.disable>
<nahrstedt:Cookie>
    <f:then>
        <v:variable.set name="address" value="{nahrstedt:favoriteAddress()}"/>


        <f:if condition="{address.sales} > 0">
            <f:then>
                <f:render partial="../Address/Sales/Sales" arguments="{_all}"></f:render>
            </f:then>
            <f:else>
                <f:render partial="../Address/Sales/Openings" arguments="{_all}"></f:render>
            </f:else>
        </f:if>

    </f:then>
    <f:else>
        <div class="hero-badge hero-badge--openinghours">
            <div class="badge-bg"></div>
            <div class="badge-content">
                <div class="badge-base"><f:link.page pageUid="2">Mein Lieblings-Backhaus finden</f:link.page></div>
            </div>
        </div>
    </f:else>
</nahrstedt:Cookie>
</f:cache.disable>
