forked from cferdinandi/harbor-wp-theme
/
header.php
executable file
·55 lines (40 loc) · 1.79 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
<?php
/**
* header.php
* Template for header content.
*/
?><!DOCTYPE html>
<?php
$options = keel_get_theme_options();
?>
<html <?php language_attributes(); ?> class="<?php echo $options['typeface']; ?>">
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<?php if ( is_home () ) : ?><meta name="description" content="<?php bloginfo('description'); ?>"><?php endif; ?>
<!-- Mobile Screen Resizing -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Icons: place in the root directory -->
<!-- https://github.com/audreyr/favicon-cheat-sheet -->
<!-- Feeds & Pings -->
<link rel="alternate" type="application/rss+xml" title="<?php printf( __( '%s RSS Feed', 'keel' ), get_bloginfo( 'name' ) ); ?>" href="<?php bloginfo( 'rss2_url' ); ?>">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div data-sticky-wrap>
<!-- Old Browser Warning -->
<!--[if lt IE 9]>
<section>
<p>Did you know that your web browser is a bit old? Some of the content on this site might not work right as a result. <a href="http://whatbrowser.org">Upgrade your browser</a> for a faster, safer, and better web experience.</p>
</section>
<![endif]-->
<!-- Skip link for better accessibility -->
<a class="screen-reader screen-reader-focusable" href="#main">Skip to main content</a>
<?php
// Get site navigation
get_template_part( 'includes/keel-template-files/nav', 'main' );
?>
<main id="main">
<div class="<?php if ( !is_singular() || is_404() ) { echo 'container'; } ?> <?php if ( is_post_type_archive( 'pets' ) ) { echo 'container-large'; } ?>">