-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
117 lines (99 loc) · 3.46 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="loading js-loading">
<div class="text">
<p>
<span class="fuma yellow"></span>
<span class="fuma blue"></span>
<span class="fuma red"></span>
<span class="fuma green"></span>
<span class="fuma magenta"></span>
</p>
<p>Loading...</p>
</div>
</div>
<div class="site-container">
<header class="header sliding-panel-content">
<?php if ( has_nav_menu( 'global' ) ) : ?>
<div class="global-nav-box">
<h1 class="menu-title">Menu</h1>
<?php wp_nav_menu( array(
'theme_location' => 'global',
'menu_id' => 'global-menu',
'container' => 'nav',
'container_class' => 'global-nav',
) ); ?>
</div>
<?php endif; ?>
<?php if ( has_nav_menu( 'entry' ) || has_nav_menu( 'workshop' ) ) : ?>
<div class="entry-nav-box">
<?php if ( has_nav_menu( 'entry' ) ) : ?>
<h1 class="menu-title">Entry</h1>
<?php wp_nav_menu( array(
'theme_location' => 'entry',
'menu_id' => 'entry-menu',
'container' => 'nav',
'container_class' => 'entry-nav',
) ); ?>
<?php endif; ?>
<?php if ( has_nav_menu( 'workshop' ) ) : ?>
<p class="workshop-note">以下は、DojoCon Japan 2017参加登録後、お申込みください。</p>
<?php wp_nav_menu( array(
'theme_location' => 'workshop',
'menu_id' => 'workshop-menu',
'container' => 'nav',
'container_class' => 'workshop-nav',
) ); ?>
<?php endif; ?>
<button class="entry-nav-box-close button-close js-entry-nav-box-close" type="button">Close</button>
</div>
<button class="entry-nav-box-toggle js-entry-nav-box-toggle" type="button">Entry</button>
<div class="entry-nav-fade-screen js-entry-nav-fade-screen"></div>
<?php endif; ?>
<?php if ( has_nav_menu( 'coderdojo' ) ) : ?>
<?php wp_nav_menu( array(
'theme_location' => 'coderdojo',
'menu_id' => 'coderdojo-menu',
'container' => 'nav',
'container_class' => 'coderdojo-nav',
) ); ?>
<?php endif; ?>
</header>
<button class="hamburger-box js-sliding-panel-toggle" type="button">
<span class="hamburger">
<span class="hamburger-inner">Menu</span>
</span>
</button>
<?php if ( is_home() ) : ?>
<header class="archive-header">
<h1 class="site-title js-site-title"><?php bloginfo( 'name' ); ?></h1>
<h2 class="archive-title"><?php $page_for_posts = get_option( 'page_for_posts' );
if ( $page_for_posts ) : ?>
<?php echo get_the_title( $page_for_posts ); ?>
<?php else : ?>
<?php _e( 'Posts' ); ?>
<?php endif; ?></h2>
</header>
<?php elseif ( is_archive() ) : ?>
<header class="archive-header">
<h1 class="site-title js-site-title"><?php bloginfo( 'name' ); ?></h1>
<h2 class="archive-title"><?php post_type_archive_title(); ?></h2>
</header>
<?php elseif ( ! ( is_home() || is_front_page() ) && is_singular() ) : ?>
<header class="post-header">
<h1 class="site-title js-site-title"><?php bloginfo( 'name' ); ?></h1>
<h2 class="post-type-title"><?php dojoconjapan2017_single_post_type_title(); ?></h2>
</header>
<?php elseif ( is_404() ) : ?>
<header class="post-header">
<h1 class="site-title js-site-title"><?php bloginfo( 'name' ); ?></h1>
<h2 class="post-type-title">404</h2>
</header>
<?php endif ?>