-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
118 lines (104 loc) · 5.53 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
<?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" />
<meta name="viewport" content="height=device-height">
<meta name="viewport" content="initial-scale=1"/>
<title><?php wp_title( '|', true, 'right' ); ?></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(); ?>
<?php echo oet_egg_script(); ?>
</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 Educational Technology Department of Education United States of America" class="svg-replace" id="header_logo" width="620" />
</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" aria-label="search" />
<a href="javascript:" onClick="jQuery(this).closest('form').submit()" tabindex="-1">
<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("linkedin_url", get_option("linkedin_url"));
define ("medium_url", get_option("medium_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="fab fa-x-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="fab fa-facebook-f fa-stack-2x"></i></span>
</a>
<?php endif; ?>
<?php if ( medium_url !== "" ) : ?>
<a href="<?php echo medium_url;?>" target="_blank" title="Follw Us on Medium">
<span class="socl_icns fa-stack"><i class="fab fa-medium-m 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="fab fa-youtube 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="far fa-envelope fa-stack-2x"></i></span>
</a>
<?php endif; ?>
</div>
</div>
</div>
<div class="row navi_bg">
<div class="main-menu">
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
</div>
<span class="navi_icn fa-stack" aria-label="menu" role="button" id="mobile_nav_icns" aria-haspopup="true" aria-controls="responsiv_menu_ul" ><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', 'menu_id' => 'responsiv_menu_ul' ) ); ?>
</div>
</div>