-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·46 lines (40 loc) · 1.26 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
<?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 WordPress
* @subpackage Stuff
* @since 1.0
* @version 1.0
*/
?><!DOCTYPE HTML>
<html <?php language_attributes(); ?> class="no-js no-svg">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php endif; ?>
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
$preloader_on = get_theme_mod('stuff_enable_preloader', true);
if($preloader_on){
echo '<div class="colorlib-loader"></div>';
}
?>
<div id="page">
<?php stuff_header(); ?>
<?php
if(is_front_page() && is_home() && get_theme_mod('stuff_enable_front_slider', true)){
echo postSlider();
} else {
stuff_subheader();
}
?>