-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
82 lines (73 loc) · 2.66 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @package minimalista
* @since 1.0.0
* @author Alexandre Kozoubsky
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*/
// Prevent direct access to the file
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly
}
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header class="navbar navbar-expand-lg navbar-dark bg-primary">
<nav class="container flex-wrap flex-lg-nowrap" aria-label="Main navigation">
<!-- <div class="d-lg-none" style="width: 4.25rem;"></div> -->
<?php
if ( has_custom_logo() ) {
echo minimalista_get_custom_logo('d-inline-block custom-logo-link navbar-brand', 'd-inline-block custom-logo align-middle rounded-circle', 60 );
} else {
echo minimalista_display_site_name('d-inline-block site-name navbar-brand');
}
?>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<?php
wp_nav_menu( array(
'theme_location' => 'menu-1',
'menu_id' => 'primary-menu',
'container' => false,
//'menu_class' => 'navbar-nav me-auto mb-2 mb-lg-0',
'menu_class' => 'navbar-nav me-auto',
'fallback_cb' => '__return_false',
'depth' => 2,
'walker' => new Bootstrap_Nav_Walker(),
) );
?>
</div>
<!-- </div> -->
</nav>
<?php if ( get_header_image() ) : ?>
<div class="">
<div class="custom-header">
<img src="<?php header_image(); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
</div>
</div>
<?php endif; ?>
</header>
<?php if ( function_exists('bcn_display') && !is_front_page()) {
echo '<div class="container-breadcrumb" typeof="BreadcrumbList" vocab="https://schema.org/">';
echo '<div class="container">';
echo '<nav aria-label="breadcrumb">';
bcn_display();
echo '</nav>';
echo '</div><!-- ./container -->';
echo '</div><!-- ./container-breadcrumb -->';
} ?>
<div id="content" class="site-content">