Repository navigation
Expand file tree
/
Copy pathheader.php
More file actions
166 lines (133 loc) · 6.53 KB
/
Copy pathheader.php
File metadata and controls
166 lines (133 loc) · 6.53 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
<!doctype html>
<!--[if IEMobile 7 ]> <html <?php language_attributes(); ?>class="no-js iem7"> <![endif]-->
<!--[if lt IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html <?php language_attributes(); ?> class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html <?php language_attributes(); ?> class="no-js ie8"> <![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html <?php language_attributes(); ?> class="no-js"><!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>
<?php if ( !is_front_page() ) { echo wp_title( ' ', true, 'left' ); echo ' | '; }
echo bloginfo( 'name' ); echo ' - '; bloginfo( 'description', 'display' ); ?>
</title>
<!--<meta name="viewport" content="width=device-width, initial-scale=1.0">-->
<meta name="viewport" content="width=device-width">
<!-- icons & favicons -->
<!-- For iPhone 4 -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo get_template_directory_uri(); ?>/library/images/icons/h/apple-touch-icon.png">
<!-- For iPad 1-->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo get_template_directory_uri(); ?>/library/images/icons/m/apple-touch-icon.png">
<!-- For iPhone 3G, iPod Touch and Android -->
<link rel="apple-touch-icon-precomposed" href="<?php echo get_template_directory_uri(); ?>/library/images/icons/l/apple-touch-icon-precomposed.png">
<!-- For Nokia -->
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/library/images/icons/l/apple-touch-icon.png">
<!-- For everything else -->
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico">
<!-- media-queries.js (fallback) -->
<!--[if lt IE 9]>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
<!-- html5.js -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<link rel="stylesheet/less" type="text/css" href="<?php echo get_template_directory_uri(); ?>/less/bootstrap.less">
<link rel="stylesheet/less" type="text/css" href="<?php echo get_template_directory_uri(); ?>/less/responsive.less">
<!-- wordpress head functions -->
<?php wp_head(); ?>
<!-- end of wordpress head -->
<!-- theme options from options panel -->
<?php get_wpbs_theme_options(); ?>
<?php
// check wp user level
get_currentuserinfo();
// store to use later
global $user_level;
// get list of post names to use in 'typeahead' plugin for search bar
if(of_get_option('search_bar', '1')) { // only do this if we're showing the search bar in the nav
global $post;
$tmp_post = $post;
$get_num_posts = 40; // go back and get this many post titles
$args = array( 'numberposts' => $get_num_posts );
$myposts = get_posts( $args );
$post_num = 0;
global $typeahead_data;
$typeahead_data = "[";
foreach( $myposts as $post ) : setup_postdata($post);
$typeahead_data .= '"' . get_the_title() . '",';
endforeach;
$typeahead_data = substr($typeahead_data, 0, strlen($typeahead_data) - 1);
$typeahead_data .= "]";
$post = $tmp_post;
} // end if search bar is used
?>
</head>
<body <?php body_class(); ?>>
<div id="page" class=>
<header role="uconn_header" class="visible-desktop">
<div id="uc-head-wrap" class="box-shadow uconn-blue container-fluid cufon">
<div class="row">
<div id="uc-head" class="span8">
<script type="text/javascript">
Cufon.replace('h1 #uc-website-title', { fontFamily: 'Adobe Garamond Pro', hover: true });
</script><!--cufon replace-->
<h1>
<a href="http://uconn.edu" ><img src="http://web2.uconn.edu/webtools/global/4.0/head-foot/images/uconn-blueG.png" alt="University of Connecticut" width="229" height="90" /></a>
<!-- <em id="uc-secondary-title"><a href="http://blogs.lib.uconn.edu/">University Libraries</a></em> -->
<strong id="uc-website-title"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></strong>
</h1>
</div><!--uc-head-->
<div id="search">
<form action="http://uconn.edu/search.php" method="get">
<fieldset>
<ul>
<li>
<label for="cx1">
<input type="radio" id="cx1" checked="checked" value="004595925297557218349:65_t0nsuec8" name="cx" />
UConn </label>
</li>
<li>
<label for="cx3">
<input type="radio" id="cx3" value="people" name="cx" />
People </label>
</li>
</ul>
<input type="text" size="17" class="searchBox" name="q" id="q" title="Search…" placeholder="Search...">
<input type="hidden" value="160" name="page_id"/>
<input type="hidden" value="FORID:10" name="cof"/>
<input type="hidden" value="UTF-8" name="ie"/>
<button type="submit" name="sa" id="sa" class="btn">Go</button>
</fieldset>
</div> <!--search-->
</div> <!--uc-head-wrap-->
</div><!--row-->
</header> <!-- uconn header -->
<header role="banner">
<div id="inner-header" class="clearfix">
<div class="navbar">
<div class="navbar-inner box-shadow">
<div class="container">
<nav role="navigation">
<a class="brand" id="logo" title="<?php echo get_bloginfo('description'); ?>" href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a>
<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>
<div class="nav-collapse collapse">
<?php bones_main_nav(); // Adjust using Menus in Wordpress Admin ?>
</div>
</nav>
<?php if(of_get_option('search_bar', '1')) {?>
<form class="navbar-search pull-right" role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
<input name="s" id="s" type="text" class="search-query" autocomplete="off" placeholder="<?php _e('Search','bonestheme'); ?>" data-provide="typeahead" data-items="4" data-source='<?php echo $typeahead_data; ?>'>
</form>
<?php } ?>
</div>
</div>
</div>
</div> <!-- end #inner-header -->
</header> <!-- end header -->
<div id="blog-content" class="box-shadow">