Commit ee5e2a11 authored by David Steeb's avatar David Steeb Committed by Matthias Stegmann
Browse files

[TASK] Only show the login button if login page is available

parent 384da53d
......@@ -105,17 +105,24 @@
<f:translate key="login.logout" extensionName="site_t3demo" />
</f:link.page>
</f:then>
<f:else>
<f:else if="{f:uri.typolink(parameter: settings.login)}">
<f:link.page pageUid="{settings.login}" additionalParams="{logintype: 'logout'}" class="b_button b_button--secondary umami--click--button-frontend-logout">
<f:translate key="login.logout" extensionName="site_t3demo" />
</f:link.page>
</f:else>
<f:else>
<f:link.page pageUid="{settings.startpage}" additionalParams="{logintype: 'logout'}" class="b_button b_button--secondary umami--click--button-frontend-logout">
<f:translate key="login.logout" extensionName="site_t3demo" />
</f:link.page>
</f:else>
</f:if>
</f:then>
<f:else>
<f:link.typolink parameter="{settings.login}" class="b_button umami--click--button-frontend-login">
<f:translate key="login.login" extensionName="site_t3demo" />
</f:link.typolink>
<f:if condition="{f:uri.typolink(parameter: settings.login)}">
<f:link.typolink parameter="{settings.login}" class="b_button umami--click--button-frontend-login">
<f:translate key="login.login" extensionName="site_t3demo" />
</f:link.typolink>
</f:if>
</f:else>
</f:if>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment