-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathheader.php
82 lines (78 loc) · 2.67 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
<?php
/**
* The Header for our theme
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Boron
* @since Boron 1.0
*/
?><!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<?php
global $boron_site_width, $boron_layout_type;
$form_class = '';
$class = '';
$search_string = '';
?>
<body <?php body_class(); ?>>
<?php do_action('ase_theme_body_inside_top'); ?>
<div id="page" class="hfeed site">
<div id="main" class="site-main container">
<?php
$navigation_bg = get_theme_mod('boron_navigation_background', get_template_directory_uri() . '/images/navigation-bg.png');
if ( $navigation_bg ) {
$navigation_style = 'background: url(' . esc_url($navigation_bg) . ');';
} else {
$navigation_style = 'background-color: rgba(0,0,0,0.5);';
}
$title = get_theme_mod('boron_nav_title');
$description = get_theme_mod('boron_nav_description');
?>
<div class="site-small-logo">
<?php if ( function_exists( 'the_custom_logo' ) ) {
the_custom_logo();
} ?>
</div>
<?php if ( get_option('show_on_front') == 'posts' ) { ?>
<span class="single-post-close"><span class="close-icon"></span></span>
<?php } else if ( get_queried_object_id() != get_option('page_on_front') ) { ?>
<span class="single-post-close"><span class="close-icon"></span></span>
<?php } ?>
<div class="site-navigation" style="<?php echo $navigation_style; ?>">
<div class="navigation-wrapper">
<span class="main-search icon-search"></span>
<div class="site-logo">
<?php if ( function_exists( 'the_custom_logo' ) ) {
the_custom_logo();
} ?>
</div>
<?php if ( $title ) { ?>
<h1 class="navigation-title"><?php echo esc_html($title); ?></h1>
<?php } ?>
<?php if ( $description ) { ?>
<p class="navigation-description"><?php echo esc_html($description); ?></p>
<?php } ?>
</div>
<div class="navigation-copyright"><?php printf( __( 'Theme by %s', 'boron' ), '<a href="https://cohhe.com" target="_blank">Cohhe</a>' ); ?></div>
<?php if ( function_exists('boron_navigation_social') ) { echo boron_navigation_social(); } ?>
</div>
<div class="main-search-form">
<?php get_search_form(); ?>
</div>