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

<div id="topbar">

    <div class="topbar-logo">
        <f:if condition="{settings.structureLogoId}">
            <a href="{ot:rootPage.getUri()}" title="{settings.structureName}">
                <img src="{ot:request.getOtEnvVar(argument: 'FILE_STORAGE_URL')}{settings.structureLogoId}" alt="{settings.structureName}"/>
            </a>
        </f:if>
    </div>

    <h1 class="topbar-title">{settings.structureName}</h1>

    <v:render.uncache partial="Classic/UserToolbar" />

    <f:comment><!-- Si un networkLogo est définit, affiche le logo du réseau --></f:comment>
    <f:if condition="{settings.networkLogo} != ''">
        <f:then>
            <div class="topbar-network-logo">
                <a href="{settings.networkUrl}" target="_blank">
                    <img src="{settings.networkLogoUrl}" alt="{settings.networkName}" />
                </a>
            </div>
        </f:then>
    </f:if>
</div>
