-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
70 lines (60 loc) · 2.84 KB
/
header.php
File metadata and controls
70 lines (60 loc) · 2.84 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
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* Header template for our theme
*
* Displays all of the <head> section and everything up till <div id="main">.
*
* Learn more: https://developer.wordpress.org/themes/template-files-section/partial-and-miscellaneous-template-files/#header-php
*
* @package WP_Basic_Bootstrap
* @since WP_Basic_Bootstrap 1.0
*/
$template = get_template_type();
$page_type = get_page_type();
$navbar_type = get_basicbootstrap_mod('navbar_type');
if (BASICBOOTSTRAP_TPLDBG) {
error_log('loaded file : '.__FILE__);
error_log('page type : '.$page_type);
error_log('applied template : '.$template);
}
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> itemscope itemtype="http://schema.org/WebPage">
<a href="#content" class="sr-only sr-only-focusable"><?php _e('Skip to main content', 'basicbootstrap'); ?></a>
<a href="#navigation" class="sr-only sr-only-focusable"><?php _e('Skip to main navigation', 'basicbootstrap'); ?></a>
<?php if (strpos($template, 'full_width')===false) : ?>
<a href="#sidebar" class="sr-only sr-only-focusable"><?php _e('Skip to page sidebar', 'basicbootstrap'); ?></a>
<?php endif; ?>
<a href="#footer" class="sr-only sr-only-focusable"><?php _e('Skip to page footer', 'basicbootstrap'); ?></a>
<?php if (strpos($navbar_type, 'fixed') !== false) : ?>
<?php get_template_part_hierarchical('partials/layout/navbar'); ?>
<?php endif; ?>
<div id="wrapper" class="hfeed">
<?php if (strpos($navbar_type, 'static') !== false) : ?>
<?php get_template_part_hierarchical('partials/layout/navbar'); ?>
<?php endif; ?>
<div class="container">
<?php get_template_part_hierarchical('partials/layout/header'); ?>
<?php if ($navbar_type == 'default') : ?>
<?php get_template_part_hierarchical('partials/layout/navbar'); ?>
<?php endif; ?>
<div class="row">
<?php if ($template == 'left_sidebar') : ?>
<?php if (is_rtl()) : ?>
<div class="col-xs-12 col-sm-9 blog-main-left" itemprop="mainContentOfPage">
<?php else : ?>
<div class="col-xs-12 col-sm-9 blog-main-right" itemprop="mainContentOfPage">
<?php endif; ?>
<?php elseif ($template == 'right_sidebar') : ?>
<div class="col-xs-12 col-sm-9 blog-main-left" itemprop="mainContentOfPage">
<?php elseif ($template == 'full_width_offset') : ?>
<div class="col-xs-12 col-sm-10 col-md-offset-1 blog-main" itemprop="mainContentOfPage">
<?php else : ?>
<div class="col-xs-12 blog-main" itemprop="mainContentOfPage">
<?php endif; ?>