-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathheader.php
More file actions
154 lines (152 loc) · 5.21 KB
/
header.php
File metadata and controls
154 lines (152 loc) · 5.21 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?php
namespace KVSun;
begin_file(__FILE__);
$url = \shgysk8zer0\Core\URL::getInstance();
?>
<!DOCTYPE html>
<html <?php html_schema(); ?> <?php language_attributes(); ?>>
<head>
<!-- Meta info -->
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="referrer" content="origin-when-cross-origin"/>
<meta name="viewport" content="width=device-width, height=device-height" />
<meta name="robots" content="index,noarchive">
<base href="/" />
<?php if (file_exists(MANIFEST)): $manifest = json_decode(file_get_contents(MANIFEST));?>
<meta name="mobile-web-app-capable" content="yes" />
<meta name="theme-color" content="<?=$manifest->theme_color?>" />
<meta property="fb:app_id" content="" />
<meta name="og:title" content="<?php is_home() ? wp_title( '|', true, 'right' ) : the_title();?>" />
<meta name="og:description" content="<?=$manifest->description?>" />
<meta name="og:image" content="<?=get_template_directory_uri(); ?>/images/sun-icons/32.png" />
<meta name="twitter:site" content="@kvsun" />
<meta name="twitter:title" content="<?php is_home() ? wp_title( '|', true, 'right' ) : the_title();?>" />
<meta name="twitter:description" content="<?=$manifest->description?>" />
<meta name="twitter:image" content="<?=get_template_directory_uri(); ?>/images/sun-icons/32.png" />
<meta name="twitter:card" content="summary_large_image" />
<link rel="manifest" href="<?=get_template_directory_uri() . '/' . basename(MANIFEST)?>" />
<?php if(@is_array($manifest->icons)) : foreach($manifest->icons as $icon):?>
<link rel="icon" sizes="<?=$icon->sizes?>" href="<?=$icon->src?>" type="<?=$icon->type?>" />
<link rel="apple-touch-icon" sizes="<?=$icon->sizes?>" href="<?=$icon->src?>" type="<?=$icon->type?>" />
<?php endforeach; endif;?>
<?php endif;?>
<?php if(is_single()) { ?>
<meta itemprop="name" content="<?php the_title(); ?>" />
<meta itemprop="url" name="url" content="<?=$url?>" />
<?php } else { ?>
<meta itemprop="name" content="<?php is_home() ? wp_title( '|', true, 'right' ) : the_title();?>" />
<?php } ?>
<!-- Title -->
<?php global $bresponZive_tpcrn_data;?>
<title><?php is_home() ? wp_title( '|', true, 'right' ) : the_title();?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<?php if($bresponZive_tpcrn_data['custom_favicon']): ?>
<link rel="shortcut icon" href="<?=esc_url($bresponZive_tpcrn_data['custom_favicon']); ?>" />
<?php endif;?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!-- CSS + jQuery + JavaScript -->
<script src="<?=get_template_directory_uri(); ?>/js/jquery.min.js"></script>
<?php wp_head();?>
</head>
<body <?php body_class();?>>
<!-- #wrapper -->
<div id="wrapper" class="container-fluid clearfix">
<!-- /#Header -->
<div id="">
<div id="header">
<div id="head-content" class="clearfix ">
<!-- Logo -->
<div id="logo">
<?php
if($bresponZive_tpcrn_data['custom_logo'] !='') {
if($bresponZive_tpcrn_data['custom_logo']) {
$logo = $bresponZive_tpcrn_data['custom_logo'];
} else {
$logo = get_template_directory_uri() . '/images/logo.png';
}
?>
<a href="<?=esc_url( home_url( '/' ) );?>" title="<?php bloginfo( 'name' ); ?>" rel="home">
<img src="<?=esc_url($logo); ?>" alt="<?php bloginfo( 'name' ) ?>" />
</a>
<?php } else { ?>
<?php if (is_home()) { ?>
<h1><a href="<?=esc_url( home_url( '/' ) );?>" title="<?php bloginfo( 'name' ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a></h1>
<span>
<?php bloginfo( 'description' ); ?>
</span>
<?php } else { ?>
<h2><a href="<?=esc_url( home_url( '/' ) );?>" title="<?php bloginfo( 'name' ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a></h2>
<?php } } ?>
</div>
<?php
if ( has_nav_menu('topNav') ){
?>
<!-- #CatNav -->
<div id="btn-nav" class="top-right-nav mobile-nav">
<?php
if ( is_user_logged_in() ) {
wp_nav_menu(array(
'menu' => 'Restrict_menu',
'theme_location' => 'restrictMenu',
'container'=> '',
'menu_id'=> '',
'menu_class'=> 'container clearfix',
'fallback_cb' => 'false',
'depth' => 3
));
} else {
wp_nav_menu(array(
'menu' => 'Top Menu',
'theme_location' => 'topNav',
'container'=> '',
'menu_id'=> '',
'menu_class'=> ' container clearfix',
'fallback_cb' => 'false',
'depth' => 3
));
}
?>
</div>
<!-- /#CatNav --->
<?php } ?>
<!-- /#Logo -->
</div>
</div>
<!-- /#Header -->
</div>
</div>
<?php if (is_home()) { ?>
<div id="catnav" class="secondary sticky mobile-nav container-fluid menu-part" itemscope itemtype="http://schema.org/SiteNavigationElement">
<?php wp_nav_menu(array(
'theme_location' => 'mainNav',
'container' => '',
'menu_id' => 'catmenu',
'menu_class' => 'catnav clearfix',
'fallback_cb' => 'false',
'depth' => 3
));?>
</div>
<!-- Slider start ---->
<div class="slide-top">
<img src ="<?=get_template_directory_uri(); ?>/images/sun.svg" />
</div>
<?php } else { if ( has_nav_menu('mainNav') ){ ?>
<!-- #CatNav -->
<div id="catnav" class="secondary mobile-nav container-fluid">
<?php wp_nav_menu(array(
'theme_location' => 'mainNav',
'container' => '',
'menu_id' => 'catmenu',
'menu_class' => 'catnav clearfix',
'fallback_cb' => 'false',
'depth' => 3
));?>
<!-- /#CatNav -->
</div>
<?php }} ?>
<div class="container-fluid clearfix"><div>
<?php end_file(__FILE__);?>