forked from livecanvas-team/picostrap5
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
40 lines (30 loc) · 1.05 KB
/
Copy pathheader.php
File metadata and controls
40 lines (30 loc) · 1.05 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
<?php
// Exit if accessed directly.
defined('ABSPATH') || exit;
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<!-- wp_head -->
<?php wp_head(); ?>
<!-- /wp_head -->
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php
// Custom filter to check if header elements should be displayed. To disable, use: add_filter('picostrap_enable_header_elements', '__return_false');
if (apply_filters('picostrap_enable_header_elements', true)):
//check if LC option is set to "Handle Header"
if (!function_exists('lc_custom_header')) {
//use the built-in theme header elements
get_template_part( 'partials/header', 'optional-topbar' );
get_template_part( 'partials/header', 'navbar' );
} else {
//use the LiveCanvas Custom Header
lc_custom_header();
}
endif;
?>
<main id='theme-main'>