-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
78 lines (73 loc) · 2.53 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
71
72
73
74
75
76
77
78
<?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 Mystery Themes
* @subpackage Scholarship
* @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="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php do_action( 'scholarship_before_main' ); ?>
<div id="page" class="site">
<?php do_action( 'scholarship_before_header' ); ?>
<?php
/**
* scholarship_header_section hook.
*
* @hooked scholarship_header_section_start - 5
* @hooked scholarship_site_branding - 10
* @hooked scholarship_header_elements - 15
* @hooked scholarship_primary_menu_section - 20
* @hooked scholarship_header_section_end - 25
*/
do_action( 'scholarship_header_section' );
?>
<div id="content" class="site-content">
<?php if( ! is_page_template( 'templates/template-home.php' ) && !is_front_page() ) { ?>
<header class="entry-header">
<div class="mt-container">
<?php
if( is_single() || is_page() ) {
the_title( '<h1 class="entry-title">', '</h1>' );
}elseif( is_home() ) {
echo '<h1 class="entry-title">'. apply_filters( 'the_title', get_the_title( get_option( 'page_for_posts' ) ) ) .'</h1>';
} elseif( is_archive() ) {
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' );
} elseif( is_search() ) {
?>
<h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'scholarship' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
<?php
}
?>
</div><!-- .mt-container -->
</header><!-- .entry-header -->
<?php } ?>
<?php
if( is_front_page() ) {
/**
* scholarship_slider_section hook.
*
* @hooked scholarship_slider_wrapper_start - 5
* @hooked scholarship_slider_content - 10
* @hooked scholarship_slider_wrapper_end - 15
*/
do_action( 'scholarship_slider_section' );
}
if( ! is_page_template( 'templates/template-home.php' ) ) {
echo '<div class="mt-container">';
}
?>