feat(extra-features): Shows user's name or "log out" if logged in

This commit is contained in:
2026-03-10 17:44:45 +01:00
parent e3cb3ece45
commit 76d758e141

View File

@@ -33,6 +33,17 @@
title="{l s='Log in to your customer account' d='Shop.Theme.Customeraccount'}" title="{l s='Log in to your customer account' d='Shop.Theme.Customeraccount'}"
{/if} {/if}
> >
<span class="d-none d-xxl-block text-secondary">
{if $logged}
{if $customer.firstname}
{$customer.firstname|escape:'html':'UTF-8'}
{else}
{l s='Log out' d='Shop.Theme.Actions'}
{/if}
{else}
{l s='Log in' d='Shop.Theme.Actions'}
{/if}
</span>
<div class="header-top__icon-container"> <div class="header-top__icon-container">
{capture name="svg_output"}{svg_icon file='person.svg'}{/capture} {capture name="svg_output"}{svg_icon file='person.svg'}{/capture}
{if $smarty.capture.svg_output} {if $smarty.capture.svg_output}