-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
executable file
·113 lines (98 loc) · 4.47 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
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
<?php
/**
* The Header for our theme.
*
* @package WordPress
* @subpackage kvarteret
* @since Kvarteret 1.0
*/
?>
<!DOCTYPE html>
<html lang="nb">
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
<link rel="icon" type="image/png" href="<?php bloginfo('template_directory'); ?>/favicon.ico">
<link rel="publisher" href="https://plus.google.com/117774314238786301866" />
<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', 'twentyten' ), max( $paged, $page ) );
?></title>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<?php
if ( is_singular() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
wp_head();
?>
<script src="<?php bloginfo('template_directory'); ?>/javascript/jquery-1.4.3.min.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php bloginfo('template_directory'); ?>/javascript/jquery.slider.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php bloginfo('template_directory'); ?>/javascript/application.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18345888-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body <?php body_class(); ?>>
<div id="header">
<ul id="header_opening_times">
<li><strong>Man-ons</strong> 11:30 - 01:00</li>
<li><strong>Tor-fre</strong> 11:30 - 03:30</li>
<li><strong>Lør</strong> 14:00 - 03:30</li>
<li><strong>Søn</strong> Åpent ved arrangement</li>
</ul>
<div id="header_follow_buttons">
<a href="http://twitter.com/Kvarteret"><img src="<?php bloginfo('template_directory'); ?>/images/twitter.png" alt="Twitter" /></a>
<a href="http://www.facebook.com/pages/Det-Akademiske-Kvarter/20210537496"><img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" alt="Facebook" /></a>
<a href="http://events.kvarteret.no/api/atom/upcomingEvents"><img src="<?php bloginfo('template_directory'); ?>/images/rss.png" alt="Upcoming events" /></a>
</div>
<div id="header_search_form">
<form action="<?php echo home_url( '/' ); ?>?" method="get">
<input name="s" id="search_input_box" placeholder="Skriv inn søkeord" type="text" />
<button id="search_button" title="søk">søk</button>
</form>
</div>
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home" id="logo">
<img src="<?php bloginfo('template_directory'); ?>/images/logo.png" title="Det Akademiske Kvarter" alt="Det Akademiske Kvarter" />
</a>
</div>
<!-- end #header -->
<div id="navigation_bar" role="navigation">
<div class="menu-header">
<?php wp_nav_menu( array( 'container_class' => 'menu-left', 'menu' => 'Nav left' ) ); ?>
<?php wp_nav_menu( array( 'container_class' => 'menu-right', 'menu' => 'Nav right' ) ); ?>
<span id="navigation_sides">
<img src="<?php bloginfo('template_directory'); ?>/images/navigation_left.png" id="fancy_left">
<span id="white_navigation_background"></span>
<img src="<?php bloginfo('template_directory'); ?>/images/navigation_right.png" id="fancy_right">
</span>
</div>
</div>
<div id="main">
<?php /*
<div style="background-color: rgb(66,66,66); color: #fff;
margin-bottom: 15px; padding: 15px; border: solid 1px rgb(66,66,66); border-radius: 5px;">
<p style="font-size: 16px">
Kvarterets frivillige har tatt sommerferie, men
<a style="color: #fff; font-size: 20px" href="http://sommerkvarteret.no">sommerkvarteret</a>
holder åpent.
</p>
</div>
*/ ?>