-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·90 lines (90 loc) · 3.03 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>
<?php wp_title('|', true, 'right'); ?>
</title>
<?php if (is_singular()) {
wp_enqueue_script("comment-reply");
} ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="mobile-navigation">
<ul class="mobile-menu">
<?php if (has_nav_menu('primary')) {
wp_nav_menu(array(
'theme_location' => 'primary',
'container_class' => '',
'items_wrap' => '<ul class="%2$s">%3$s</ul>',
));
} else {
wp_list_pages(array(
'container' => '',
'title_li' => ''
));
} ?>
</ul>
</div>
<!-- /mobile-navigation -->
<div id="sidebar" class="sidebar">
<div class="sidebar-inner">
<?php if (has_custom_logo()) : ?>
<div class="blog-logo"><?php the_custom_logo(); ?></div>
<h1 class="blog-name">
<a href="<?php echo esc_url(home_url()); ?>" title="<?php echo esc_attr(get_bloginfo('name')); ?> — <?php echo esc_attr(get_bloginfo('description')); ?>" rel="home"><?php echo esc_attr(get_bloginfo('name')); ?></a>
</h1>
<?php elseif (get_bloginfo('description') || get_bloginfo('name')) : ?>
<h1 class="blog-title">
<a href="<?php echo esc_url(home_url('/')); ?>" title="<?php echo esc_attr(get_bloginfo('name')); ?> — <?php echo esc_attr(get_bloginfo('description')); ?>" rel="home"><?php echo esc_attr(get_bloginfo('name')); ?></a>
</h1>
<?php endif; ?>
<h1 class="blog-social">
<?php if (has_nav_menu('social')) {
wp_nav_menu(array(
'theme_location' => 'social',
'container_class' => '',
'items_wrap' => '<ul class="%2$s">%3$s</ul>',
));
} ?>
</h1>
<a class="nav-toggle hidden" title="<?php __('Tap to view the menu', 'masonry') ?>" href="#">
<div class="bars">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="clear"></div>
</div>
</a>
<ul class="main-menu">
<?php if (has_nav_menu('primary')) {
wp_nav_menu(array(
'theme_location' => 'primary',
'container_class' => '',
'items_wrap' => '<ul class="%2$s">%3$s</ul>',
));
} else {
wp_list_pages(array(
'container' => '',
'title_li' => ''
));
} ?>
</ul>
<div class="widgets">
<?php dynamic_sidebar('sidebar'); ?>
</div>
<div class="credits">
<p>©
<?php echo date("Y") ?>
<a href="<?php echo esc_url(home_url('/')); ?>">
<?php bloginfo('name'); ?>
</a>
</p>
</div>
<div class="clear"></div>
</div>
</div>
<!-- /sidebar -->
<div class="wrapper" id="wrapper">