forked from PrestaShop/hummingbird
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathps_customersignin.tpl
More file actions
148 lines (137 loc) · 5.43 KB
/
ps_customersignin.tpl
File metadata and controls
148 lines (137 loc) · 5.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*}
<div id="_desktop_ps_customersignin">
<div class="ps-customersignin">
{if $customer.is_logged}
<div class="dropdown header-block">
<button
class="dropdown-toggle header-block__action-btn border-0 bg-transparent"
id="userMenuButton"
data-bs-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
aria-label="{l s='View my account (%customerName%)' sprintf=['%customerName%' => $customerName] d='Shop.Theme.Customeraccount'}"
>
<i class="material-icons header-block__icon" aria-hidden="true"></i>
<span class="header-block__title d-none d-md-block d-lg-none">
{$customer.firstname|capitalize|truncate:2:".":true}{$customer.lastname|capitalize|truncate:2:".":true}
</span>
<span class="header-block__title d-lg-inline d-none">
{$customerName|capitalize|truncate:22:"...":true}
</span>
</button>
<div class="dropdown-menu dropdown-menu-start" aria-labelledby="userMenuButton">
<a
href="{$urls.pages.my_account}"
class="dropdown-item"
rel="nofollow"
{if $urls.current_url == $urls.pages.my_account}aria-current="page"{/if}
>
<i class="material-icons me-2" aria-hidden="true"></i>
{l s='Your account' d='Shop.Theme.Customeraccount'}
</a>
<div class="dropdown-divider"></div>
<a
href="{$urls.pages.identity}"
class="dropdown-item"
rel="nofollow"
{if $urls.current_url == $urls.pages.identity}aria-current="page"{/if}
>
<i class="material-icons me-2" aria-hidden="true"></i>
{l s='Information' d='Shop.Theme.Customeraccount'}
</a>
{if $customer.addresses|count}
<a
href="{$urls.pages.addresses}"
class="dropdown-item"
rel="nofollow"
{if $urls.current_url == $urls.pages.addresses}aria-current="page"{/if}
>
<i class="material-icons me-2" aria-hidden="true"></i>
{l s='Addresses' d='Shop.Theme.Customeraccount'}
</a>
{else}
<a
href="{$urls.pages.address}"
class="dropdown-item"
rel="nofollow"
{if $urls.current_url == $urls.pages.address}aria-current="page"{/if}
>
<i class="material-icons me-2" aria-hidden="true"></i>
{l s='Add first address' d='Shop.Theme.Customeraccount'}
</a>
{/if}
{if !$configuration.is_catalog}
<a
href="{$urls.pages.history}"
class="dropdown-item"
rel="nofollow"
{if $urls.current_url == $urls.pages.history}aria-current="page"{/if}
>
<i class="material-icons me-2" aria-hidden="true"></i>
{l s='Orders' d='Shop.Theme.Customeraccount'}
</a>
{/if}
{if !$configuration.is_catalog}
<a
href="{$urls.pages.order_slip}"
class="dropdown-item"
rel="nofollow"
{if $urls.current_url == $urls.pages.order_slip}aria-current="page"{/if}
>
<i class="material-icons me-2" aria-hidden="true"></i>
{l s='Credit slips' d='Shop.Theme.Customeraccount'}
</a>
{/if}
{if $configuration.voucher_enabled && !$configuration.is_catalog}
<a
href="{$urls.pages.discount}"
class="dropdown-item"
rel="nofollow"
{if $urls.current_url == $urls.pages.discount}aria-current="page"{/if}
>
<i class="material-icons me-2" aria-hidden="true"></i>
{l s='Vouchers' d='Shop.Theme.Customeraccount'}
</a>
{/if}
{if $configuration.return_enabled && !$configuration.is_catalog}
<a
href="{$urls.pages.order_follow}"
class="dropdown-item"
rel="nofollow"
{if $urls.current_url == $urls.pages.order_follow}aria-current="page"{/if}
>
<i class="material-icons me-2" aria-hidden="true"></i>
{l s='Merchandise returns' d='Shop.Theme.Customeraccount'}
</a>
{/if}
<div class="dropdown-divider"></div>
<a
href="{$logout_url}"
class="dropdown-item"
rel="nofollow"
>
<i class="material-icons me-2" aria-hidden="true"></i>
{l s='Sign out' d='Shop.Theme.Actions'}
</a>
</div>
</div>
{else}
<div class="header-block">
<a
href="{$urls.pages.authentication}?back={$urls.current_url|urlencode}"
class="header-block__action-btn"
rel="nofollow"
aria-label="{l s='Sign in' d='Shop.Theme.Actions'}"
>
<i class="material-icons header-block__icon" aria-hidden="true"></i>
<span class="d-none d-md-inline header-block__title">
{l s='Sign in' d='Shop.Theme.Actions'}
</span>
</a>
</div>
{/if}
</div>
</div>