1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 17:23:55 +01:00
wp-theme/ascribe/header.php
Matthias Kretschmann 5c892f8234
switch to loading Typekit without js
* results in no Adobe cookies being set
2018-05-23 13:23:34 +02:00

75 lines
3.1 KiB
PHP

<?php
/**
* The template for displaying the header.
*
* @package ascribe
* @since 0.1.0
*/
require 'controller/init.php';
$controller = new Controller();
if (!isset($headColour)) {
$headColour = '';
}
if (is_home()) {
$title = "Blog | ascribe";
}
if ( is_category() || is_tag() ) {
$title = single_term_title( '', false ) . ' | Blog | ascribe';
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php echo $title ?></title>
<base href="<?php echo $url; ?>">
<meta name="description" content="<?php echo $description ?>">
<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">
<meta property="og:title" content="<?php echo $title; ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo $permalink; ?>" />
<meta property="og:image" content="<?php echo $shareimage; ?>" />
<meta property="og:site_name" content="<?php echo get_bloginfo(); ?>" />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="<?php echo $title; ?>">
<meta name="twitter:description" content="<?php echo $description ?>">
<meta name="twitter:image" content="<?php echo $shareimage; ?>">
<meta name="twitter:site" content="<?php echo $twitter; ?>">
<meta itemprop="name" content="<?php echo $title; ?>">
<meta itemprop="description" content="<?php echo $description ?>">
<meta itemprop="image" content="<?php echo $shareimage; ?>">
<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">
<!-- Typekit -->
<link rel="stylesheet" href="https://use.typekit.net/gma2yhj.css">
<?php wp_head(); ?>
</head>
<body <?php body_class($headColour); ?> >
<div class="wrapper">