/
header.php
47 lines (42 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
47
<?php
/**
* Hi there!
*
* As opposite of other themes (where you usually find here navigation code and other), in this theme, you'll
* find only code for printing layouts of placement "Header" and "Before Content". These layouts could be
* created in WP Admin -> Layouts.
*
* Typically here will be printed (but it depends at you of course)
* - Header navigation
*/
?>
<!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, maximum-scale=1, initial-scale=1, user-scalable=0">
<?php wp_head(); ?>
</head>
<?php
$body_extra_class = array();
if( ffThemeOptions::getQuery('layout boxed-layout' ) ){
$body_extra_class[] = "boxed";
}
?>
<body <?php body_class( $body_extra_class ); ?>>
<?php
$body_extra_class = array();
if( ffThemeOptions::getQuery('layout boxed-layout' ) ){
ff_load_section_printer(
'section-background'
, ffThemeOptions::getQuery('layout background' )
);
}
?>
<div id="page-wrapper">
<?php
ffContainer()->getThemeFrameworkFactory()->getLayoutsNamespaceFactory()->getLayoutPrinter()
->printLayoutHeader()
->printLayoutBeforeContent();
?>