-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
39 lines (28 loc) · 1.33 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
<!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, initial-scale=1.0">
<?php wp_head(); ?>
</head>
<body class="body-wrapper" <?php body_class(); ?>>
<?php
// Retrieve the csf saved option value
$options = get_option('wp10ms_options');
wp_body_open( );
// get_template_part('template-parts/global-elements/preloader');
if ( isset( $options['header-select'] ) && $options['header-select'] === 'header-1' ) {
// This is header v1 here
get_template_part('template-parts/header-sections/header-1');
} elseif ( isset( $options['header-select'] ) && $options['header-select'] === 'header-2' ) {
// This is header v5 here
get_template_part('template-parts/header-sections/header-2');
} elseif ( isset( $options['header-select'] ) && $options['header-select'] === 'header-3' ) {
// This is header v5 here
get_template_part('template-parts/header-sections/header-3');
} elseif ( isset( $options['header-select'] ) && $options['header-select'] === 'header-4' ) {
// This is header v5 here
get_template_part('template-parts/header-sections/header-4');
}
?>