-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
52 lines (51 loc) · 2.19 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
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package MClub LA
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<?php wp_head(); ?>
<script type="text/javascript">
$(document).ready(function() {
$('#masthead_wrapper').scrollToFixed() ;
});
</script>
</head>
<body <?php body_class(); ?>>
<?php // Only insert the FB root div on singular pages (where social buttons are used)
if( is_singular() ) {
echo '<div id="fb-root"></div>';
}
?>
<div id="page" class="hfeed site">
<div id="masthead_wrapper">
<header id="masthead" class="site-header" role="banner">
<div class="site-branding">
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</div>
<a class="logo" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"><img src="<?php bloginfo('template_directory') ?>/images/logo.svg" onerror="this.onerror=null; this.src='logo.png'" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" width="155px" height="58px"></a>
<nav id="site-navigation" class="navigation-main" role="navigation">
<div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'mclub' ); ?>"><?php _e( 'Skip to content', 'mclub' ); ?></a></div>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav><!-- #site-navigation -->
<div class="search">
<?php get_search_form(); ?>
</div><!-- .search -->
</header><!-- #masthead -->
</div><!-- #masthead_wrapper -->
<div class="wrapper">
<?php if ( is_home() ) : ?>
<?php if ( ! dynamic_sidebar( 'homepage-top' ) ) {
}// end page top widget area ?>
<?php endif; ?>
<div id="main" class="site-main">