-
Notifications
You must be signed in to change notification settings - Fork 73
/
header.php
45 lines (27 loc) · 1.76 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
<!DOCTYPE html>
<html <?php language_attributes( 'html' ); ?>>
<head <?php hybrid_attr( 'head' ); ?>>
<?php wp_head(); // Hook required for scripts, styles, and other <head> items. ?>
</head>
<body <?php hybrid_attr( 'body' ); ?>>
<div id="container">
<div class="skip-link">
<a href="#content" class="screen-reader-text"><?php esc_html_e( 'Skip to content', 'hybrid-base' ); ?></a>
</div><!-- .skip-link -->
<?php hybrid_get_menu( 'primary' ); // Loads the menu/primary.php template. ?>
<header <?php hybrid_attr( 'header' ); ?>>
<?php if ( display_header_text() ) : // If user chooses to display header text. ?>
<div <?php hybrid_attr( 'branding' ); ?>>
<?php hybrid_site_title(); ?>
<?php hybrid_site_description(); ?>
</div><!-- #branding -->
<?php endif; // End check for header text. ?>
</header><!-- #header -->
<?php hybrid_get_menu( 'secondary' ); // Loads the menu/secondary.php template. ?>
<?php if ( get_header_image() && ! display_header_text() ) : // If there's a header image but no header text. ?>
<a href="<?php echo esc_url( home_url() ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" rel="home"><img class="header-image" src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
<?php elseif ( get_header_image() ) : // If there's a header image. ?>
<img class="header-image" src="<?php header_image(); ?>" width="<?php echo absint( get_custom_header()->width ); ?>" height="<?php echo absint( get_custom_header()->height ); ?>" alt="" />
<?php endif; // End check for header image. ?>
<div id="main" class="main">
<?php hybrid_get_menu( 'breadcrumbs' ); // Loads the menu/breadcrumbs.php template. ?>