forked from cyberchimps/cyberchimps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·119 lines (105 loc) · 3.63 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
111
112
113
114
115
116
117
118
119
<?php
/**
* Title: Header template.
*
* Description: Defines header content.
*
* Please do not edit this file. This file is part of the Cyber Chimps Framework and all modifications
* should be made in a child theme.
*
* @category Cyber Chimps Framework
* @package Framework
* @since 1.0
* @author CyberChimps
* @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
* @link http://www.cyberchimps.com/
*/
?>
<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="ie ie6 lte9 lte8 lte7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html class="ie ie7 lte9 lte8 lte7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8 lte9 lte8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 9]>
<html class="ie ie9" <?php language_attributes(); ?>>
<![endif]-->
<!--[if gt IE 9]>
<html <?php language_attributes(); ?>> <![endif]-->
<!--[if !IE]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>"/>
<meta name="viewport" content="initial-scale=1.0,maximum-scale=3.0,width=device-width"/>
<title><?php wp_title( '' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11"/>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"/>
<!-- IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/inc/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<!-- ---------------- Header --------------------- -->
<div class="container-full-width" id="header_section">
<div class="container">
<?php do_action( 'cyberchimps_before_wrapper' ); ?>
<div class="container-fluid">
<?php do_action( 'cyberchimps_header' ); ?>
</div>
<!-- .container-fluid-->
</div>
<!-- .container -->
</div>
<!-- #header_section -->
<?php do_action( 'cyberchimps_before_navigation' ); ?>
<!-- ---------------- Menu --------------------- -->
<div class="container-full-width" id="navigation_menu">
<div class="container">
<div class="container-fluid">
<nav id="navigation" class="row-fluid" role="navigation">
<div class="main-navigation navbar navbar-inverse">
<div class="navbar-inner">
<div class="container">
<?php /* hide collapsing menu if not responsive */
if (cyberchimps_get_option( 'responsive_design', 'checked' )): ?>
<div class="nav-collapse collapse">
<?php endif; ?>
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav', 'walker' => new cyberchimps_walker(), 'fallback_cb' => 'cyberchimps_fallback_menu' ) ); ?>
<?php if( cyberchimps_get_option( 'searchbar', 1 ) == "1" ) : ?>
<div class="menu-searchbar">
<?php get_search_form(); ?>
</div>
<?php endif; ?>
<?php /* hide collapsing menu if not responsive */
if (cyberchimps_get_option( 'responsive_design', 'checked' )): ?>
</div>
<!-- collapse -->
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<?php endif; ?>
</div>
<!-- container -->
</div>
<!-- .navbar-inner .row-fluid -->
</div>
<!-- main-navigation navbar -->
</nav>
<!-- #navigation -->
</div>
<!-- .container-fluid-->
</div>
<!-- .container -->
</div>
<!-- #navigation_menu -->
<?php do_action( 'cyberchimps_after_navigation' ); ?>