Make WordPress Themes

source: astra/3.7.6/header.php

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

New version of Astra - 3.7.4

File size: 1.4 KB
Line 
1<?php
2/**
3 * The header for Astra Theme.
4 *
5 * This is the template that displays all of the <head> section and everything up until <div id="content">
6 *
7 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
8 *
9 * @package Astra
10 * @since 1.0.0
11 */
12
13if ( ! defined( 'ABSPATH' ) ) {
14        exit; // Exit if accessed directly.
15}
16
17?><!DOCTYPE html>
18<?php astra_html_before(); ?>
19<html <?php language_attributes(); ?>>
20<head>
21<?php astra_head_top(); ?>
22<meta charset="<?php bloginfo( 'charset' ); ?>">
23<meta name="viewport" content="width=device-width, initial-scale=1">
24<link rel="profile" href="https://gmpg.org/xfn/11">
25
26<?php wp_head(); ?>
27<?php astra_head_bottom(); ?>
28</head>
29
30<body <?php astra_schema_body(); ?> <?php body_class(); ?>>
31<?php astra_body_top(); ?>
32<?php wp_body_open(); ?>
33
34<a
35        class="skip-link screen-reader-text"
36        href="#content"
37        role="link"
38        title="<?php echo esc_html( astra_default_strings( 'string-header-skip-link', false ) ); ?>">
39                <?php echo esc_html( astra_default_strings( 'string-header-skip-link', false ) ); ?>
40</a>
41
42<div
43<?php
44        echo astra_attr(
45                'site',
46                array(
47                        'id'    => 'page',
48                        'class' => 'hfeed site',
49                )
50        );
51        ?>
52>
53        <?php
54        astra_header_before();
55
56        astra_header();
57
58        astra_header_after();
59
60        astra_content_before();
61        ?>
62        <div id="content" class="site-content">
63                <div class="ast-container">
64                <?php astra_content_top(); ?>
Note: See TracBrowser for help on using the repository browser.