-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
61 lines (58 loc) · 2.85 KB
/
Copy pathheader.php
File metadata and controls
61 lines (58 loc) · 2.85 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
<?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 senator-wp-theme
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header id="top-header" class="fixed-lg-top bg-white" role="banner">
<!-- Top Toolbar -->
<div class="toolbar-area d-none d-lg-block px-xl-4 bg-yellow">
<?php if (is_active_sidebar('top-toolbar')) : ?>
<?php dynamic_sidebar('top-toolbar'); ?>
<?php endif; ?>
</div>
<!-- Top header -->
<div class="top-header-menu">
<div class="container px-xl-4">
<nav class="navbar navbar-expand-xl navbar-theme chakra-petch-font">
<?php if (get_theme_mod('senator_wp_theme_logo')) : ?>
<a href="<?php echo esc_url(home_url('/')); ?>" title="<?php echo esc_attr(get_bloginfo('name')); ?>" class="navbar-brand align-items-center top-logo flex-column">
<!-- <img src="<?php echo esc_url(str_replace('http://', 'https://', get_theme_mod('senator_wp_theme_logo'))); ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>"> -->
<img src="<?php echo esc_url(get_theme_mod('senator_wp_theme_logo')); ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>">
</a>
<?php endif; ?>
<button class="navbar-toggler navbar-dark rounded-0" type="button" data-bs-toggle="collapse" data-bs-target="#main-menu" aria-controls="main-menu" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-md-end" id="main-menu">
<?php
wp_nav_menu(array(
'theme_location' => 'main-menu',
'container' => false,
'menu_class' => '',
'fallback_cb' => '__return_false',
'items_wrap' => '<ul id="%1$s" class="navbar-nav mb-2 mb-md-0 %2$s">%3$s</ul>',
'depth' => 3,
'walker' => new bs5_Walker()
));
?>
</div>
</nav>
</div>
</div>
</header>