forked from welcomebrand/barebones-sass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
60 lines (54 loc) · 1.96 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
<?php ?>
<!DOCTYPE html>
<html>
<head>
<title><?php
global $page, $paged;
wp_title( '|', true, 'right' );
bloginfo( 'name' );
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
if ( $paged >= 2 || $page >= 2 )
echo ' | ' . sprintf( __( 'Page %s' ), max( $paged, $page ) );
?>
</title>
<meta name="description" content="<?php if ( is_single() ) {
single_post_title('', true);
} else {
bloginfo('name'); echo " - "; bloginfo('description');
}
?>" />
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="initial-scale=1" />
<meta http-equiv="ClearType" content="true" />
<!-- The little things -->
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="shortcut icon" href="<?php echo bloginfo('template_directory'); ?>/favicon.png">
<link rel="apple-touch-icon" href="<?php echo bloginfo('template_directory'); ?>/apple-touch-icon-precomposed.png"/>
<!-- The little things -->
<!-- Stylesheets -->
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<!-- Stylesheets -->
<!-- Load scripts quick smart -->
<!-- Load scripts quick smart -->
<?php wp_deregister_script('jquery');wp_head(); ?>
</head>
<body <?php body_class(); ?> id="top">
<header role="banner">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home" class="logo"><?php bloginfo( 'name' ); ?></a>
<p class="desc">
<?php bloginfo( 'description' ); ?>
</p>
<nav role="navigation">
<?php
$args = array(
'container' => 'false',
'items_wrap' => '<ul>%3$s</ul>',
);
wp_nav_menu($args);
?>
</nav>
<?php get_search_form(); ?>
</header>