This repository was archived by the owner on Oct 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
87 lines (61 loc) · 2.28 KB
/
header.php
File metadata and controls
87 lines (61 loc) · 2.28 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/**
* Header template
*
* Contains the <head> element applied to all pages and opens the <div>
* element that contains the main content of the page. It also calls the
* wp_head() function at the end of the <head> element for compatibility with
* plugins and other WordPress functions.
*/
?>
<!DOCTYPE html>
<html lang="<?php bloginfo('language'); ?>">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta charset="<?php bloginfo('charset'); ?>" />
<title><?php
if (function_exists('get_field') && get_field('seo_title')) {
the_field('seo_title');
} else {
wp_title('|', true, 'right');
}
?></title>
<meta name="description" content="<?php
if (function_exists('get_field') && get_field('seo_description')) {
the_field('seo_description');
} else {
bloginfo('description');
}
?>" />
<?php /* <meta name="viewport" content="width=device-width, initial-scale=1" /> */ ?>
<?php /* <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/style.css" /> */ ?>
<?php /* <link rel="alternate" type="application/atom+xml" href="<?php bloginfo('atom_url'); ?>" title="Atom Feed" /> */ ?>
<?php /* <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="RSS Feed" /> */ ?>
<?php /* <link rel="shortcut icon" href="<?php bloginfo('stylesheet_directory'); ?>/icons/favicon.ico" /> */ ?>
<?php /* <link rel="apple-touch-icon-precomposed" href="<?php bloginfo('stylesheet_directory'); ?>/icons/touch.png" /> */ ?>
<?php /* <script src="<?php bloginfo('stylesheet_directory'); ?>/js/script.js"></script> */ ?>
<?php wp_head(); ?>
</head>
<body>
<div class="header">
<h1 class="title"><a href="<?php bloginfo('url'); ?>/"><?php
if (function_exists('get_field') && get_field('seo_heading')) {
the_field('seo_heading');
} else {
bloginfo('name');
}
?></a></h1>
<div class="nav">
<?php
// Print navigation menu registered in functions.php
wp_nav_menu(
array(
'theme_location' => 'nav',
'container' => false,
'items_wrap' => '<ul>%3$s</ul>'
)
);
?>
</div>
</div>
<div class="content">