-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·37 lines (37 loc) · 1.31 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ) ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header class="simple-page" style="background-image: url('<?php echo get_theme_mod( "c2x_background" ); ?>');">
<nav class="header">
<a href="<?php echo home_url("/"); ?>">
<div class="logo">
<?php if (has_custom_logo()): ?>
<img src="<?php echo wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ) , 'full' )[0]; ?>">
<?php else: ?>
<?php bloginfo('name'); ?>
<?php endif ?>
</div>
</a>
<div class="menu-bars">
<i class="fa fa-bars"></i>
</div>
<?php
if( has_nav_menu( 'header' ) ){
wp_nav_menu([
'theme_location' => 'header',
'menu_class' => 'header-menu',
'container' => false,
'fallback_cb' => false,
'depth' => 1,
'link_after' => '<span></span>'
]);
}
?>
</nav>
</header>
<div class="page-loader"><div class="loader">Loading...</div></div>