-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathheader.php
58 lines (55 loc) · 1.9 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
<?php
/**
* Main header template.
*
* Include it with get_header();
*
* @package WordPress
* @subpackage Pisces
* @since Pisces 1.0
* @author wplovin <[email protected]>
*/
?><!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title><?php wp_title( '—', true, 'right' ); ?></title>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<!--[if lt IE 9]>
<script src="<?php echo WPLOVIN_THEME_PATH; ?>/js/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="wrapper">
<header id="header-main">
<div class="inside half-padding-v full-padding-h">
<a id="logo" href="<?php echo esc_url( home_url() ); ?>"><?php echo bloginfo('title'); ?></a>
</div>
</header>
<nav id="navigation-main" role="navigation">
<?php if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu full-padding cf', 'container' => 'none' ) );
} else { ?>
<ul class="nav-menu-none full-padding cf">
<?php if( current_user_can( 'edit_theme_options' ) ) : ?>
<li><a href="<?php echo admin_url( 'nav-menus.php' ); ?>"><?php _e( 'Menu doesn\'t exist. Create a new one.', 'pisces' ); ?></a></li>
<?php else : ?>
<li><a href="<?php echo esc_url( home_url() ); ?>"><?php echo bloginfo('title'); ?></a></li>
<?php endif; ?>
</ul>
<?php } ?>
<div id="main-search-form">
<?php echo get_search_form(); ?>
</div>
<div id="search-box-trigger"><i class="fa fa-search"></i></div>
</nav>