2015-09-17 01:26:48 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The template for displaying the header.
|
|
|
|
*
|
2015-09-17 01:50:43 +02:00
|
|
|
* @package ascribe
|
2015-09-17 01:26:48 +02:00
|
|
|
* @since 0.1.0
|
|
|
|
*/
|
2015-09-26 04:08:27 +02:00
|
|
|
require 'controller/init.php';
|
2015-09-18 02:13:03 +02:00
|
|
|
$controller = new Controller();
|
|
|
|
|
2015-09-23 06:51:22 +02:00
|
|
|
if (!isset($headColour)) {
|
2015-12-17 15:55:34 +01:00
|
|
|
$headColour = '';
|
2015-09-23 06:51:22 +02:00
|
|
|
}
|
|
|
|
|
2015-09-26 04:08:27 +02:00
|
|
|
if (is_home()) {
|
2015-12-17 15:55:34 +01:00
|
|
|
$title = "Blog | ascribe";
|
2015-09-26 04:08:27 +02:00
|
|
|
}
|
2016-01-07 16:39:52 +01:00
|
|
|
if ( is_category() || is_tag() ) {
|
2016-01-07 16:43:08 +01:00
|
|
|
$title = single_term_title( '', false ) . ' | Blog | ascribe';
|
2016-01-07 16:39:52 +01:00
|
|
|
}
|
2015-09-26 04:08:27 +02:00
|
|
|
|
2015-09-18 02:13:03 +02:00
|
|
|
?>
|
2016-01-16 13:18:29 +01:00
|
|
|
|
2015-09-18 02:13:03 +02:00
|
|
|
<!doctype html>
|
2016-03-13 05:32:37 +01:00
|
|
|
<html lang="en">
|
2015-09-18 02:13:03 +02:00
|
|
|
|
|
|
|
<head>
|
2015-12-17 15:55:34 +01:00
|
|
|
<meta charset="utf-8">
|
2015-09-18 02:13:03 +02:00
|
|
|
|
2015-12-17 15:55:34 +01:00
|
|
|
<title><?php echo $title ?></title>
|
|
|
|
<base href="<?php echo $url; ?>">
|
|
|
|
<meta name="description" content="<?php echo $description ?>">
|
2016-01-07 14:40:06 +01:00
|
|
|
|
2016-03-13 05:32:37 +01:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
<meta name="HandheldFriendly" content="True">
|
|
|
|
<meta name="MobileOptimized" content="320">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta http-equiv="cleartype" content="on">
|
|
|
|
|
2015-12-17 15:55:34 +01:00
|
|
|
<meta property="og:title" content="<?php echo $title; ?>" />
|
|
|
|
<meta property="og:type" content="website" />
|
2016-01-07 14:40:06 +01:00
|
|
|
<meta property="og:url" content="<?php echo $permalink; ?>" />
|
|
|
|
<meta property="og:image" content="<?php echo $shareimage; ?>" />
|
2015-12-17 15:55:34 +01:00
|
|
|
<meta property="og:site_name" content="<?php echo get_bloginfo(); ?>" />
|
2015-09-18 02:13:03 +02:00
|
|
|
|
2016-01-07 14:40:06 +01:00
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
2015-12-17 15:55:34 +01:00
|
|
|
<meta name="twitter:title" content="<?php echo $title; ?>">
|
|
|
|
<meta name="twitter:description" content="<?php echo $description ?>">
|
2016-01-07 14:40:06 +01:00
|
|
|
<meta name="twitter:image" content="<?php echo $shareimage; ?>">
|
|
|
|
<meta name="twitter:site" content="<?php echo $twitter; ?>">
|
2015-09-18 02:13:03 +02:00
|
|
|
|
2015-12-17 15:55:34 +01:00
|
|
|
<meta itemprop="name" content="<?php echo $title; ?>">
|
|
|
|
<meta itemprop="description" content="<?php echo $description ?>">
|
2016-01-07 14:40:06 +01:00
|
|
|
<meta itemprop="image" content="<?php echo $shareimage; ?>">
|
2015-09-18 02:13:03 +02:00
|
|
|
|
2015-12-17 15:55:34 +01:00
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/apple-touch-icon-180x180.png">
|
|
|
|
<link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/favicon-32x32.png" sizes="32x32">
|
|
|
|
<link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/favicon-194x194.png" sizes="194x194">
|
|
|
|
<link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/favicon-96x96.png" sizes="96x96">
|
|
|
|
<link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/android-chrome-192x192.png" sizes="192x192">
|
|
|
|
<link rel="icon" type="image/png" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/favicon-16x16.png" sizes="16x16">
|
|
|
|
<link rel="manifest" href="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/manifest.json">
|
|
|
|
<meta name="msapplication-TileColor" content="#d6137c">
|
|
|
|
<meta name="msapplication-TileImage" content="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/mstile-144x144.png">
|
|
|
|
<meta name="msapplication-config" content="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/ico/browserconfig.xml">
|
|
|
|
<meta name="theme-color" content="#ffffff">
|
2015-09-18 02:13:03 +02:00
|
|
|
|
2016-01-16 13:18:29 +01:00
|
|
|
<!-- Typekit -->
|
|
|
|
<script>
|
|
|
|
(function(d) {
|
|
|
|
var config = {
|
|
|
|
kitId: 'gma2yhj',
|
|
|
|
scriptTimeout: 3000
|
|
|
|
},
|
|
|
|
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='//use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
|
|
|
|
})(document);
|
|
|
|
</script>
|
2015-09-23 06:51:22 +02:00
|
|
|
|
2015-12-17 15:55:34 +01:00
|
|
|
<?php wp_head(); ?>
|
2015-09-18 02:13:03 +02:00
|
|
|
</head>
|
2015-09-23 06:51:22 +02:00
|
|
|
<body <?php body_class($headColour); ?> >
|
2015-09-18 02:13:03 +02:00
|
|
|
<div class="wrapper">
|