Skip to content

Instantly share code, notes, and snippets.

@erwstout
Created November 10, 2015 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erwstout/a7f67176e748c08e314a to your computer and use it in GitHub Desktop.
Save erwstout/a7f67176e748c08e314a to your computer and use it in GitHub Desktop.
Header
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie ie6 no-js" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7 ]> <html class="ie ie7 no-js" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8 ]> <html class="ie ie8 no-js" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 9 ]> <html class="ie ie9 no-js" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 9]><!--><html class="no-js" <?php language_attributes(); ?>><!--<![endif]-->
<!-- the "no-js" class is for Modernizr. -->
<!-- new analytics code to track straglers -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-9323633-1', 'auto');
ga('send', 'pageview');
</script>
<head id="www-crepesofwrath-net" data-template-set="html5-wrath-theme" profile="http://gmpg.org/xfn/11">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700|Arvo:700,400' rel='stylesheet' type='text/css'>
<meta charset="<?php bloginfo('charset'); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<?php if (is_search()) { ?>
<meta name="robots" content="noindex, nofollow" />
<?php } ?>
<title>
<?php
if (function_exists('is_tag') && is_tag()) {
single_tag_title("Tag Archive for &quot;"); echo '&quot; - '; }
elseif (is_archive()) {
wp_title(''); echo ' Archive - '; }
elseif (is_search()) {
echo 'Search for &quot;'.wp_specialchars($s).'&quot; - '; }
elseif (!(is_404()) && (is_single()) || (is_page())) {
wp_title(''); echo ' - '; }
elseif (is_404()) {
echo 'Not Found - '; }
if (is_home()) {
bloginfo('name'); echo ' - '; bloginfo('description'); }
else {
bloginfo('name'); }
if ($paged>1) {
echo ' - page '. $paged; }
?>
</title>
<meta name="title" content="<?php
if (function_exists('is_tag') && is_tag()) {
single_tag_title("Tag Archive for &quot;"); echo '&quot; - '; }
elseif (is_archive()) {
wp_title(''); echo ' Archive - '; }
elseif (is_search()) {
echo 'Search for &quot;'.wp_specialchars($s).'&quot; - '; }
elseif (!(is_404()) && (is_single()) || (is_page())) {
wp_title(''); echo ' - '; }
elseif (is_404()) {
echo 'Not Found - '; }
if (is_home()) {
bloginfo('name'); echo ' - '; bloginfo('description'); }
else {
bloginfo('name'); }
if ($paged>1) {
echo ' - page '. $paged; }
?>">
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/_/img/favicon.ico">
<link rel="apple-touch-icon" href="<?php bloginfo('template_directory'); ?>/_/img/apple-touch-icon.png">
<link rel="stylesheet" href="<?php bloginfo('template_url');?>/_/css/f1-nav.css">
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
<script src="<?php bloginfo('template_directory'); ?>/_/js/modernizr-1.7.min.js"></script>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<!-- Start: GPT Async -->
<script type='text/javascript'>
var gptadslots=[];
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function(){ var gads = document.createElement('script');
gads.async = true; gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js';
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(gads, node);
})();
</script>
<script type="text/javascript">
googletag.cmd.push(function() {
//ad slot 1 declaration (box ad)
gptadslots[2]= googletag.defineSlot('/3865/circle.crepesofwrath', [[300,250],[300,600]],'div-gpt-ad-111432534558587806-2').addService(googletag.pubads());
//Adslot 2 declaration we should hide this one on mobile because it breaks responsiveness
gptadslots[1]= googletag.defineSlot('/3865/circle.crepesofwrath', [[728,90]],'div-gpt-ad-111432534558587806-1').addService(googletag.pubads());
googletag.pubads().enableAsyncRendering();
googletag.enableServices();
});
</script>
<!-- End: GPT -->
<!-- Start: Pintrest stat verification -->
<meta name="p:domain_verify" content="0523cc342604757e0724fb0e4ad571d6"/>
<!-- End: Pintrest stat verification -->
</head>
<body <?php body_class(); ?>>
<div class="wrapper">
<!-- Mobile Menu -->
<header id="mobile-header" class="headroom show-for-small mobile-header">
<div class="mobile-logo">
<a href="<?php bloginfo('url');?>/">
<img src="<?php bloginfo('template_url');?>/_/img/logo.png">
<h2>Crepes of Wrath</h2>
</a>
</div>
<a class="mm_open" id="nav-toggle"><span></span></a>
</header>
<div class="panel">
<nav role="navigation">
<ul>
<li><a href="<?php bloginfo('url');?>/recipes/">Recipes</a></li>
<li><a href="<?php bloginfo('url');?>/index/">Index</a></li>
<li><a href="<?php bloginfo('url');?>/faq/">FAQ</a></li>
<li><a href="<?php bloginfo('url');?>/about/">About</a></li>
</ul>
</nav>
<div class="mobile-search">
<h4>Search</h4>
<form action="<?php bloginfo('siteurl'); ?>" id="searchform" method="get">
<div>
<input type="search" id="s" name="s" value="">
<!-- <input type="submit" value="Search" id="searchsubmit"> -->
</div>
</form>
</div>
</div>
<div class="sidebar-container">
<?php get_sidebar(); ?>
</div>
<div id="content">
<div id="pushdown" class="ad">
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment