-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·83 lines (71 loc) · 2.29 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
<?php
/**
* Header template.
*
* @package Gozal
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<title> <?php wp_title(); ?> </title>
<meta name="description" content="<?php bloginfo('description'); ?>">
<meta charset="<?php bloginfo('charset') ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php if (is_singular() && pings_open(get_queried_object())) : ?>
<link rel="pinback" href="<?php bloginfo('pingback_url') ?> ">
<?php endif; ?>
<?php
wp_head();
?>
</head>
<body <?php body_class();if(is_single())echo 'style="background: #fff;"'; ?>>
<?php
if (function_exists('wp_body_open')) {
wp_body_open();
}
?>
<div id="page-height">
<div class="container-lg">
<?php
if (get_option('custom_navbar')) {
get_template_part('./template-parts/header/nav1');
if (is_front_page()) {
?>
<header class="header">
<?php if(has_header_image( )):?>
<img src="<?php echo header_image(); ?>" alt="">
<?php endif; ?>
</header>
<?php
}
} else {
?>
<div class="col-xs-12">
<div class="header-container background-image text-center" style="background-image: url(<?php header_image() ?>);">
<div class="header-content table">
<div class="table-cell">
<div class="gozal-logo"></div>
<h1 class="site-title gozal-icon">
<span class="hide"><?php bloginfo('name') ?> </span>
</h1>
<h2 class="site-description"><?php bloginfo('description'); ?></h2>
<!--site -->
</div>
<!--table-cell -->
</div>
<!--header-content -->
<div class="nav-container">
<?php get_template_part('./template-parts/header/nav'); ?>
</div>
</div>
<!--header-container -->
</div>
<!--col-xs-12 -->
<?php
}
?>
</div>
<!-- .container-lg -->