-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
103 lines (95 loc) · 2.97 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
<?php
/**
*
* Silverclean WordPress Theme by Iceable Themes | https://www.iceablethemes.com
*
* Copyright 2013-2020 Iceable Themes - https://www.iceablethemes.com
*
* Header Template
*
*/
?><!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if ( gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]-->
<link rel="profile" href="http://gmpg.org/xfn/11" />
<?php if ( is_singular() && pings_open() ) : ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
endif;
wp_head();
?>
</head>
<body <?php body_class(); ?>>
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open( );
} else {
do_action( 'wp_body_open' );
}
?>
<div id="main-wrap">
<div id="header">
<div class="container">
<div id="logo">
<a href="<?php echo esc_url( home_url() ); ?>" title='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>' rel='home'>
<?php
if ( get_theme_mod( 'silverclean_logo' ) ) :
?>
<h1 class="site-title" style="display:none;"><?php bloginfo( 'name' ); ?></h1>
<img src="<?php echo esc_url( get_theme_mod( 'silverclean_logo' ) ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
<?php
else :
?>
<h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
<?php
endif;
?>
</a>
</div>
<?php
if ( get_bloginfo( 'description' ) ) :
?>
<div id="tagline"><?php bloginfo( 'description' ); ?></div>
<?php
endif;
?>
</div>
</div>
<div id="navbar" class="container">
<div class="menu-container">
<?php
wp_nav_menu(
array(
'theme_location' => 'primary',
'items_wrap' => '<ul id="%1$s" class="%2$s sf-menu">%3$s</ul>',
)
);
silverclean_dropdown_nav_menu();
?>
</div>
<div id="nav-search">
<?php get_search_form(); ?>
</div>
</div>
<?php
if ( get_custom_header()->url ) :
if (
( is_front_page() && 'off' !== get_theme_mod( 'home_header_image' ) )
|| ( is_page() && ! is_front_page() && 'off' !== get_theme_mod( 'pages_header_image' ) )
|| ( is_single() && 'off' !== get_theme_mod( 'single_header_image' ) )
|| ( ! is_front_page() && ! is_singular() && 'off' !== get_theme_mod( 'blog_header_image' ) )
|| ( is_404() )
) :
?>
<div id="header-image" class="container">
<img src="<?php header_image(); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" alt='' />
</div>
<?php
endif;
endif;