-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.php
106 lines (106 loc) · 5.23 KB
/
navbar.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<div id="navigation_bar">
<nav class="navbar navbar-inverse navbar-fixed-top" id="primary-nav">
<div class="container">
<!-- Header della navbar -->
<div class="navbar-header">
<!-- Pulsanti per v. mobile -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Logo o nome del sito -->
<a class="navbar-brand" <?php if ($pagina == 'home') {
echo 'id="home"';
} ?> href="index.php">Discover Veneto</a>
</div>
<div class="navbar-collapse collapse">
<form class="navbar-form navbar-right" role="search" action="search">
<div class="input-group custom-search-form">
<input type="text" class="form-control" placeholder="Cerca...">
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
</form>
</div>
</div>
<div class="container">
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-left">
<!-- Link semplici -->
<li <?php if ($pagina == 'offerte') {
echo 'class="active"';
} ?> ><a href="offerte">Offerte</a>
</li>
<!-- Link dropdown DESTINAZIONI -->
<li class="dropdown <?php if ($pagina == 'destinazioni') {
echo ' active';
} ?>"><a class="dropdown-toggle" href="#" data-toggle="dropdown">Destinazioni<span
class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="destinazioni">Indice destinazioni</a>
</li>
<li><a href="destinazioni/musei">Musei</a>
</li>
<li><a href="destinazioni/mostre">Mostre & Concerti</a>
</li>
<li><a href="destinazioni/alberghi">Alberghi & Alloggi</a>
</li>
<li><a href="destinazioni/locali">Locali & Ristorazione</a>
</li>
</ul>
</li>
<!-- Link dropdown CATEGORIE -->
<li class="dropdown <?php if ($pagina == 'categorie') {
echo ' active';
} ?>"><a class="dropdown-toggle" href="#" data-toggle="dropdown">Categorie<span
class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li>
<a href="categorie/index.php">Indice categorie</a>
</li>
<li><a href="categorie/avventura">Avventura</a>
</li>
<li><a href="categorie/relax">Relax & Benessere</a>
</li>
<li><a href="categorie/arte">Arte</a>
</li>
<li><a href="categorie/famiglia">Famiglia</a>
</li>
<li><a href="categorie/studenti">Studenti</a>
</li>
<li><a href="categorie/business">Business Man</a>
</li>
</ul>
</li>
<li <?php if ($pagina == 'viaggiare') {
echo 'class="active"';
} ?>><a href="viaggiaresicuri">Viaggiare sicuri</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li <?php if ($pagina == 'user') {
echo 'class="active"';
} ?>>
<?php if (!isset($_SESSION['username'])) {
echo '<a href="user/login.php">Accedi</a>';
} elseif ($_SESSION['username'] == ' ') {
echo '<a href="user/index.php">Il tuo acconut</a>';
} else {
echo '<a href="user/index.php">Account di ' . $_SESSION['username'] . '</a>';
} ?>
</li>
<li <?php if ($pagina == 'cart') {
echo 'class="active"';
} ?>><a href="carrello"><i class="fa fa-shopping-cart"></i> Carrello</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
<!-- ========= ./NAVBAR ========= -->