-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
110 lines (110 loc) · 6.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
/**
* Site's header file.
* Wordpress template.
*
* @author 10 Quality Studio <https://www.10quality.com/>
* @package wpmvc-website
* @license MIT
* @version 1.1.1
*/
?><!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--><html <?php language_attributes() ?>><!--<![endif]-->
<head>
<title><?php wp_title() ?></title>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php endif; ?>
<?php wp_head() ?>
</head>
<body <?php body_class() ?>>
<?php do_action( 'wp_body_open' ) ?>
<div class="page-wrapper">
<?php if ( ! is_front_page() ) : ?>
<header id="header" class="header">
<div class="container">
<div class="nav-flex">
<div class="nav-section">
<div class="branding">
<h1 class="logo">
<a href="<?php echo home_url( '/' ) ?>" title="<?php echo bloginfo( 'title' ) ?>">
<span aria-hidden="true" class="icon_documents_alt icon"></span>
<span class="text-highlight"><?php echo get_theme_mod( 'title_highlight' ) ?></span><span class="text-bold"><?php echo get_theme_mod( 'title_bold' ) ?></span>
</a>
</h1>
</div><!--//branding-->
<div class="desktop-only">
<?php wp_nav_menu( [
'theme_location' => 'header-menu',
'menu_class' => 'breadcrumb',
'items_wrap' => '<ol id="%1$s" class="%2$s">%3$s</ol>',
] ) ?>
</div>
<div class="mobile-only">
<?php wp_nav_menu( [
'theme_location' => 'mobile-header-menu',
'menu_class' => 'breadcrumb',
'items_wrap' => '<ol id="%1$s" class="%2$s">%3$s</ol>',
] ) ?>
</div>
<?php do_action( 'wpmvc_nav_left' ) ?>
</div>
<div class="nav-section sub-nav">
<div class="sub-nav-section">
<?php do_action( 'wpmvc_nav_right' ) ?>
<?php if ( get_theme_mod( 'allow_download_button', false ) ) : ?>
<a role="button"
class="nav-link desktop-only nav-download btn btn-themed"
href="<?php echo get_permalink( get_theme_mod( 'download_page', 0 ) ) ?>"
title="<?php _e( 'Download or clone the latest release', 'wpmvc-website' ) ?>"
>
<i class="fa fa-download" aria-hidden="true"></i>
<?php do_action( 'wpmvc_download_button_label' ) ?>
</a>
<?php endif ?>
<?php if ( get_theme_mod( 'allow_login', true ) ) : ?>
<?php if ( is_user_logged_in() ) : ?>
<a role="button"
class="nav-link nav-pill nav-profile"
href="<?php echo esc_url( apply_filters( 'wpmvc_account_url', '#' ) ) ?>"
title="<?php _e( 'Account', 'wpmvc-website' ) ?>"
><img class="nav-avatar"
src="<?php echo esc_url( get_avatar_url( get_current_user_id() ) ) ?>"
alt="<?php echo esc_attr( wp_get_current_user()->display_name )?>"
></a>
<?php else : ?>
<a role="button"
class="nav-link nav-pill nav-login"
href="<?php echo esc_url( apply_filters( 'wpmvc_login_url', '#' ) ) ?>"
><?php _e( 'Login' ) ?></a>
<?php endif ?>
<?php endif ?>
</div>
<div class="sub-nav-section">
<?php if ( get_theme_mod( 'allow_search', true ) ) : ?>
<button role="superbrowse-caller"
title="<?php _e( 'Search' ) ?>"
class="button button-nav nav-search"
><i class="fa fa-search"></i></button>
<?php endif ?>
<?php if ( get_theme_mod( 'allow_mobile_menu', false ) ) : ?>
<div class="mobile-only">
<?php wp_nav_menu( [
'theme_location' => 'mobile-menu',
'menu_class' => 'breadcrumb',
'items_wrap' => '<ol id="%1$s" class="%2$s">%3$s</ol>',
] ) ?>
</div>
<?php endif ?>
</div>
</div>
</div><!--//nav-flex-->
</div><!--//container-->
</header><!--//header-->
<?php endif ?>
<div id="site-body">