-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
52 lines (45 loc) · 1.74 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
48
49
50
51
52
<?php
/**
* @author Tentaz
* @since 1.0
* @version 1.0
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="//gmpg.org/xfn/11">
<?php $solida_option = get_option( 'solida_option' ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
if( ! function_exists( 'wp_body_open' ) ) {
function wp_body_open() {
do_action( 'wp_body_open' );
}
}
$tentaz_offcanvas = get_post_meta(get_queried_object_id(), 'show-off-canvas', true);
$menu_text_plus_icon = (!empty($solida_option['menu_text_plus_icon'])) ? 'sub-menu-plus-show' : '';
$page_title_align = (!empty($solida_option['breadcrumb-align'])) ? $solida_option['breadcrumb-align'] : '';
if(!empty($solida_option['off_canvas_op']) || ($tentaz_offcanvas == 'show') ): ?>
<div class="tentaz-offcanvas"></div>
<?php endif; ?>
<!--Preloader start here-->
<?php get_template_part( 'inc/header/preloader' ); ?>
<!--Preloader area end here-->
<div id="page" class="site <?php echo esc_attr($menu_text_plus_icon);?> <?php echo esc_attr($page_title_align);?>">
<?php
get_template_part('inc/header/header');
?>
<!-- End Header Menu End -->
<?php
$page_bg = get_post_meta(get_the_ID(), 'page_bg', true);
if($page_bg !='' && is_page()): ?>
<div class="tentaz-main-contain-here" style="background-image: url('<?php echo esc_url( $page_bg );?>'); ">
<?php else: ?>
<div class="tentaz-main-contain-here">
<?php endif;
?>