-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
71 lines (64 loc) · 2.5 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
<?php
/**
* Product Page Header
*
* @package WordPress
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/assets/ico/favicon.png" />
<?php
wp_head();
include('parts/google-analytics.php');
?>
</head>
<body <?php body_class(); ?>>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" style="padding:10px" href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/logo.png" width="140" alt="<?php bloginfo('name');?> Logo">
</a>
<div class="navbar-header" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse" onClick="jQuery('#support-modal').modal('show');">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<?php
wp_nav_menu(
array(
'menu' => 'main-menu',
'container_class' => 'collapse navbar-collapse',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => '',
'menu_id' => 'main-menu',
'walker' => new CC_Walker_Nav_Menu()
)
);
?>
</div>
<div class="collapse navbar-collapse">
<form class="navbar-form navbar-left" id="search-form" role="search" method="get" action="/">
<div class="input-group navbar-search">
<input type="text" class="form-control" placeholder="<?php if(get_search_query() == ''){echo 'Search';}else{echo get_search_query();};?>" name="s">
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
</form>
<ul class="nav navbar-nav navbar-right">
<li><button type="button" class="btn btn-default navbar-btn">Support</button></li>
</ul>
</div><!--navbar collapse-->
</div><!--navbar container-->
</div><!--navbar-->