-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader-slider.php
More file actions
182 lines (153 loc) · 7.06 KB
/
Copy pathheader-slider.php
File metadata and controls
182 lines (153 loc) · 7.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
172
173
174
175
176
177
178
179
180
181
182
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?><!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php
/*
* Print the <title> tag based on what is being viewed.
*/
global $page, $paged;
wp_title( '|', true, 'right' );
// Add the blog name.
bloginfo( 'name' );
// Add the blog description for the home/front page.
//$site_description = get_bloginfo( 'description', 'display' );
//if ( $site_description && ( is_home() || is_front_page() ) )
// echo " | $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );
?></title>
<!-- CORE CSS -->
<link rel="profile" href="http://gmpg.org/xfn/11" />
<!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
<link rel="stylesheet" type="text/css" media="screen and (min-width: 769px)" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="stylesheet" type="text/css" media="screen and (min-width: 481px) and (max-width: 768px)" href="<?php echo get_stylesheet_directory_uri(); ?>/css/tablet.css" />
<link rel="stylesheet" type="text/css" media="screen and (max-width: 480px)" href="<?php echo get_stylesheet_directory_uri(); ?>/css/mobile.css" />
<!--<![endif]-->
<link href="<?php echo get_stylesheet_directory_uri(); ?>/css/player.css" media="screen" rel="stylesheet" type="text/css" />
<!-- CORE JS -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/ariaTabs3b.js" type="text/javascript"></script>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<![endif]-->
<?php
/* PHP and js to fix keyboard focus behavior for nav */
include("js/cc-accessible-dropdown-menus.php");
?>
<?php
/* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
*/
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?>
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />
</head>
<body <?php body_class(); ?>>
<div id="page" class="hfeed">
<header id="branding" role="banner">
<hgroup>
<h1 id="site-title" aria-level="1" role="heading"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
<h2 id="site-description" aria-level="2"><?php bloginfo( 'description' ); ?></h2>
</hgroup>
<!-- begin image slider -->
<?php //query_posts( array ( 'category_name' => 'feature', 'posts_per_page' => '5', 'order' => 'ASC', 'orderby' => 'meta_value', 'meta_key' => 'slider-order') ); ?>
<?php $args = array( 'category_name' => 'feature', 'posts_per_page' => '5');
$query = new WP_Query($args);
?>
<?php if ( have_posts()) : ?>
<div id="player">
<div id="tabs">
<?php //while ( have_posts() ) : the_post() ?>
<?php while ($query->have_posts()) : $query->the_post(); ?>
<div id="tabs-<?php the_id() ?>">
<?php if (has_post_thumbnail()): ?>
<div class="media crop">
<?php the_post_thumbnail('wide-featured-thumbnail');?>
<div class="caption">
<div class="copy">
<h3><a href="<?php the_permalink() ?>" title="<?php printf( __('Permalink to %s', 'twentyeleven'), the_title_attribute('echo=0') ) ?>" rel="bookmark"><?php the_title() ?></a></h3>
<?php the_excerpt( __( 'Read More <span class="meta-nav">»</span>', 'twentyeleven' ) ) ?>
</div></div>
</div>
<?php else: ?>
<div class="copy">
<h3><a href="<?php the_permalink() ?>" title="<?php printf( __('Permalink to %s', 'twentyeleven'), the_title_attribute('echo=0') ) ?>" rel="bookmark"><?php the_title() ?></a></h3>
<?php the_excerpt( __( 'Read More <span class="meta-nav">»</span>', 'twentyeleven' ) ) ?>
</div>
<?php endif; ?>
</div><!-- end tab -->
<?php
endwhile;
wp_reset_query();
?>
<div class="clear"></div>
<ul>
<?php query_posts( 'category_name=feature&&posts_per_page=5' ); ?>
<?php
$i=1;
while ( have_posts() ) : the_post() ?>
<li class="tab"><a href="#tabs-<?php the_id() ?>"><?php echo $i; ?></a></li>
<?php $i++; ?>
<?php
endwhile;
wp_reset_query()
?>
</ul>
</div> <!-- end #tabs -->
</div>
<?php endif; ?>
<!-- end image slider -->
<?php
// Has the text been hidden?
if ( 'blank' == get_header_textcolor() ) :
?>
<div class="only-search<?php if ( ! empty( $header_image ) ) : ?> with-image<?php endif; ?>">
<?php get_search_form(); ?>
</div>
<?php
else :
?>
<?php get_search_form(); ?>
<?php endif; ?>
<nav id="access" role="navigation">
<h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
<a href="#" id="menu-icon"></a>
<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav><!-- #access -->
</header><!-- #branding -->
<div id="main" tabindex=”-1”>