forked from olefredrik/FoundationPress
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
59 lines (52 loc) · 2.2 KB
/
header.php
File metadata and controls
59 lines (52 loc) · 2.2 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
<?php
/**
* The template for displaying the header
*
* Displays all of the head element and everything up until the "container" div.
*
* @package FoundationPress
* @since FoundationPress 1.0.0
*/
?>
<!doctype html>
<html class="no-js" <?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(); ?>>
<?php get_template_part( 'template-parts/mobile-off-canvas' ); ?>
<?php do_action( 'bp_above_header' ); ?>
<div class="limit-width-wrap">
<header class="site-header" role="banner">
<div class="site-title-bar title-bar">
<div class="title-bar-title">
<span class="site-mobile-title title-bar-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><img class="mobile-site-logo" src="<?php echo bp_site_logo_src(); ?>" alt="Button Poetry Home"></a>
</span>
</div>
<div class="title-bar-right">
<?php /* This code is an in-progress/potential feature for a mini-cart on hover on small through medium screens.
set_query_var( 'bp_titlebar', true );
ob_start();
get_template_part('template-parts/bp-mini-cart', null, ['titlebar' => true]);
$bp_mini_cart = ob_get_contents();
ob_end_clean();
set_query_var( 'bp_titlebar', false );
*/?>
<a href="<?php echo wc_get_cart_url(); ?>" data-toggle="bp-mini-cart"><img aria-label="Cart" class="title-bar-cart" src="<?php echo bp_mini_cart_src() ?>"></a><?php /* echo $bp_mini_cart */ ?>
<button aria-label="<?php _e( 'Main Menu', 'foundationpress' ); ?>" class="menu-icon" type="button" data-toggle="<?php foundationpress_mobile_menu_id(); ?>"></button>
</div>
</div>
<nav class="site-navigation top-bar" role="navigation" id="<?php foundationpress_mobile_menu_id(); ?>">
<div class="top-bar-left">
<div class="site-desktop-title top-bar-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><img class="desktop-site-logo" src="<?php echo bp_site_logo_src(); ?>" alt="Button Poetry Home"></a></a>
</div>
</div>
<div class="top-bar-right">
<?php foundationpress_top_bar_r(); ?>
</div>
</nav>
</header>