-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
113 lines (66 loc) · 2.49 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
<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-type" content="text/html;charset=<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" >
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="sidebar bg-mint">
<div class="sidebar-inner">
<?php if ( get_theme_mod( 'rams_logo' ) ) : ?>
<a class="blog-logo" href='<?php echo esc_url( home_url( '/' ) ); ?>' title='<?php echo esc_attr( get_bloginfo( 'title' ) ); ?> — <?php echo esc_attr( get_bloginfo( 'description' ) ); ?>' rel='home'>
<img src='<?php echo esc_url( get_theme_mod( 'rams_logo' ) ); ?>' alt='<?php echo esc_attr( get_bloginfo( 'title' ) ); ?>'>
</a>
<?php elseif ( get_bloginfo( 'description' ) || get_bloginfo( 'title' ) ) : ?>
<h1 class="blog-title">
<a href="<?php echo esc_url( home_url() ); ?>" title="<?php echo esc_attr( get_bloginfo( 'title' ) ); ?> — <?php echo esc_attr( get_bloginfo( 'description' ) ); ?>" rel="home"><?php echo esc_attr( get_bloginfo( 'title' ) ); ?></a>
</h1>
<?php endif; ?>
<a class="nav-toggle hidden" title="<?php _e('Click to view the navigation','rams') ?>" href="#">
<div class="bars">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="clear"></div>
</div>
<p>
<span class="menu"><?php _e('Menu','rams') ?></span>
<span class="close"><?php _e('Close','rams') ?></span>
</p>
</a>
<ul class="main-menu">
<?php if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu( array(
'container' => '',
'items_wrap' => '%3$s',
'theme_location' => 'primary'
) ); } else {
wp_list_pages( array(
'container' => '',
'title_li' => ''
));
}
if ( is_active_sidebar( 'main' ) ) {
dynamic_sidebar( 'main' );
} ?>
</ul>
<p class="credits"><?php _e('Theme by','rams'); ?> <a href="http://www.andersnoren.se" target="_blank">Anders Norén</a></p>
<div class="clear"></div>
</div> <!-- /sidebar-inner -->
</div> <!-- /sidebar -->
<ul class="mobile-menu bg-dark hidden">
<?php if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu( array(
'container' => '',
'items_wrap' => '%3$s',
'theme_location' => 'primary'
) ); } else {
wp_list_pages( array(
'container' => '',
'title_li' => ''
));
} ?>
</ul>
<div class="wrapper" id="wrapper">
<div class="section-inner wrapper-inner">