init commit
This commit is contained in:
122
header.php
Normal file
122
header.php
Normal file
@ -0,0 +1,122 @@
|
||||
<?php
|
||||
/**
|
||||
* The header for our theme
|
||||
*
|
||||
* This is the template that displays all of the <head> section and everything up until <div id="content">
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
||||
*
|
||||
* @package Sophia After Dark
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
?>
|
||||
<!doctype html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="profile" href="https://gmpg.org/xfn/11">
|
||||
<meta name="keywords" content="Sophia, Sophia Atkinson, SophiaLUL">
|
||||
<meta property="og:url" content="https://sophiaatkinson.com/">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="Sophia Atkinson">
|
||||
<meta property="og:image" content="https://cdn.statically.io/og/theme=dark/Sophia%20Atkinson.jpg">
|
||||
<meta name="twitter:image" content="https://cdn.statically.io/og/theme=dark/Sophia%20Atkinson.jpg">
|
||||
<link rel='dns-prefetch' href='//cdn.jsdelivr.net' />
|
||||
<p hidden>
|
||||
<a rel="me" href="https://masto.ai/@sa">Mastodon</a>
|
||||
<a rel="me" href="https://tech.lgbt/@sa">Mastodon</a>
|
||||
<a rel="me" href="https://pronouns.page/@sophialul">Pronouns.page</a>
|
||||
</p>
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
|
||||
<?php
|
||||
if ( function_exists( 'wp_body_open' ) ) {
|
||||
wp_body_open();
|
||||
} else {
|
||||
/**
|
||||
* Hook: wp_body_open
|
||||
*
|
||||
* @since 1.1.0
|
||||
*/
|
||||
do_action( 'wp_body_open' );
|
||||
}
|
||||
|
||||
/**
|
||||
* sophia_after_dark before page hook
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
do_action( 'sophia_after_dark_before_page' );
|
||||
?>
|
||||
|
||||
<div id="page" class="site">
|
||||
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip To Content', 'sophia-after-dark' ) ?></a>
|
||||
<?php
|
||||
/**
|
||||
* sophia_after_dark before header
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
do_action( 'sophia_after_dark_before_header' );
|
||||
|
||||
$sophia_after_dark_enable_top_header = get_theme_mod( 'sophia_after_dark_enable_top_header', true );
|
||||
if ( true === $sophia_after_dark_enable_top_header ) {
|
||||
/**
|
||||
* hook - sophia_after_dark_top_header
|
||||
*
|
||||
* @hooked - sophia_after_dark_top_header_start - 5
|
||||
* @hooked - sophia_after_dark_trending_section - 10
|
||||
* @hooked - sophia_after_dark_top_header_nav - 20
|
||||
* @hooked - sophia_after_dark_top_header_end - 50
|
||||
*/
|
||||
do_action( 'sophia_after_dark_top_header' );
|
||||
}
|
||||
|
||||
/**
|
||||
* sophia_after_dark main header
|
||||
*
|
||||
* @hooked - sophia_after_dark_main_header_start - 5
|
||||
* @hooked - sophia_after_dark_site_branding - 10
|
||||
* @hooked - sophia_after_dark_menu_wrapper_start - 15
|
||||
* @hooked - sophia_after_dark_header_main_menu - 20
|
||||
* @hooked - sophia_after_dark_menu_icon_wrapper_start - 25
|
||||
* @hooked - sophia_after_dark_menu_social_icons - 30
|
||||
* @hooked - sophia_after_dark_menu_search_icon - 35
|
||||
* @hooked - sophia_after_dark_menu_icon_wrapper_end - 40
|
||||
* @hooked - sophia_after_dark_menu_wrapper_end - 45
|
||||
* @hooked - sophia_after_dark_main_header_end - 50
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
do_action( 'sophia_after_dark_main_header' );
|
||||
|
||||
if ( is_front_page() ) {
|
||||
/**
|
||||
* hook - front_slider_section
|
||||
* displays front top section before archive blogs.
|
||||
*/
|
||||
do_action( 'sophia_after_dark_front_slider_section' );
|
||||
}
|
||||
|
||||
if ( ! is_front_page() ) {
|
||||
/**
|
||||
* sophia_after_dark_innerpage_header hook
|
||||
*
|
||||
* @hooked - sophia_after_dark_innerpage_header_start - 5
|
||||
* @hooked - sophia_after_dark_innerpage_header_title - 10
|
||||
* @hooked - sophia_after_dark_breadcrumb_content - 15
|
||||
* @hooked - sophia_after_dark_innerpage_header_end - 20
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
do_action( 'sophia_after_dark_innerpage_header' );
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="content" class="site-content">
|
||||
<div class="mt-container">
|
Reference in New Issue
Block a user