This repository was archived by the owner on Aug 22, 2019. It is now read-only.
forked from castlegateit/cgit-zero
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
65 lines (46 loc) · 1.95 KB
/
header.php
File metadata and controls
65 lines (46 loc) · 1.95 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
<?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 charset="<?php bloginfo('charset'); ?>" />
<title><?php wp_title('|', true, 'right'); ?></title>
<meta name="description" content="<?php bloginfo('description'); ?>" />
<?php /* <meta name="viewport" content="width=device-width, initial-scale=1, maximum-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'); ?>" /> */ ?>
<?php /* <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" /> */ ?>
<?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">
<?php if(is_home()): ?>
<h1 class="site-title"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></h1>
<?php else: ?>
<div class="site-title"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></div>
<?php endif; ?>
<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">