-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
97 lines (89 loc) · 4.14 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
91
92
93
94
95
96
97
<?php
/**
* The header.
*
* This is the template that displays all of the <head> section and everything up until main.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
* @package WordPress
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="<?php bloginfo('template_url'); ?>/assets/images/icon.png" type="image/png">
<link href="<?php bloginfo('template_url'); ?>/assets/css/bootstrap.min.css" rel="stylesheet">
<link href="<?php bloginfo('template_url'); ?>/assets/css/bootstrap-rtl.min.css" rel="stylesheet">
<link href="<?php bloginfo('template_url'); ?>/assets/css/font-awesome.css" rel="stylesheet">
<link href="<?php bloginfo('template_url'); ?>/assets/css/animate.css" rel="stylesheet">
<link href="<?php bloginfo('template_url'); ?>/style.css?v=<?php echo wp_get_theme()->get('Version'); ?>" rel="stylesheet">
<link href="<?php bloginfo('template_url'); ?>/assets/css/photo-gallery.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body>
<!-- loader -->
<div id="main-loader">
<div class="lds-ellipsis">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div><!-- /loader -->
<!-- header -->
<header>
<div class="container">
<div class="row">
<div class="col-sm-2">
<img src="<?php bloginfo('template_url'); ?>/assets/images/bismillah.svg" class="img-responsive" width="80px">
</div>
<div class="col-sm-8 text-center">
<h4><?php echo get_theme_mod('header_description', __('Public Exemplary High School', 'ger-school')); ?></h4>
<h2><?php echo get_theme_mod('header_title', __('Imam Khomeini', 'ger-school')); ?></h2>
</div>
<div class="col-sm-2">
<img src="<?php bloginfo('template_url'); ?>/assets/images/flag.svg" class="img-responsive" align="left" width="80px">
</div>
</div>
</div>
</header><!-- /header -->
<!-- static navbar -->
<nav class="navbar navbar-default" id="custom-bootstrap-menu">
<div class="container">
<?php if (has_nav_menu('navb-header')) : ?>
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand"><img src="<?php bloginfo('template_url'); ?>/assets/images/icon.png"></a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<?php wp_nav_menu(
array(
'theme_location' => 'navb-header',
'menu' => '',
'depth' => 2,
'container' => false,
'menu_class' => 'nav navbar-nav',
'walker' => new WP_Bootstrap_Navwalker()
)
); ?>
<ul class="nav navbar-nav navbar-left">
<?php if (function_exists('parsidate')) : ?>
<li><a><?php echo parsidate('l، j F Y'); ?></a></li>
<?php endif; ?>
</ul>
</div>
<?php endif; ?>
</div>
</nav><!-- /static navbar -->