forked from MahmoudAdham/Sh_theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
52 lines (45 loc) · 1.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>شام للسياحة</title>
<!-- Bootstrap CSS -->
<?php
wp_head();
$uri = get_theme_file_uri;
?>
</head>
<body data-spy="scroll" data-target=".navbar" >
<nav class="navbar navbar-toggleable-md fixed-top navbar-light <?php if(!is_home()){ echo "new-nav"; } ?> " id="navbar">
<div class="container">
<button class="navbar-toggler navbar-toggler-left" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<i class="fa fa-bars" aria-hidden="true"></i>
</button>
<a class="navbar-brand" href=".">
<img src="<?php echo $uri('asset/images/logo.png') ?>" alt="logo" />
</a>
<?php
wp_nav_menu(array( /* Add top menu */
'theme_location'=> 'top_nave',
'menu_class' => 'navbar-nav mr-auto',
'container_class' =>'collapse navbar-collapse',
'container_id' => 'navbarSupportedContent',
'walker' => new bs4navwalker()
))
?>
</div>
</nav>
<?php if( is_home() ) {?>
<header id="home">
<div class="overlay">
<?php get_search_form(); ?>
</div>
</header>
<?php } else{?>
<header>
</header>
<?php } ?>