-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.php
executable file
·74 lines (63 loc) · 2.41 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Hellish Simplicity
*/
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<a class="skip-link screen-reader-text" href="#main"><?php esc_html_e( 'Skip to content', 'hellish-simplicity' ); ?></a>
<header id="site-header" role="banner">
<div class="site-branding">
<?php
// Only use H1 tag for home page, since all other pages have their own H1 tag.
if ( is_home() ) {
echo '<h1>';
}
echo '<a href="' . esc_url( home_url( '/page/2/' ) ) . '">/page/2/</a>';
echo ' | ';
echo '<a href="' . esc_url( home_url( '/some/bla/page/2/' ) ) . '">/some/bla/page/2/</a>';
echo ' | ';
echo '<a href="' . esc_url( home_url( '/2018/' ) ) . '">/2018/</a>';
echo ' | ';
echo '<a href="' . esc_url( home_url( '/2022/' ) ) . '">/2022/</a>';
echo ' | ';
echo '<a href="' . esc_url( home_url( '/2018/page/2/' ) ) . '">/2018/page/2/</a>';
echo ' | ';
echo '<a href="' . esc_url( home_url( '/2022/page/2/' ) ) . '">/2022/page/2/</a>';
echo ' | ';
echo '<a href="' . esc_url( home_url( '/2022a/' ) ) . '">/2022a/</a>';
echo ' | ';
echo '<a href="' . esc_url( home_url( '/tag/australia/' ) ) . '">/tag/australia/</a>';
echo '<a href="' . esc_url( home_url( '/tag/australia/page/2/' ) ) . '">/tag/australia/page/2/</a>';
echo '<a id="page-title" href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" rel="home">';
// Output header text (need fallback to keep WordPress.org them demo happy)
$header_text = get_option( 'header-text' );
if ( $header_text ) {
echo Hellish_Simplicity_Setup::sanitize( $header_text );
} else {
echo 'Hellish<span>Simplicity</span><small>.tld</small>';
}
echo '</a>';
// Only use H1 tag for home page, since all other pages have their own H1 tag.
if ( is_home() ) {
echo '</h1>';
}
?>
<h2><?php bloginfo( 'description' ); ?></h2>
</div><!-- .site-branding -->
</header><!-- #site-header -->
<main id="main">