-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
63 lines (58 loc) · 3.53 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
61
62
63
<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title>
<meta name="description" content="<?php bloginfo("description") ?>">
<meta name="author" content="Piratpartiet">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="shortcut icon" href="<?php bloginfo("template_directory") ?>/images/favicon.png" type="image/x-icon">
<link rel="apple-touch-icon" href="<?php bloginfo("template_directory") ?>/images/apple-touch-icon.png" type="image/png">
<link rel="apple-touch-icon" sizes="72x72" href="<?php bloginfo("template_directory") ?>/images/apple-touch-icon-72x72.png" type="image/png">
<link rel="apple-touch-icon" sizes="114x114" href="<?php bloginfo("template_directory") ?>/images/apple-touch-icon-114x114.png" type="image/png">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php wp_head(); ?>
<meta property="og:description" content="<?php bloginfo("description") ?>">
<meta property="og:locale" content="<?php echo str_replace("-", "_", get_bloginfo('language') ) ?>">
<meta property="og:site_name" content="<?php bloginfo('name'); ?>">
<meta property="og:title" content="<?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?>">
<meta property="og:type" content="<?php echo is_home() || is_front_page() ? "website" : "article" ?>">
<meta property="og:image" content="<?php bloginfo("template_directory") ?>/images/apple-touch-icon-114x114.png">
<meta property="og:image:width" content="114">
<meta property="og:image:height" content="114">
<meta property="og:url" content="http<?php if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") echo 's' ?>://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ?>">
<meta property="fb:admins" content=""> <?php //todo: changeme, use graph.facebook.com/username or /userid ?>
</head>
<!--[if lt IE 7 ]> <body <?php body_class('ie6'); ?>> <![endif]-->
<!--[if IE 7 ]> <body <?php body_class('ie7'); ?>> <![endif]-->
<!--[if IE 8 ]> <body <?php body_class('ie8'); ?>> <![endif]-->
<!--[if IE 9 ]> <body <?php body_class('ie9'); ?>> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <body <?php body_class('ie6'); ?>> <!--<![endif]-->
<div id="fb-root"></div>
<div id="topmenu">
<?php do_action('pp-topmenu') ?>
</div>
<div id="container">
<header role="banner" id="header">
<div id="banner"></div>
<?php wp_nav_menu(array('theme_location' => 'main', 'container' => 'nav')) ?>
<div class="header-bottom">
<hgroup class="wide-column">
<a href="<?php bloginfo('rss2_url'); ?>" class="rss-icon"></a>
<h1>
<?php $justnu = class_exists('PP_Ettan') && ( is_front_page() || is_home() ) ?>
<a href="<?php bloginfo("url") ?>" rel="home" <?php if ( $justnu ) echo 'class="justnu"' ?>>
<?php echo $justnu ? 'Just nu' : get_bloginfo("name") ?>
</a>
</h1>
<h2><?php bloginfo("description") ?></h2>
</hgroup>
<div class="narrow-column">
<?php get_search_form(true) ?>
</div>
</div>
</header>