Make WordPress Themes

source: multisport/1.5.8/header.php

Last change on this file was 154409, checked in by themedropbox, 4 years ago

New version of MultiSport - 1.4.4

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