-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
55 lines (51 loc) · 2.1 KB
/
header.php
File metadata and controls
55 lines (51 loc) · 2.1 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<?php wp_head(); ?>
</head>
<body id="<?php print get_stylesheet(); ?>" <?php body_class(); ?>>
<?php do_action( 'body_top' ); ?>
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
} else {
do_action( 'wp_body_open' );
} ?>
<a class="skip-content" href="#main"><?php esc_html_e( 'Press "Enter" to skip to content', 'period' ); ?></a>
<div id="overflow-container" class="overflow-container">
<?php do_action( 'before_header' ); ?>
<?php
// Elementor `header` location
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'header' ) ) :
?>
<header class="site-header" id="site-header" role="banner">
<div class="max-width">
<div id="title-container" class="title-container">
<?php get_template_part( 'logo' ) ?>
<?php if ( get_bloginfo( 'description' ) ) {
echo '<p class="tagline">' . esc_html( get_bloginfo( 'description' ) ) . '</p>';
} ?>
</div>
<button id="toggle-navigation" class="toggle-navigation" name="toggle-navigation" aria-expanded="false">
<span class="screen-reader-text"><?php echo esc_html_x( 'open menu', 'verb: open the menu', 'period' ); ?></span>
<?php echo ct_period_svg_output( 'toggle-navigation' ); ?>
</button>
<div id="menu-primary-container" class="menu-primary-container">
<div class="icon-container">
<?php ct_period_social_icons_output(); ?>
<?php get_template_part( 'content/search-bar' ); ?>
</div>
<?php get_template_part( 'menu', 'primary' ); ?>
</div>
</div>
</header>
<?php endif; ?>
<?php do_action( 'after_header' ); ?>
<div id="primary-container" class="primary-container">
<div class="max-width">
<section id="main" class="main" role="main">
<?php do_action( 'main_top' );
if ( function_exists( 'yoast_breadcrumb' ) ) {
yoast_breadcrumb( '<p id="breadcrumbs">', '</p>' );
}