{namespace v=FluidTYPO3\Vhs\ViewHelpers}
{namespace ot=Opentalent\OtTemplating\ViewHelpers}

<footer id="footer">
    <ul class="footer-navbar">

        <f:comment><!-- Get the footer page' uid if the page is found --></f:comment>
        <v:variable.set value="{ot:getPageUid(slug: '/footer')}" name="footerPageUid"/>

        <f:if condition="{footerPageUid} > 0">
            <f:then>
                <v:menu as="footerMenu" pageUid="{ot:getPageUid(slug: '/footer')}">
                    <f:for each="{footerMenu}" as="footerMenuItem">
                        <li>
                            <f:link.page pageUid="{footerMenuItem.uid}"
                                         title="{footerMenuItem.linktext}">
                                {footerMenuItem.linktext}
                            </f:link.page>
                        </li>
                    </f:for>
                </v:menu>
            </f:then>
        </f:if>
    </ul>
    <div class="logo-ot">
        <a href="{settings.opentalentWebsite}" target="_blank" alt="Opentalent">
            <img src="/typo3conf/ext/ot_templating/Resources/Public/media/logo-opentalent.png" height="40" />
        </a>
    </div>
</footer>
