-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
171 lines (165 loc) · 9.06 KB
/
Copy pathheader.php
File metadata and controls
171 lines (165 loc) · 9.06 KB
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?php
/*
*
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Twenty_Thirteen
* @since Twenty Thirteen 1.0
*/
session_start();
checkuserrole();
ini_set('session.cookie_httponly', 1);
ini_set('session.cookie_secure', 1);
header("X-Frame-Options: deny");
header("X-XSS-Protection: 1", "mode=block");
header("Cache-Control: no-store, no-cache");
header("X-Content-Type-Options: nosniff");
?><!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) ]><!-->
<? ob_start("ob_gzhandler"); ?>
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<title><?php wp_title('', true, 'right'); ?></title>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" >
<meta content="text/javascript" http-equiv="Content-Script-Type" >
<meta content="text/css" http-equiv="Content-Style-Type" >
<meta name="Robots" CONTENT="INDEX,FOLLOW">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="X-UA-Compatible" content="IE=IE9">
<?php
/* * ********************** Custom Meta tags *************************************** */
/* $id = get_the_ID();
$default_keyword = 0;
$default_description = 0;
if ($id) {
$metakeywordsrows = $wpdb->get_results("SELECT * FROM `wp_postmeta` WHERE meta_key = 'metakeywords' AND post_id =" . $id);
foreach ($metakeywordsrows as $row => $k) {
if ($k->meta_key == "metakeywords" && $k->meta_value != "") {
?> <meta name="KEYWORDS" content="<?php echo $k->meta_value ?>" /> <?php
} else {
$default_keyword = 1;
}
}
$metadescriptionsrows = $wpdb->get_results("SELECT * FROM `wp_postmeta` WHERE meta_key = 'metadescription' AND post_id =" . $id);
foreach ($metadescriptionsrows as $row => $k) {
if ($k->meta_key == "metadescription" && $k->meta_value != "") {
?> <meta name="DESCRIPTION" content="<?php echo $k->meta_value ?>" /> <?php
} else {
$default_description = 1;
}
}
} else {
$default_keyword = 1;
$default_description = 1;
}
/* * ********************** Default Meta tags ***************************************
if ($default_description == 1) {
?>
<meta name="KEYWORDS" content="IT-ROI Solutions, itroi, Clarity PPM, SharePoint Customization, Clarity integration, Clarity Knowledge, Clarity PPM Blog, Clarity Business Intelligence, BI, enterprise reporting" />
<?php
}
if ($default_description == 1) {
?>
<meta name="DESCRIPTION" content="We make PPM simpler via Clarity integration adapters, SharePoint connectors, self-serve BI reporting solutions, and through our Clarity PPM knowledge base." />
<?php
}
*/
?>
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
<![endif]-->
<?php
wp_head();
check_validhost();
?>
<link rel='SHORTCUT ICON' href='<?php bloginfo("template_directory"); ?>/images/favicon.ico' type='image/x-icon' />
<link type="text/css" rel="stylesheet" href="<?php bloginfo("stylesheet_directory"); ?>/style.css" media="all"/>
<link type="text/css" rel="stylesheet" href="<?php bloginfo("stylesheet_directory"); ?>/style1.css" media="all"/>
<link type="text/css" rel="stylesheet" href="<?php bloginfo("stylesheet_directory"); ?>/style2.css" media="all"/>
<link type="text/css" rel="stylesheet" href="<?php bloginfo("stylesheet_directory"); ?>/style3.css" media="all"/>
<link type="text/css" rel="stylesheet" href="<?php bloginfo("stylesheet_directory"); ?>/style4.css" media="all"/>
<link type="text/css" rel="stylesheet" href="<?php bloginfo("stylesheet_directory"); ?>/style5.css" media="all"/>
<link type="text/css" rel="stylesheet" href="<?php bloginfo("stylesheet_directory"); ?>/skin_footer.css" media="all"/>
<link type="text/css" rel="stylesheet" href="<?php bloginfo("stylesheet_directory"); ?>/slidercss.css" media="all"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
</head>
<?php
$obj = get_queried_object();
$custom_post_type = $obj->post_type;
$body_classes = "html front not-logged-in no-sidebars page-home ";
if ($custom_post_type == "services" || $custom_post_type == "about" || $custom_post_type == 'itroiexperts' || $custom_post_type == "casolution") {
$body_classes .= "backgroundimage";
}
else {
$body_classes .= "backgroundwhite";
}
?>
<body <?php body_class( $body_classes ); ?> >
<header role="banner" class="clearfix" style="height:23px;margin-bottom: 0px;border-bottom: 1px solid #5c5c5c;line-height:20px;background-color: #000000;width:100%;">
<div class="nav-wrapper" style="width:1268px;margin: auto;">
<div id="block-menu-menu-itroi-secondary" class="block block-menu" style="line-height: 20px;">
<div class="content" style="float: right;">
<?php wp_nav_menu(array('theme_location' => 'primary', 'menu' => 'menu1', 'menu_class' => 'menu')); ?> </div>
</div>
</div>
<div style="float: right;padding-top: 10px;"></div>
<div id="block-menu-menu-itroi-secondary" class="block block-menu">
<div class="content"></div>
</div>
<!-- /nav -->
</header>
<header role="banner" class="clearfix" style="background-color:#2B2B2B ">
<div class="banner-wrapper">
<div class="nav-wrapper">
<div>
<a itemprop="url" href="<?php echo get_site_url(); ?>" title="Home" rel="home" id="logo">
<img itemprop="logo" src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.png" alt="Home" style="margin-right: 10px;padding-left: 20px;" >
</a>
</div>
<div id="nav-touch-wrapper">
<section id="navigation" class="region region-navigation">
<div id="block-nice-menus-1" class="block block-nice-menus">
<div class="content" style="">
<div style="width:1060px;float:left;"> <?php wp_nav_menu(array('theme_location' => 'primary', 'menu' => 'menu', 'menu_class' => 'nav-menu')); ?>
<div style="float: right;padding-top:16px;">
<?php if ($_GET['post_type']) { ?>
<form method="get" id="searchform" name="searchform" action="<?php bloginfo('home'); ?>/">
<input type="text" placeholder="Search Site" value="<?php //echo wp_specialchars($s, 1); ?>" name="s" id="s" />
<input type="hidden" value="" name="website" id="website" />
<input type="hidden" value="<?php echo set_cipher("Search_site"); ?>" name="Search_site" id="Search_site" />
</form>
<?php } else { ?>
<form method="get" id="searchform" name="searchform" action="<?php bloginfo('home'); ?>/">
<input type="text" placeholder="Search Site" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
<input type="hidden" value="" name="website" id="website" />
<input type="hidden" value="<?php echo set_cipher("Search_site"); ?>" name="Search_site" id="Search_site" />
</form>
<?php } ?>
</div>
</div>
<div id="block-menu-menu-itroi-secondary" class="block block-menu">
<div class="content"></div>
</div>
</div>
</div>
</section>
</div>
</div>
<!-- /nav -->
</div>
</header>
<div role="main">
<section id="content" class="region region-content">
<div id="block-system-main" class="block block-system">