Make WordPress Themes

source: multisport/1.3.1/header.php

Last change on this file was 117518, checked in by themedropbox, 6 years ago

New version of MultiSport - 1.3.1

File size: 2.4 KB
Line 
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                <a class="skip-link screen-reader-text" href="#main-content-wrapper">
22                        <?php _e( 'Skip to content', 'multisport' ); ?>
23                </a>
24                <div id="body-content-wrapper">
25                       
26                        <header id="header-main-fixed">
27
28                                <div id="header-content-wrapper">
29
30                                        <div id="header-logo">
31                                                <?php
32                                                        if ( function_exists( 'the_custom_logo' ) ) :
33
34                                                                the_custom_logo();
35
36                                                        endif;
37
38                                                        $header_text_color = get_header_textcolor();
39
40                                                    if ( 'blank' !== $header_text_color ) :
41                                                ?>   
42                                                        <div id="site-identity">
43
44                                                                <a href="<?php echo esc_url( home_url('/') ); ?>"
45                                                                        title="<?php esc_attr( get_bloginfo('name') ); ?>">
46
47                                                                        <h1 class="entry-title">
48                                                                                <?php echo esc_html( get_bloginfo('name') ); ?>
49                                                                                </h1>
50                                                                </a>
51                                                                <strong>
52                                                                        <?php echo esc_html( get_bloginfo('description') ); ?>
53                                                                </strong>
54                                                        </div>
55                                                <?php
56                                                    endif;
57                                                ?>
58                                        </div><!-- #header-logo -->
59
60                                        <nav id="navmain">
61                                                <?php wp_nav_menu( array( 'theme_location' => 'primary',
62                                                                                                  'fallback_cb'    => 'wp_page_menu',
63                                                                                                  ) ); ?>
64                                        </nav><!-- #navmain -->
65                                       
66                                        <div class="clear">
67                                        </div><!-- .clear -->
68
69                                </div><!-- #header-content-wrapper -->
70
71                                <div class="clear">
72                                </div><!-- .clear -->
73
74                        </header><!-- #header-main-fixed -->
75
76                        <?php /**
77                               * Display Slider and Homepage widgets
78                               */
79                        ?>
80                        <?php if ( is_front_page() && get_option( 'show_on_front' ) == 'page' ) : ?>
81                                       
82                                        <?php if (get_theme_mod('multisport_slider_display', 0) == 1) :
83
84                                                                multisport_display_slider();
85                                                  endif;
86                                        ?>
87
88                                        <?php get_sidebar('home'); ?>
89                                       
90                        <?php endif; ?>
91                       
Note: See TracBrowser for help on using the repository browser.