-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
49 lines (47 loc) · 1.71 KB
/
header.php
File metadata and controls
49 lines (47 loc) · 1.71 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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width" />
<?php wp_head(); ?>
</head>
<body <?php body_class((is_home() || is_front_page() && is_home() || is_archive() || is_search() && have_posts() ? 'type-summary' : 'type-content')); ?>>
<div id="wrapper" class="hfeed">
<header id="header">
<div class="header-wrap container">
<div class="header-start">
<div id="branding">
<div id="site-title">
<?php if (is_front_page() || is_home() || is_front_page() && is_home()) {
echo '<h1>';
} ?>
<?php if(has_custom_logo()) : ?>
<?php the_custom_logo(); ?>
<?php else: ?>
<a href="<?php echo esc_url(home_url('/')); ?>"
title="<?php echo esc_html(get_bloginfo('name')); ?>"
rel="home"><?php echo esc_html(get_bloginfo('name')); ?></a>
<?php endif; ?>
<?php if (is_front_page() || is_home() || is_front_page() && is_home()) {
echo '</h1>';
} ?>
</div>
</div>
<div id="search" class="mq-dn-sm"><?php get_search_form(); ?></div>
</div>
<input id="nav-input" type="checkbox" class="nav-unshown">
<label id="nav-open" for="nav-input" class="nav-unshown"><i class="fas fa-bars fa-lg"></i></label>
<label class="nav-unshown" id="nav-close" for="nav-input"></label>
<nav id="menu">
<div id="search-menu">
<?php get_search_form(); ?>
</div>
<?php if ( has_nav_menu('main-menu') ) {
wp_nav_menu(array(
'theme_location' => 'main-menu',
'container_id' => 'main-menu', ));
} ?>
</nav>
</div>
</header>
<div id="container" class="container">