feat(extra-features): Shows user's name or "log out" if logged in
This commit is contained in:
@@ -33,6 +33,17 @@
|
||||
title="{l s='Log in to your customer account' d='Shop.Theme.Customeraccount'}"
|
||||
{/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">
|
||||
{capture name="svg_output"}{svg_icon file='person.svg'}{/capture}
|
||||
{if $smarty.capture.svg_output}
|
||||
|
||||
Reference in New Issue
Block a user