| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * The template for displaying the header |
|---|
| 4 | * |
|---|
| 5 | * Displays all of the head element and everything up until the "body-content-wrapper" div. |
|---|
| 6 | * |
|---|
| 7 | */ |
|---|
| 8 | ?><!DOCTYPE html> |
|---|
| 9 | <html <?php language_attributes(); ?>> |
|---|
| 10 | <head> |
|---|
| 11 | <meta charset="<?php bloginfo('charset'); ?>" /> |
|---|
| 12 | <?php |
|---|
| 13 | if ( is_singular() && pings_open() ) : |
|---|
| 14 | printf( '<link rel="pingback" href="%s">' . "\n", get_bloginfo( 'pingback_url' ) ); |
|---|
| 15 | endif; |
|---|
| 16 | ?> |
|---|
| 17 | <meta name="viewport" content="width=device-width" /> |
|---|
| 18 | <?php wp_head(); ?> |
|---|
| 19 | </head> |
|---|
| 20 | <body <?php body_class(); ?>> |
|---|
| 21 | <div id="body-content-wrapper"> |
|---|
| 22 | |
|---|
| 23 | <header id="header-main-fixed"> |
|---|
| 24 | |
|---|
| 25 | <div id="header-content-wrapper"> |
|---|
| 26 | |
|---|
| 27 | <div id="header-logo"> |
|---|
| 28 | <?php |
|---|
| 29 | if ( function_exists( 'the_custom_logo' ) ) : |
|---|
| 30 | |
|---|
| 31 | the_custom_logo(); |
|---|
| 32 | |
|---|
| 33 | endif; |
|---|
| 34 | |
|---|
| 35 | $header_text_color = get_header_textcolor(); |
|---|
| 36 | |
|---|
| 37 | if ( 'blank' !== $header_text_color ) : |
|---|
| 38 | ?> |
|---|
| 39 | <div id="site-identity"> |
|---|
| 40 | |
|---|
| 41 | <a href="<?php echo esc_url( home_url('/') ); ?>" |
|---|
| 42 | title="<?php esc_attr( get_bloginfo('name') ); ?>"> |
|---|
| 43 | |
|---|
| 44 | <h1 class="entry-title"> |
|---|
| 45 | <?php echo esc_html( get_bloginfo('name') ); ?> |
|---|
| 46 | </h1> |
|---|
| 47 | </a> |
|---|
| 48 | <strong> |
|---|
| 49 | <?php echo esc_html( get_bloginfo('description') ); ?> |
|---|
| 50 | </strong> |
|---|
| 51 | </div> |
|---|
| 52 | <?php |
|---|
| 53 | endif; |
|---|
| 54 | ?> |
|---|
| 55 | </div><!-- #header-logo --> |
|---|
| 56 | |
|---|
| 57 | <nav id="navmain"> |
|---|
| 58 | <?php wp_nav_menu( array( 'theme_location' => 'primary', |
|---|
| 59 | 'fallback_cb' => 'wp_page_menu', |
|---|
| 60 | ) ); ?> |
|---|
| 61 | </nav><!-- #navmain --> |
|---|
| 62 | |
|---|
| 63 | <div class="clear"> |
|---|
| 64 | </div><!-- .clear --> |
|---|
| 65 | |
|---|
| 66 | </div><!-- #header-content-wrapper --> |
|---|
| 67 | |
|---|
| 68 | <div class="clear"> |
|---|
| 69 | </div><!-- .clear --> |
|---|
| 70 | |
|---|
| 71 | </header><!-- #header-main-fixed --> |
|---|
| 72 | |
|---|
| 73 | <?php /** |
|---|
| 74 | * Display Slider and Homepage widgets |
|---|
| 75 | */ |
|---|
| 76 | ?> |
|---|
| 77 | <?php if ( is_front_page() && get_option( 'show_on_front' ) == 'page' ) : ?> |
|---|
| 78 | |
|---|
| 79 | <?php if (get_theme_mod('multisport_slider_display', 0) == 1) : |
|---|
| 80 | |
|---|
| 81 | multisport_display_slider(); |
|---|
| 82 | endif; |
|---|
| 83 | ?> |
|---|
| 84 | |
|---|
| 85 | <?php get_sidebar('home'); ?> |
|---|
| 86 | |
|---|
| 87 | <?php endif; ?> |
|---|