This repository was archived by the owner on Nov 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathheader.php
70 lines (55 loc) · 1.86 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* The template for displaying the header.
*
* This is the template that displays all of the head section,
* the site branding (logo, title, description) and the main menu.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Marianne
* @since Marianne 1.0
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<?php wp_head(); ?>
</head>
<?php
$marianne_body_class = ' color-scheme-' . esc_attr( marianne_get_theme_mod( 'colors_scheme' ) );
$marianne_body_class .= ' link-hover-' . esc_attr( marianne_get_theme_mod( 'colors_link_hover' ) );
if ( true === marianne_get_theme_mod( 'marianne_global_font_smooth' ) ) {
$marianne_body_class .= ' font-smooth';
}
if ( true === marianne_get_theme_mod( 'marianne_global_text_shadow' ) ) {
$marianne_body_class .= ' text-shadow';
}
?>
<body <?php body_class( $marianne_body_class ); ?>>
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
}
?>
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'marianne' ); ?></a>
<div id="page" class="site">
<?php
$marianne_header_class = 'site-header';
$marianne_header_class .= ' site-header-align-' . esc_attr( marianne_get_theme_mod( 'marianne_header_align' ) );
?>
<header id="header" <?php marianne_add_class( $marianne_header_class, false ); ?> role="banner">
<?php
$marianne_logo_class = 'site-logo';
if ( true === marianne_get_theme_mod( 'marianne_header_logo_round' ) ) {
$marianne_logo_class .= ' image-circular';
}
marianne_logo( $marianne_logo_class );
marianne_site_title();
marianne_site_description();
if ( 'header' === marianne_get_theme_mod( 'marianne_social_location' ) ) {
marianne_social_link( 'header' );
}
marianne_menu_primary();
?>
</header>