-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
90 lines (87 loc) · 4.04 KB
/
header.php
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
<html>
<head>
<title><?php print $title ?></title>
<meta name="description" content="<?php print $description ?> " />
<meta property="og:site_name" content="{{website_name}}" />
<meta property="og:site" content="" />
<meta property="og:title" content="<?php print $title ?>" />
<meta property="og:description" content="<?php print $description ?>" />
<meta property="og:image" content="" />
<meta property="og:url" content="" />
<link rel="stylesheet" type="text/css" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="{{url}}/assets/css/style.css" />
<link rel="stylesheet" type="text/css" href="{{url}}/assets/css/dashboard.css" />
<?php print $custom_css; ?>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<script src="https://maps.googleapis.com/maps/api/js?key={{google_apikey}}&libraries=places" async defer></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{google_gaid}}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{google_gaid}}');
</script>
</head>
<body>
<div class="dashboard">
<header class="desktop">
<div class="row">
<div class="col-md-4">
<?php if($this->userLoggedIn()): ?>
<a href="{{url}}/dashboard/"><img src="{{url}}/assets/images/logo.png" /></a>
<?php else: ?>
<a href="{{url}}/"><img src="{{url}}/assets/images/logo.png" /></a>
<?php endif; ?>
</div>
<div class="col-md-4">
<form id="searchBox" action="{{url}}/cerca/" method="GET">
<input type="hidden" name="country" />
<input type="hidden" name="city" />
<input type="text" id="gMapsAutocomplete" name="s" class="form-control input" placeholder="{lang['where-you-want-to-go']}" />
</form>
</div>
<div class="col-md-4">
<?php if($this->userLoggedIn()): ?>
<a href="{{url}}/impostazioni/profilo/"><i class="fa fa-cog"></i></a> 
<a href="{{url}}/profilo/{user['username']}/"><i class="fa fa-user"></i></a> 
<a href="{{url}}/logout/"><i class="fa fa-sign-out"></i></a>
<?php else: ?>
<a href="{{url}}/" class="btn btn-secondary">Login</a> 
<a href="{{url}}/registrazione/" class="btn btn-primary">Registrazione</a>
<?php endif; ?>
</div>
</div>
</header>
<header class="mobile">
<div class="row">
<div class="col">
<?php if($this->userLoggedIn()): ?>
<a href="{{url}}/dashboard/"><img src="{{url}}/assets/images/logo.png" /></a>
<?php else: ?>
<a href="{{url}}/"><img src="{{url}}/assets/images/logo.png" /></a>
<?php endif; ?>
</div>
<div class="col">
<?php if($this->userLoggedIn()): ?>
<a href="{{url}}/impostazioni/profilo/"><i class="fa fa-cog"></i></a> 
<a href="{{url}}/profilo/{user['username']}/"><i class="fa fa-user"></i></a> 
<a href="{{url}}/logout/"><i class="fa fa-sign-out"></i></a>
<?php else: ?>
<a href="{{url}}/" class="btn btn-secondary">Login</a> 
<a href="{{url}}/registrazione/" class="btn btn-primary">Registrazione</a>
<?php endif; ?>
</div>
</div>
<div class="row">
<div class="col-md-12">
<form id="searchBox" action="{{url}}/cerca/" method="GET">
<input type="hidden" name="country" />
<input type="hidden" name="city" />
<input type="text" id="gMapsAutocompleteMobile" name="s" class="form-control input" placeholder="{lang['where-you-want-to-go']}" />
</form>
</div>
</div>
</header>