/
contents_header.php
95 lines (85 loc) · 3.49 KB
/
contents_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
<?php
$body_id = "";
if (is_page()) {
$body_id = ' id="' . $post->post_name . '" ';
}
?>
<body <?php echo $body_id; ?> <?php body_class(); ?>>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TZPZJVV"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<!-- ヘッダー -->
<header>
<div class="header_inner flex">
<div class="gloval_navigation">
<div class="gloval_navigation_contents">
<section id="navi_header">
<div class="navi_buttonArea">
<div class="navi_icon"></div>
</div>
</section>
<div class="menuOpen_contents">
<!-- メニュー -->
<section id="menuArea" class="menuOpen_contents_container">
<!-- <div id="search_sp">-->
<!-- <h3>サイト内検索</h3>-->
<!-- --><?php //get_search_form(); ?>
<!-- </div>-->
<div id="navi_menu">
<div class="contents_wrap">
<nav>
<?php
$arg = array(
'menu' => 'global-navigation',
'menu_class' => 'flex',
'container' => false,
);
wp_nav_menu($arg);
?>
</nav>
<a href="<?php echo home_url(); ?>/contact" class="button">お問い合わせ</a>
</div>
</div>
</section>
</div>
</div>
<!-- ナビボタン -->
<div class="navi_buttonArea">
<div class="navi_icon"></div>
</div>
</div>
<div class="header_logo">
<a href="<?php echo home_url(); ?>" class="flex"><img src="<?php echo get_template_directory_uri(); ?>/img/ruby_icon.png" alt="RUBYDESIGN" width="32px" class="header_logo__icon"><span class="header_logo__name">RUBYDESIGN.</span></a>
</div>
<div class="navigation_inner flex">
<nav>
<?php
$arg = array(
'menu' => 'global-navigation',
'menu_class' => 'flex',
'container' => false,
);
wp_nav_menu($arg);
?>
</nav>
<div class="sub_navgation flex">
<?php get_search_form(); ?>
<a role="button" href="/contact" class="cv-button c-button-round flex">
<span class="icon"><img src="<?php echo get_template_directory_uri(); ?>/img/icon/mail@2x1.svg"></span>
<span class="label">相談する</span>
</a>
</div>
</div>
</div>
</header>
<?php if( !is_front_page() ): ?>
<div class="breadcrumbs">
<?php
// パンくずリストを表示
if ( function_exists( 'bcn_display' ) ) {
bcn_display();
}
?>
</div>
<?php endif; ?>