-
Notifications
You must be signed in to change notification settings - Fork 4
/
header.php
107 lines (97 loc) · 2.75 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?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 ThemeEgg
* @subpackage Education Master
* @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">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>><?php
/**
* Website Preloader
*
* @since 1.0.7
*/
$preloader = get_theme_mod('education_master_preloader');
if($preloader){ ?>
<div class = "body_preloader">
<div id="spinnerC" class="spinner-wrapper">
<div class="spinner" style="">
<img class="img-responsive" src="<?php echo esc_url($preloader); ?>">
</div>
</div>
</div><?php
}
?>
<?php
/**
* education_master_before_page hook
*
* @since 1.0.0
*/
do_action( 'education_master_before_page' );
?>
<div id="page" class="site">
<?php
$education_master_notice_option = get_theme_mod( 'education_master_notice_option', 'show' );
if ( $education_master_notice_option == 'show' && is_front_page() ) {
/**
* education_master_top_header hook
*
* @hooked - education_master_notice_section_start - 5
* @hooked - education_master_notice_content - 10
* @hooked - education_master_notice_section_end - 15
*
* @since 1.0.0
*/
do_action( 'education_master_notice_section' );
}
$education_master_top_header_option = get_theme_mod( 'education_master_top_header_option', 'show' );
if ( $education_master_top_header_option == 'show' ) {
/**
* education_master_top_header hook
*
* @hooked - education_master_top_header_start - 5
* @hooked - education_master_top_left_section - 10
* @hooked - education_master_top_right_section - 15
* @hooked - education_master_top_header_end - 20
*
* @since 1.0.0
*/
do_action( 'education_master_top_header' );
}
?>
<?php
/**
* education_master_header_section hook
*
* @hooked - education_master_header_section_start - 5
* @hooked - education_master_header_logo_ads_section_start - 10
* @hooked - education_master_site_branding_section - 15
* @hooked - education_master_header_ads_section - 20
* @hooked - education_master_header_logo_ads_section_end - 25
* @hooked - education_master_primary_menu_section - 30
* @hooked - education_master_header_section_end - 35
*
* @since 1.0.0
*/
do_action( 'education_master_header_section' );
?>
<div id="content" class="site-content">
<?php
if ( ! is_page_template( 'templates/template-home.php' ) ){
?>
<div class="edm-container">
<?php } ?>