Repository navigation
Expand file tree
/
Copy pathheader.php
More file actions
95 lines (93 loc) · 3.25 KB
/
Copy pathheader.php
File metadata and controls
95 lines (93 loc) · 3.25 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
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
<?php
/**
* Header
*
* @package YYThemes
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="shortcut icon" href="<?php echo esc_attr( yy_get( 'site_icon' ) ); ?>">
<?php
if ( is_singular() ) {
wp_enqueue_script( 'comment-reply' );}
?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php
if ( !yy_import( 'header' ) ) {
?>
<div class="yy-site">
<div class="shade"></div>
<div class="yy-header">
<div class="yy-group">
<div class="navbar navbar-expand-md">
<div class="container">
<!-- Brand -->
<?php
$logo = yy_get( 'site_logo' );
if ( $logo ) :
?>
<a class="navbar-brand" href="<?php echo esc_attr( home_url() ); ?>"><h1><img class="logo" src="<?php echo esc_attr( $logo ); ?>" alt="<?php bloginfo( 'name' ); ?>" /></h1></a>
<?php else : ?>
<a class="navbar-brand" href="<?php echo esc_attr( home_url() ); ?>"><h1><?php bloginfo( 'name' ); ?></h1></a>
<?php endif; ?>
<!-- Toggler/collapsibe Button -->
<div class="menu-toggle d-md-none">
<i class="fa fa-bars"></i>
</div>
<?php if ( yy_get( 'show_search' ) ) : ?>
<div class="search-toggle d-md-none">
<i class="fa fa-search"></i>
</div>
<?php else:?>
<style>
.yy-header .navbar .user-login {
right: 0px;
}
</style>
<?php endif; ?>
<!-- Navbar links -->
<div class="navbar-collapse menu-collapse d-md-flex justify-content-md-between">
<?php
wp_nav_menu(
array(
'fallback_cb' => false,
'theme_location' => 'main-menu',
'container_class' => 'main-menu',
'menu_class' => 'navbar-nav',
)
);
?>
</div>
<?php if ( yy_get( 'show_search' ) ) : ?>
<div class="d-md-flex justify-content-md-end">
<form class="search-form" method="get" onsubmit="return check()" action="<?php echo esc_attr( home_url() ); ?>/" >
<div class="form-group">
<input id="wd" type="text" name="s" class="form-control keywords" placeholder="<?php esc_attr_e( 'Search', 'onenice' ); ?>" value="<?php echo $s ? esc_attr( $s ) : ''; ?>" />
<button type="submit" class="rounded submit" onclick="return yy_check_search()">
<i class="fa fa-search"></i>
</button>
</div>
</form>
</div>
<?php endif; ?>
<?php
if ( yy_get( 'show_login_button' ) ) {
yy_login();}
?>
</div>
</div><!-- navbar -->
</div><!-- yy-group -->
</div><!-- yy-header -->
<?php
}
?>