-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathheader-split.php
More file actions
129 lines (109 loc) · 4.38 KB
/
Copy pathheader-split.php
File metadata and controls
129 lines (109 loc) · 4.38 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package listeo
*/
?><!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 href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet">
<?php wp_head(); ?>
</head>
<body <?php if(get_option('listeo_dark_mode')){ echo 'id="dark-mode"';} ?> <?php body_class(); ?>>
<?php wp_body_open(); ?>
<!-- Wrapper -->
<div id="wrapper">
<?php do_action('listeo_after_wrapper'); ?>
<!-- Header Container
================================================== -->
<header id="header-container" class="fixed fullwidth">
<!-- Header -->
<div id="header">
<div class="container">
<!-- Left Side Content -->
<div class="left-side" >
<div id="logo">
<?php
$logo = get_option( 'pp_logo_upload', '' );
$logo_retina = get_option( 'pp_retina_logo_upload', '' );
if($logo) {
if(is_front_page()){ ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" rel="home"><img src="<?php echo esc_url($logo); ?>" data-rjs="<?php echo esc_url($logo_retina); ?>" alt="<?php esc_attr(bloginfo('name')); ?>"/></a>
<?php } else { ?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo esc_url($logo); ?>" data-rjs="<?php echo esc_url($logo_retina); ?>" alt="<?php esc_attr(bloginfo('name')); ?>"/></a>
<?php }
} else {
if(is_front_page()) { ?>
<h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php } else { ?>
<h2><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h2>
<?php }
}
?>
</div>
<!-- Mobile Navigation -->
<div class="mmenu-trigger <?php if (wp_nav_menu( array( 'theme_location' => 'primary', 'echo' => false )) == false) { ?> hidden-burger <?php } ?>">
<button class="hamburger hamburger--collapse" type="button">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
</div>
<!-- Main Navigation -->
<nav id="navigation" class="style-1">
<?php wp_nav_menu( array(
'theme_location' => 'primary',
'menu_id' => 'responsive',
'container' => false,
'walker' => new listeo_megamenu_walker
) ); ?>
</nav>
<div class="clearfix"></div>
<!-- Main Navigation / End -->
</div>
<!-- Left Side Content / End -->
<?php
$my_account_display = get_option('listeo_my_account_display', true );
$submit_display = get_option('listeo_submit_display', true );
if($my_account_display != false || $submit_display != false ) : ?>
<!-- Right Side Content / End -->
<div class="right-side">
<div class="header-widget">
<?php
if(class_exists('Listeo_Core_Template_Loader')):
$template_loader = new Listeo_Core_Template_Loader;
$template_loader->get_template_part( 'account/logged_section' );
endif;
?>
</div>
</div>
<!-- Right Side Content / End -->
<?php endif; ?>
</div>
</div>
<!-- Header / End -->
</header>
<?php
if( true == $my_account_display) : ?>
<!-- Sign In Popup -->
<div id="sign-in-dialog" class="zoom-anim-dialog mfp-hide">
<div class="small-dialog-header">
<h3><?php esc_html_e('Sign In','listeo'); ?></h3>
</div>
<!--Tabs -->
<div class="sign-in-form style-1">
<?php do_action('listeo_login_form'); ?>
</div>
</div>
<!-- Sign In Popup / End -->
<?php endif; ?>
<div class="clearfix"></div>
<!-- Header Container / End -->