-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
52 lines (43 loc) · 2.73 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
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title><?php echo page_title('Page can’t be found'); ?> - <?php echo site_name(); ?></title>
<link rel="stylesheet" href="<?php echo theme_url('/css/reset.css'); ?>">
<link rel="stylesheet" href="<?php echo theme_url('/css/fonts.css'); ?>">
<link rel="stylesheet" href="<?php echo theme_url('/css/main.css'); ?>">
<link rel="stylesheet" href="<?php echo theme_url('/css/highlightjs.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 name="title" content="<?php echo article_id() ? article_title() : site_name(); ?>">
<meta name="description" content="<?php echo article_id() ? article_description() : site_description(); ?>">
<meta property="fb:app_id" content="<?php echo site_meta('facebook-app-id'); ?>">
<meta property="og:type" content="blog">
<meta property="og:url" content="<?php echo full_url() . current_url(); ?>">
<meta property="og:title" content="<?php echo article_id() ? article_title() : site_name(); ?>">
<!-- name='og:image' for Google+ -->
<meta name="og:image" content="<?php echo str_replace('/index.php/', '', full_url()) . (article_id() ? article_custom_field('thumbnail') : theme_url('img/og_image.gif')); ?>">
<!-- property='og:image' for Facebook -->
<meta property="og:image" content="<?php echo str_replace('/index.php/', '', full_url()) . (article_id() ? article_custom_field('thumbnail') : theme_url('img/og_image.gif')); ?>">
<meta property="og:description" content="<?php echo article_id() ? article_description() : site_description(); ?>">
<meta property="og:site_name" content="<?php echo site_name(); ?>">
<?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>
<hgroup>
<h1><a href="<?php echo base_url(); ?>"><?php echo preg_replace('`<(.+)>`', '<<em>$1</em>>', site_name()); ?></a></h1>
<h2><?php echo site_description(); ?></h2>
</hgroup>
</header>