-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
159 lines (73 loc) · 2.8 KB
/
header.php
File metadata and controls
159 lines (73 loc) · 2.8 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php // Exit if accessed directly
if (!defined('ABSPATH')) {echo '<h1>Forbidden</h1>'; exit();} ?>
<!DOCTYPE html>
<?php
global $bella_options;
?>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<?php if(isset($bella_options['meta_author']) && $bella_options['meta_author']!='') : ?>
<meta name="author" content="<?php echo esc_attr($bella_options['meta_author']); ?>">
<?php else: ?>
<meta name="author" content="<?php esc_attr(bloginfo('name')); ?>">
<?php endif; ?>
<?php if(isset($bella_options['meta_author']) && $bella_options['meta_desc']!='') : ?>
<meta name="description" content="<?php echo esc_attr($bella_options['meta_desc']); ?>">
<?php endif; ?>
<?php if(isset($bella_options['meta_author']) && $bella_options['meta_keyword']!='') : ?>
<meta name="keyword" content="<?php echo esc_attr($bella_options['meta_keyword']); ?>">
<?php endif; ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
<title><?php wp_title( '|', true, 'right' );?></title>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if(isset($bella_options['favicon']['url'])) : ?>
<link rel="shortcut icon" href="<?php echo esc_url($bella_options['favicon']['url']); ?>">
<?php endif; ?>
<?php
// WordPress Head
wp_head();
?>
</head>
<!-- BEGIN BODY -->
<?php if($bella_options['theme_layout']=='1') $layout='wide'; else $layout='boxed';?>
<body id="home" <?php body_class("$layout" ); ?>>
<?php if ( isset($bella_options['preloader']) && $bella_options['preloader'] == 1 ) : ?>
<div id="preloader">
<div id="preloader-status">
<div class="spinner">
<div class="rect1"></div>
<div class="rect2"></div>
<div class="rect3"></div>
<div class="rect4"></div>
<div class="rect5"></div>
</div>
<?php if($bella_options['preloader-title']==1): ?>
<div id="preloader-title"><?php echo esc_attr(get_bloginfo('name')); ?></div>
<?php else:?>
<div id="preloader-title"><?php _e('Loading','bella')?></div>
<?php endif; ?>
</div>
</div>
<?php endif ; ?>
<!-- WRAPPER -->
<div class="wrapper">
<?php
// Navbar
get_template_part('partials/navbar');?>
<!-- CONTENT AREA -->
<div class="content-area">
<?php
$breadcrumb=1;
if($breadcrumb==1 && is_page_template('bella-page-builder.php')):
$breadcrumb=0;
endif;
if($breadcrumb==1 && is_page_template('login.php')):
$breadcrumb=0;
endif;
if($breadcrumb==1 && is_page_template('register.php')):
$breadcrumb=0;
endif;
if ($breadcrumb==1) :
get_template_part('partials/breadcrumb');
endif;