This repository has been archived by the owner on May 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
129 lines (111 loc) · 5.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
120
121
122
123
124
125
126
127
128
129
<?php
/**
* The Header template for our theme
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<!-- force IE to disable compatibility mode on IE9+, due to ed.gov intranet... this must be first in HEAD -->
<meta http-equiv="X-UA-Compatible" content="IE=11;IE=10;IE=9" />
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php wp_title('|', true, 'left' ); ?></title>
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri();?>/images/favicon.ico" type="image/x-icon">
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php wp_head(); ?>
<!--[if lt IE 10]>
<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/ie-multiple-columns.js" type="text/javascript"></script>
<link rel='stylesheet' id='multicolumn-style-css' href='<?php echo get_stylesheet_directory_uri(); ?>/css/multicolumn.css' type='text/css' media='all' />
<![endif]-->
</head>
<!--[if IE 7]>
<body <?php body_class("ie ie7"); ?>>
<![endif]-->
<!--[if IE 8]>
<body <?php body_class("ie ie8"); ?>>
<![endif]-->
<!--[if !(IE 7) & !(IE 8)]><!-->
<body <?php body_class(); ?>>
<!--<![endif]-->
<!-- Skip Content Navigation -->
<div id="skipcontent"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to Content', 'wp-oet-theme' ); ?>"><?php _e( 'Skip to Content', 'wp-oet-theme' ); ?></a></div>
<!-- Container -->
<div class="container-fluid">
<div class="container">
<div class="row hdr">
<div class="col-md-7 col-sm-8 col-xs-12">
<a href="<?php echo site_url();?>" Title="Home">
<img src="<?php echo get_stylesheet_directory_uri();?>/images/logo.svg" alt="Office of Innovation and Improvement" class="svg-replace" id="header_logo" />
</a>
</div>
<div class="col-md-3 col-sm-4 col-xs-12 col-md-offset-2">
<div class="col-md-12 col-sm-12 col-xs-5">
<div class="form-group has-feedback gray_bg">
<form id="searchform" class="searchform" action="<?php echo site_url();?>" method="get" role="search">
<input type="text" class="form-control" id="inputSuccess2" placeholder="Search" name="s" />
<a href="javascript:" onClick="jQuery(this).closest('form').submit()">
<span class="form-control-feedback ">
<img src="<?php echo get_stylesheet_directory_uri();?>/images/search_icn.png" alt="Search" />
</span>
</a>
</form>
</div>
</div>
<?php
define("twitter_url", get_option("twitter_url"));
define("facebook_url", get_option("facebook_url"));
define("yotube_url", get_option("yotube_url"));
define("google_url", get_option("google_url"));
define("linkedin_url", get_option("linkedin_url"));
define("linktonwltr", get_option("linktonwltr"));
?>
<div class="col-md-11 col-sm-12 col-xs-5 col-xs-offset-2 col-md-offset-1 soclize">
<?php if ( twitter_url !== "" ) : ?>
<a href="<?php echo twitter_url;?>" target="_blank" title="Follow Us on Twitter">
<span class="socl_icns fa-stack"><i class="fa fa-twitter fa-stack-2x"></i></span>
</a>
<?php endif; ?>
<?php if ( facebook_url !== "" ) : ?>
<a href="<?php echo facebook_url;?>" target="_blank" title="Follow Us on Facebook">
<span class="socl_icns fa-stack"><i class="fa fa-facebook fa-stack-2x"></i></span>
</a>
<?php endif; ?>
<?php if ( yotube_url !== "" ) : ?>
<a href="<?php echo yotube_url;?>" target="_blank" title="Subscribe on YouTube">
<span class="socl_icns fa-stack"><i class="fa fa-youtube-play fa-stack-2x"></i></span>
</a>
<?php endif; ?>
<?php if ( google_url !== "" ) : ?>
<a href="<?php echo google_url;?>" target="_blank" title="Follow Us on Google+">
<span class="socl_icns fa-stack"><i class="fa fa-google-plus fa-stack-2x"></i></span>
</a>
<?php endif; ?>
<?php if ( linktonwltr !== "" ) : ?>
<a href="<?php echo linktonwltr;?>" target="_blank" title="Sign Up for our Newsletter">
<span class="socl_icns fa-stack"><i class="fa fa-envelope fa-stack-2x"></i></span>
</a>
<?php endif; ?>
</div>
</div>
</div>
<div class="row navi_bg">
<div class="main-menu">
<?php
$menu_name = "primary";
$locations = get_nav_menu_locations();
$menu = wp_get_nav_menu_object( $locations["$menu_name"] );
$menuitems = wp_get_nav_menu_items( $menu->term_id, array( 'order' => 'DESC' ) );
wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu', 'walker' => new oii_walker_nav_menu($menuitems) ) );
?>
</div>
<span class="navi_icn fa-stack"><i class="fa fa-bars fa-stack-2x"></i></span>
<div class="responsiv-menu">
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'responsiv-menu_ul' ) ); ?>
</div>
</div>