-
Notifications
You must be signed in to change notification settings - Fork 280
/
header.tpl
239 lines (217 loc) · 10.6 KB
/
header.tpl
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="{$charset}" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$pagetitle} - {$companyname}</title>
{include file="$template/includes/head.tpl"}
{$headoutput}
</head>
<body data-phone-cc-input="{$phoneNumberInputStyle}">
{if $captcha}{$captcha->getMarkup()}{/if}
{$headeroutput}
<section id="header">
<div class="container">
<ul class="top-nav">
{if $languagechangeenabled && count($locales) > 1}
<li>
<a href="#" class="choose-language" data-toggle="popover" id="languageChooser">
{$activeLocale.localisedName}
<b class="caret"></b>
</a>
<div id="languageChooserContent" class="hidden">
<ul>
{foreach $locales as $locale}
<li>
<a href="{$currentpagelinkback}language={$locale.language}">{$locale.localisedName}</a>
</li>
{/foreach}
</ul>
</div>
</li>
{/if}
{if $loggedin}
<li>
<a href="#" data-toggle="popover" id="accountNotifications" data-placement="bottom">
{$LANG.notifications}
{if count($clientAlerts) > 0}
<span class="label label-info">{lang key='notificationsnew'}</span>
{/if}
<b class="caret"></b>
</a>
<div id="accountNotificationsContent" class="hidden">
<ul class="client-alerts">
{foreach $clientAlerts as $alert}
<li>
<a href="{$alert->getLink()}">
<i class="fas fa-fw fa-{if $alert->getSeverity() == 'danger'}exclamation-circle{elseif $alert->getSeverity() == 'warning'}exclamation-triangle{elseif $alert->getSeverity() == 'info'}info-circle{else}check-circle{/if}"></i>
<div class="message">{$alert->getMessage()}</div>
</a>
</li>
{foreachelse}
<li class="none">
{$LANG.notificationsnone}
</li>
{/foreach}
</ul>
</div>
</li>
<li class="primary-action">
<a href="{$WEB_ROOT}/logout.php" class="btn">
{$LANG.clientareanavlogout}
</a>
</li>
{else}
<li>
<a href="{$WEB_ROOT}/clientarea.php">{$LANG.login}</a>
</li>
{if $condlinks.allowClientRegistration}
<li>
<a href="{$WEB_ROOT}/register.php">{$LANG.register}</a>
</li>
{/if}
<li class="primary-action">
<a href="{$WEB_ROOT}/cart.php?a=view" class="btn">
{$LANG.viewcart}
</a>
</li>
{/if}
{if $adminMasqueradingAsClient || $adminLoggedIn}
<li>
<a href="{$WEB_ROOT}/logout.php?returntoadmin=1" class="btn btn-logged-in-admin" data-toggle="tooltip" data-placement="bottom" title="{if $adminMasqueradingAsClient}{$LANG.adminmasqueradingasclient} {$LANG.logoutandreturntoadminarea}{else}{$LANG.adminloggedin} {$LANG.returntoadminarea}{/if}">
<i class="fas fa-sign-out-alt"></i>
</a>
</li>
{/if}
</ul>
{if $assetLogoPath}
<a href="{$WEB_ROOT}/index.php" class="logo"><img src="{$assetLogoPath}" alt="{$companyname}"></a>
{else}
<a href="{$WEB_ROOT}/index.php" class="logo logo-text">{$companyname}</a>
{/if}
</div>
</section>
<section id="main-menu">
<nav id="nav" class="navbar navbar-default navbar-main" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#primary-nav">
<span class="sr-only">{lang key='toggleNav'}</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="primary-nav">
<ul class="nav navbar-nav">
{include file="$template/includes/navbar.tpl" navbar=$primaryNavbar}
</ul>
<ul class="nav navbar-nav navbar-right">
{include file="$template/includes/navbar.tpl" navbar=$secondaryNavbar}
</ul>
</div><!-- /.navbar-collapse -->
</div>
</nav>
</section>
{if $templatefile == 'homepage'}
<section id="home-banner">
<div class="container text-center">
{if $registerdomainenabled || $transferdomainenabled}
<h2>{$LANG.homebegin}</h2>
<form method="post" action="domainchecker.php" id="frmDomainHomepage">
<input type="hidden" name="transfer" />
<div class="row">
<div class="col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1">
<div class="input-group input-group-lg">
<input type="text" class="form-control" name="domain" placeholder="{$LANG.exampledomain}" autocapitalize="none" data-toggle="tooltip" data-placement="left" data-trigger="manual" title="{lang key='orderForm.required'}" />
<span class="input-group-btn">
{if $registerdomainenabled}
<input type="submit" class="btn search{$captcha->getButtonClass($captchaForm)}" value="{$LANG.search}" id="btnDomainSearch" />
{/if}
{if $transferdomainenabled}
<input type="submit" id="btnTransfer" class="btn transfer{$captcha->getButtonClass($captchaForm)}" value="{$LANG.domainstransfer}" />
{/if}
</span>
</div>
</div>
</div>
{include file="$template/includes/captcha.tpl"}
</form>
{else}
<h2>{$LANG.doToday}</h2>
{/if}
</div>
</section>
<div class="home-shortcuts">
<div class="container">
<div class="row">
<div class="col-md-4 hidden-sm hidden-xs text-center">
<p class="lead">
{$LANG.howcanwehelp}
</p>
</div>
<div class="col-sm-12 col-md-8">
<ul>
{if $registerdomainenabled || $transferdomainenabled}
<li>
<a id="btnBuyADomain" href="domainchecker.php">
<i class="fas fa-globe"></i>
<p>
{$LANG.buyadomain} <span>»</span>
</p>
</a>
</li>
{/if}
<li>
<a id="btnOrderHosting" href="{$WEB_ROOT}/cart.php">
<i class="far fa-hdd"></i>
<p>
{$LANG.orderhosting} <span>»</span>
</p>
</a>
</li>
<li>
<a id="btnMakePayment" href="clientarea.php">
<i class="fas fa-credit-card"></i>
<p>
{$LANG.makepayment} <span>»</span>
</p>
</a>
</li>
<li>
<a id="btnGetSupport" href="submitticket.php">
<i class="far fa-envelope"></i>
<p>
{$LANG.getsupport} <span>»</span>
</p>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
{/if}
{include file="$template/includes/validateuser.tpl"}
{include file="$template/includes/verifyemail.tpl"}
<section id="main-body">
<div class="container{if $skipMainBodyContainer}-fluid without-padding{/if}">
<div class="row">
{if !$inShoppingCart && ($primarySidebar->hasChildren() || $secondarySidebar->hasChildren())}
{if $primarySidebar->hasChildren() && !$skipMainBodyContainer}
<div class="col-md-9 pull-md-right">
{include file="$template/includes/pageheader.tpl" title=$displayTitle desc=$tagline showbreadcrumb=true}
</div>
{/if}
<div class="col-md-3 pull-md-left sidebar">
{include file="$template/includes/sidebar.tpl" sidebar=$primarySidebar}
</div>
{/if}
<!-- Container for main page display content -->
<div class="{if !$inShoppingCart && ($primarySidebar->hasChildren() || $secondarySidebar->hasChildren())}col-md-9 pull-md-right{else}col-xs-12{/if} main-content">
{if !$primarySidebar->hasChildren() && !$showingLoginPage && !$inShoppingCart && $templatefile != 'homepage' && !$skipMainBodyContainer}
{include file="$template/includes/pageheader.tpl" title=$displayTitle desc=$tagline showbreadcrumb=true}
{/if}