Repository navigation
Expand file tree
/
Copy pathheader.php
More file actions
58 lines (49 loc) · 2.1 KB
/
Copy pathheader.php
File metadata and controls
58 lines (49 loc) · 2.1 KB
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
<?php
/**
* @package Anila
*
*/
/* ========================
* Header Template Page
* ========================
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta name="description" content="<?php bloginfo( 'description' ); ?>">
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php if( is_singular() && pings_open( get_queried_object() ) ):?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ) ?>">
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="preloader">
<div class="sk-folding-cube">
<div class="sk-cube1 sk-cube"></div>
<div class="sk-cube2 sk-cube"></div>
<div class="sk-cube4 sk-cube"></div>
<div class="sk-cube3 sk-cube"></div>
</div>
</div>
<!--Mainmenu-area-->
<header class="header">
<?php get_option( 'anila_activate_sidebar' ) == ('1') ? $withSide = 'with-side' : $withSide = '' ;?>
<?php if ( ! empty ( get_option( 'anila_header_type' ) )) {
$header = key( get_option( 'anila_header_type' ));
//require(locate_template('template-parts/header-'.$header.'.php'));
get_template_part( 'template-parts/header-'.$header.'', get_post_format() );
} else {
echo 'Choose Header type from the Theme Settings';
}
?>
<?php get_option( 'anila_activate_sidebar' ) == ('1') ? get_template_part( 'template-parts/sidebar', get_post_format() ) : print(''); ?>
<!-- @TODO Move jumbotron and slider to template parts -->
<!-- @TODO check if image or slider is selected -->
<!-- @TODO create field image or color for the background -->
<?php get_option( 'anila_activate_slider' ) == ('1') ? get_template_part( 'template-parts/slider', get_post_format() ) : get_template_part( 'template-parts/jumbotron', get_post_format() ); ?>
</header>