-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
106 lines (69 loc) · 2.95 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
<?php
/**
* @package Academica
*/
?><!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" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
wp_body_open();
?>
<?php $header_image = get_header_image(); ?>
<div id="header" class="clearfix" <?php if ( ! empty( $header_image ) ) : ?> style="background-image: url('<?php echo $header_image; ?>');" <?php endif; ?>>
<?php if ( ! empty( $header_image ) ) : ?><div class="header_overlay"><?php endif; ?>
<div class="inner-wrap">
<div id="logo" class="<?php academica_logo_position(); ?>">
<?php if ( ! academica_has_logo() ) : ?> <h1 id="site-title"> <?php endif; ?>
<a href="<?php echo esc_url( home_url() ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> - <?php bloginfo( 'description' ); ?>" rel="home">
<?php
if ( ! academica_has_logo() ) :
bloginfo( 'name' );
else:
academica_logo();
endif;
?>
</a>
<?php if ( ! academica_has_logo() ) : ?> </h1> <?php endif; ?>
<p id="site-description"><?php bloginfo( 'description' ); ?></p>
</div><!-- end #logo -->
</div><!-- end .inner-wrap -->
<div id="main-nav">
<div class="inner-wrap">
<nav class="main-navbar" role="navigation">
<div class="navbar-header">
<?php if (has_nav_menu( 'primary' )) { ?>
<a class="navbar-toggle" href="#menu-main-slide">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<?php wp_nav_menu( array(
'container_id' => 'menu-main-slide',
'theme_location' => 'primary'
) );
} ?>
</div>
<div id="navbar-main">
<?php if (has_nav_menu( 'primary' )) {
wp_nav_menu( array(
'menu_class' => 'nav navbar-nav dropdown sf-menu',
'theme_location' => 'primary'
) );
} ?>
</div><!-- #navbar-main -->
</nav><!-- .navbar -->
<div id="search">
<?php get_search_form(); ?>
</div><!-- end #search -->
</div><!-- end .inner-wrap -->
</div><!-- end #main-nav -->
<?php if ( ! empty( $header_image ) ) : ?></div><!-- end .header_overlay --><?php endif; ?>
</div><!-- end #header -->
<div id="wrap">