-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
112 lines (102 loc) · 2.93 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
<?php
/*
* this is header parts.
*
* @package conveythought
*/
?><!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="http://gmpg.org/xfn/11">
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<!-- container -->
<div id="container">
<!-- header -->
<header id="header">
<?php //menu
$args = array(
'theme_location' => 'headernav',
'fallback_cb' => '',
'items_wrap' => '<ul class="nav navbar-nav">%3$s</ul>',
'container' => false,
'echo' => false,
);
$gMenu = wp_nav_menu( $args ) ;
// If the menu is set.
if ($gMenu) {
echo '
<!-- nav -->
<div class="header-nav navbar-fixed-top">
<nav class="navbar navbar-default">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#gnavi">
<span class="sr-only">MENU</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="gnavi" class="collapse navbar-collapse">
';
echo $gMenu;
echo '
</div>
</nav>
</div>
<!-- //nav -->';
}else {//If the menu is not set.
//nothing none.
} ?>
<div class="row" role="banner">
<!-- header_description -->
<div class="header-description col-sm-12">
<p><?php bloginfo( 'description' ); ?></p>
</div>
<!-- //header_description -->
<!-- header_title -->
<div class="header-title col-sm-12">
<?php
/*--------------------------------------------------------------
logo display
--------------------------------------------------------------*/
if ( get_header_image() ) : ?>
<!-- site_title -->
<h1 class="site-title">
<a href='<?php echo esc_url( home_url( '/' ) ); ?>' title='<?php bloginfo( 'description' ); ?>' rel='home'>
<img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" />
</a>
</h1>
<!-- //site_title -->
<?php else : ?>
<!-- site_title -->
<h1 class='site-title'>
<a href='<?php echo esc_url( home_url( '/' ) ); ?>' title='<?php bloginfo( 'description' ); ?>' rel='home'><?php bloginfo( 'name' ); ?></a>
</h1>
<!-- //site_title -->
<?php endif; //logo display end ?>
</div>
<!-- //header_title -->
</div>
</header>
<!-- //header -->
<?php if( is_front_page() )://toppage display ?>
<!-- Mainvisu -->
<?php
if(get_option('')){
}else{
echo '<div class="mainvisu row">';
get_template_part( 'parts/parts', 'slider' );
echo '</div>';
}
?>
<!-- //Mainvisu -->
<?php endif; ?>
<!-- contents -->
<div id="contents" class="row">