-
Notifications
You must be signed in to change notification settings - Fork 3
/
header.php
executable file
·65 lines (56 loc) · 2.56 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php echo page_title('Page can’t be found'); ?> - <?php echo site_name(); ?></title>
<meta name="description" content="<?php echo site_description(); ?>">
<link rel="stylesheet" href="<?php echo theme_url('/css/style.css'); ?>">
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo rss_url(); ?>">
<link rel="shortcut icon" href="<?php echo theme_url('img/favicon.png'); ?>">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script>var base = '<?php echo theme_url(); ?>';</script>
<meta name="viewport" content="width=device-width">
<meta name="generator" content="Anchor CMS">
<meta property="og:title" content="<?php echo site_name(); ?>">
<meta property="og:type" content="website">
<meta property="og:url" content="<?php echo current_url(); ?>">
<meta property="og:image" content="<?php echo theme_url('img/og_image.gif'); ?>">
<meta property="og:site_name" content="<?php echo site_name(); ?>">
<meta property="og:description" content="<?php echo site_description(); ?>">
<?php if(customised()): ?>
<!-- Custom CSS -->
<style><?php echo article_css(); ?></style>
<!-- Custom Javascript -->
<script><?php echo article_js(); ?></script>
<?php endif; ?>
</head>
<body class="<?php echo body_class(); ?>">
<header class="site-header">
<div class="wrap">
<hgroup>
<h1><a href="<?php echo base_url(); ?>"><?php echo site_name(); ?></a></h1>
</hgroup>
<a href="#nav" class="menu"><img src="<?php echo theme_url(); ?>img/menu.png"></a>
<?php if(has_menu_items()): ?>
<nav role="navigation">
<ul>
<li>
<a href="<?php echo base_url(); ?>" title="<?php echo site_name(); ?>">Home</a>
</li>
<?php while(menu_items()): if(hide_show_menu_item(menu_id(), "show-in-menu", "true") === "true") { ?>
<li>
<a <?php echo (menu_active() ? 'class="active"' : ''); ?> href="<?php echo menu_url(); ?>" title="<?php echo menu_title(); ?>">
<?php echo menu_name(); ?>
</a>
</li>
<?php } endwhile; ?>
<?php if(twitter_account()): ?>
<li><a href="<?php echo twitter_url(); ?>">@<?php echo twitter_account(); ?></a></li>
<?php endif; ?>
</ul>
</nav>
<?php endif; ?>
</div>
</header>