-
Notifications
You must be signed in to change notification settings - Fork 3
/
header.php
43 lines (26 loc) · 1.65 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
<!DOCTYPE html>
<html <?php language_attributes( 'html' ); ?>>
<head>
<?php wp_head(); // Hook required for scripts, styles, and other <head> items. ?>
</head>
<body <?php hybrid_attr( 'body' ); ?>>
<div id="container">
<?php hybrid_get_menu( 'primary' ); // Loads the menu/primary.php template. ?>
<div class="wrap">
<header <?php hybrid_attr( 'header' ); ?>>
<?php if ( display_header_text() ) : // If user chooses to display header text. ?>
<div id="branding">
<?php echo get_avatar( get_option( 'admin_email' ), 320 ); ?>
<?php hybrid_site_title(); ?>
<?php hybrid_site_description(); ?>
<?php hybrid_get_menu( 'social' ); // Loads the menu/social.php template. ?>
</div><!-- #branding -->
<?php endif; // End check for header text. ?>
</header><!-- #header -->
<?php if ( get_header_image() && !display_header_text() ) : // If there's a header image but no header text. ?>
<a href="<?php echo 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 get_custom_header()->width; ?>" height="<?php echo 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. ?>