-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
59 lines (46 loc) · 1.35 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
<?php
/**
* The template for displaying the header
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package cliowp
*/
$menu_params_header = array(
'theme_location' => 'header_menu_location',
'menu_class' => 'cliowp-menu-top',
'container' => 'nav',
);
$menu_params_mobile = array(
'theme_location' => 'mobile_menu_location',
'menu_class' => 'cliowp-menu-mobile',
'container' => 'nav',
);
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); // required by theme-check plugin. ?>
<header class="cliowp-header">
<div class="cliowp-mobile-menu-container">
<?php wp_nav_menu( $menu_params_mobile ); ?>
</div>
<div class="float-left">
<p><a href="<?php echo esc_html( site_url() ); ?>"><?php echo esc_html( get_bloginfo( 'name' ) ); ?></a>
</p>
</div>
<div class="float-right">
<?php wp_nav_menu( $menu_params_header ); ?>
<i class="cliowp-mobile-menu-trigger bi bi-list" aria-hidden="true"></i>
</div>
<div class="clear-both"></div>
<div class="cliowp-search-container">
<?php get_search_form(); ?>
</div>
<div class="clear-both"></div>
</header>