-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
36 lines (25 loc) · 686 Bytes
/
header.php
File metadata and controls
36 lines (25 loc) · 686 Bytes
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
<?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 darwinconsulting
*/
if( function_exists( 'myprefix_get_theme_option' ) ) {
$header = myprefix_get_theme_option( 'header-style' );
if( $header ) {
if( $header == '2' ) {
get_template_part( 'header', 'style-1' );
} else {
get_template_part( 'header', 'default' );
}
} else {
get_template_part( 'header', 'default' );
}
} else {
get_template_part( 'header', 'default' );
}
?>