-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
27 lines (27 loc) · 1.06 KB
/
header.php
File metadata and controls
27 lines (27 loc) · 1.06 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
<?php
if (str_contains($_SERVER['REQUEST_URI'], 'search.php?destination=&checkin=&checkout=')) {
echo "<header class='header-search'>
<nav>
<a class='header__logo' href='./'> Infotravel </a>
<div class='header_left'><a href='#'>Iniciar sessão</a>
<a class='header__sessao' href='#'> <img src='./img/headersessao.svg' alt='' width='15px'><span>Iniciar sessão</span></a>
</div>
</nav>
</header>";
} elseif (str_contains($_SERVER['REQUEST_URI'], 'detail.php?id=')) {
echo "<header class='header-search'>
<nav>
<a class='header__logo' href='./'> Infotravel </a>
<div class='header_left'><a href='#'>Iniciar sessão</a>
<a class='header__sessao' href='#'> <img src='./img/headersessao.svg' alt='' width='15px'><span>Iniciar sessão</span></a>
</div>
</nav>
</header>";
} else {
echo "<header>
<nav>
<a class='header__logo' href='./'> Infotravel </a>
<a class='header__sessao' href='#'> <img src='./img/headersessao.svg' alt='' width='15px'><span>Iniciar sessão</span></a>
</nav>
</header>";
}