-
Notifications
You must be signed in to change notification settings - Fork 8
/
header.php
executable file
·60 lines (48 loc) · 1.72 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
<?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 buddyx
*/
namespace BuddyX\Buddyx;
?>
<!doctype html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<?php do_action( 'buddyx_head_top' ); ?>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
<?php do_action( 'buddyx_head_bottom' ); ?>
</head>
<body <?php body_class(); ?>>
<?php do_action( 'buddyx_body_top' ); ?>
<?php buddyx_site_loader(); ?>
<?php buddyx_wp_body_open(); ?>
<div id="page" class="site">
<?php do_action( 'buddyx_page_top' ); ?>
<a class="skip-link screen-reader-text" href="<?php echo esc_url( '#primary' ); ?>"><?php esc_html_e( 'Skip to content', 'buddyx' ); ?></a>
<?php do_action( 'buddyx_header_before' ); ?>
<?php if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'header' ) ) { ?>
<div class="site-header-wrapper">
<div class="container">
<header id="masthead" class="site-header">
<?php get_template_part( 'template-parts/header/custom_header' ); ?>
<?php get_template_part( 'template-parts/header/branding' ); ?>
<?php get_template_part( 'template-parts/header/navigation' ); ?>
</header><!-- #masthead -->
</div>
</div>
<?php } ?>
<?php do_action( 'buddyx_header_after' ); ?>
<?php
$classes = get_body_class();
if ( ! in_array( 'page-template-full-width', $classes ) ) {
?>
<div class="container">
<?php } ?>