我想点击“我的帐户为下拉”按钮,该下拉列表将
包含两个链接。
下面是要修改的代码,它无法正常工作。
有什么建议吗?
<!-- Block user information module NAV -->
<div class="col-md-4 user-panier">
<div class="header_user_info col-md-6 col-sm-6">
{if $is_logged}
<i class="fa fa-user" aria-hidden="true"></i>
<div>
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}" title="{l s='View my customer account' mod='blockuserinfo'}" class="account"
rel="nofollow"><span>{l s='Welcome ' mod='blockuserinfo'} {$cookie->customer_firstname} {$cookie->customer_lastname}</span></a>
<a class="logout" href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Log me out' mod='blockuserinfo'}">
{l s='Sign out' mod='blockuserinfo'}
</a>
</div>
{else}
<i class="fa fa-user dropdown" aria-hidden="true"></i>
<a class="login dropbtn" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Log in to your customer account' mod='blockuserinfo'}">
{l s='My account ' mod='blockuserinfo'}
</a>
<!-- new links -->
<i class="fa fa-caret-down"></i>
<a href="#">Link 1</a>
<a href="#">Link 2</a>
</div>
{/if}
</div>
<!-- /Block usmodule NAV -->