-
Notifications
You must be signed in to change notification settings - Fork 9
/
header.php
48 lines (41 loc) · 1.8 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
<?php
/**
* @package WordPress
* @subpackage P2
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title( '«', true, 'right' ); ?> <?php bloginfo( 'name' ); ?></title>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="header">
<?php do_action( 'before' ); ?>
<div class="sleeve">
<h1><a href="<?php echo home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<?php if ( get_bloginfo( 'description' ) ) : ?>
<small><?php bloginfo( 'description' ); ?></small>
<?php endif; ?>
<a class="secondary" href="<?php echo home_url( '/' ); ?>"></a>
<?php if ( current_user_can( 'publish_posts' ) ) : ?>
<a href="" id="mobile-post-button" style="display: none;"><?php _e( 'Post', 'p2' ) ?></a>
<?php endif; ?>
</div>
<?php if ( has_nav_menu( 'primary' ) ) : ?>
<div role="navigation" class="site-navigation main-navigation">
<h1 class="assistive-text"><?php _e( 'Menu', 'p2' ); ?></h1>
<div class="assistive-text skip-link"><a href="#main" title="<?php esc_attr_e( 'Skip to content', 'p2' ); ?>"><?php _e( 'Skip to content', 'p2' ); ?></a></div>
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'fallback_cb' => '__return_false',
) ); ?>
</div>
<?php endif; ?>
</div>
<div id="wrapper">