-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
73 lines (63 loc) · 2.1 KB
/
header.php
File metadata and controls
73 lines (63 loc) · 2.1 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head() ?>
</head>
<body <?php body_class(); ?>>
<?php if( codexin_get_option('cx_page_loader') == true ) { ?>
<!-- Site Loader started-->
<div class="cx-pageloader">
<div class="cx-pageloader-inner"></div>
</div>
<!-- Site Loader Finished-->
<?php } ?>
<div id="c-menu--slide-left" class="c-menu c-menu--slide-left">
<button class="c-menu__close">← Back</button><?php get_mobile_menu() ?>
</div>
<div id="c-mask" class="c-mask"></div>
<div id="whole" class="topbar-active whole-site-wrapper">
<header class="header">
<div class="header-top">
<div class="container">
<div class="row">
<div class="col-sm-3">
<div class="logo">
<?php
$logo_type = codexin_get_option( 'cx_logo_type' );
$text_logo = codexin_get_option( 'cx_text_logo' );
$image_logo = codexin_get_option( 'cx_image_logo' )['url'];
?>
<a class="navbar-brand" href="<?php echo esc_url( home_url() ); ?>">
<?php
if( $logo_type == 2 ) {
echo '<img src="' . esc_url( $image_logo ) . '" alt="Logo">';
} else {
echo $text_logo;
}
?>
</a>
</div>
<div id="o-wrapper" class="mobile-nav o-wrapper">
<div class="primary-nav">
<button id="c-button--slide-left" class="primary-nav-details">Menu <i class="fa fa-navicon"></i></button>
</div>
</div>
</div>
<div class="col-sm-9">
<div id="nav" class="clearfix">
<?php get_main_menu() ?>
</div>
</div>
</div>
</div> <!-- end of .container -->
</div>
<?php if ( is_front_page() ):
get_header( 'home' );
else:
get_template_part( 'lib/page-titles/page', 'title' );
endif;
?>
</header> <!-- end of #header -->