forked from okfde/jh-lauch-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·93 lines (82 loc) · 3.51 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?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 Lauch
*/
?>
<!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">
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo get_template_directory_uri() ?>/images/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="<?php echo get_template_directory_uri() ?>/images/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="<?php echo get_template_directory_uri() ?>/images/favicon/favicon-16x16.png">
<link rel="manifest" href="<?php echo get_template_directory_uri() ?>/images/favicon/site.webmanifest">
<link rel="mask-icon" href="<?php echo get_template_directory_uri() ?>/images/favicon/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="<?php echo get_template_directory_uri() ?>/images/favicon/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="<?php echo get_template_directory_uri() ?>/images/favicon/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<a class="skip show-on-focus" href="#content"><?php esc_html_e( 'Skip to content', 'lauch' ); ?></a>
<header class="l-header" id="masthead">
<nav class="c-nav c-topnav l-inner" id="site-navigation">
<input type="checkbox" id="menu-toggle"
class="c-nav-toggle a11y-visuallyhidden"
tabindex=0>
<label for="menu-toggle" class="c-nav-label no-text"
title="Menü öffnen"
aria-label="Menü öffnen">
<span></span>
<span></span>
<span></span>
</label>
<?php
if ( is_front_page() && is_home() ) :
?>
<h1 class="c-nav-logo">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"
class="no-text"
style="background-image: url(<?php echo get_header_image(); ?>)">
<?php bloginfo( 'name' ); ?>
</a>
</h1>
<?php
else :
?>
<p class="c-nav-logo">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"
class="no-text"
style="background-image: url(<?php echo get_header_image(); ?>)">
<?php bloginfo( 'name' ); ?>
</a>
</p>
<?php
endif; ?>
<?php
wp_nav_menu( array(
'theme_location' => 'menu-main',
'menu_id' => 'primary-menu',
'menu_class' => 'c-nav-items c-list-pointless',
'container' => false
) );
?>
<input type="checkbox" id="search-toggle"
class="c-search-toggle a11y-visuallyhidden"
tabindex=0>
<label for="search-toggle" class="c-search-label"
title="Suche öffnen"
aria-label="Suche öffnen"></label>
<?php get_search_form(); ?>
</nav>
</header>
<main id="content" class="l-main site-content">