-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
58 lines (47 loc) · 2.08 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
<?php
/**
* The template for displaying the header
*
* @package CardanoPress Bootstrap
* @since 0.1.0
*/
?>
<!DOCTYPE html>
<html class="no-js" <?php language_attributes(); ?>>
<head>
<script type="text/javascript">document.documentElement.className = document.documentElement.className.replace( 'no-js', 'js' );</script>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<a class="screen-reader-text" href="#site-content"><?php esc_html_e( 'Skip to content', 'cardanopress-bootstrap' ); ?></a>
<header class="site-header navbar navbar-expand-xl navbar-light">
<nav class="container flex-wrap flex-xl-nowrap">
<?php
if ( has_custom_logo() ) {
the_custom_logo();
} else {
cardanopress_bootstrap_logo( 'navbar-brand fs-1 fw-bold' );
}
?>
<div class="d-xl-none">
<?php echo do_shortcode('[cardanopress_template name="part/modal-trigger" if="!isConnected"]'); ?>
<?php echo do_shortcode('[cardanopress_template name="menu-dropdown" if="isConnected"]'); ?>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse flex-grow-0" id="navbarSupportedContent">
<?php cardanopress_bootstrap_primary_menu( 'navbar-nav' ); ?>
<div class="d-none d-xl-block ms-xl-5">
<?php echo do_shortcode('[cardanopress_template name="part/modal-trigger" if="!isConnected"]'); ?>
<?php echo do_shortcode('[cardanopress_template name="menu-dropdown" if="isConnected"]'); ?>
</div>
</div>
</nav>
</header><!-- .site-header -->
<div id="site-content" class="site-content">
<?php get_template_part( 'template-parts/global', 'banner' ); ?>