forked from mattowc/code-drnp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
107 lines (91 loc) · 4.6 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
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
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php truethemes_meta_hook();// action hook, see truethemes_framework/global/hooks.php ?>
<title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?>" href="<?php bloginfo('rss2_url'); ?>" />
<meta property="og:title" content="drNONPROFIT"/>
<meta property="og:type" content="blog"/>
<meta property="og:url" content="<?php bloginfo('url'); ?>"/>
<meta property="og:image" content="<?php bloginfo('url'); ?>/wp-content/uploads/drNONPROFIT2.png" />
<?php wp_head(); ?>
<!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/lt8.css" media="screen"/>
<![endif]-->
<?php if(!is_page('checkout')): ?>
<link rel="stylesheet" href="<?php bloginfo('url'); ?>/wp-content/themes/Karma/css/bootstrap.css" type="text/css" media="all" />
<?php endif; ?>
</head>
<body <?php body_class(); ?>>
<div id="wrapper" <?php if (is_page_template('template-homepage-3D.php') || is_page_template('template-homepage-jquery-2.php')) {echo 'class="big-banner"';} ?>>
<div id="header" <?php if (is_page_template('template-homepage-3D.php')){echo "style='height: 560px;'";} ?>>
<?php
// retrieve values from site options panel
global $ttso;
$ka_sitelogo = $ttso->ka_sitelogo;
$ka_logo_icon = $ttso->ka_logo_icon;
$ka_logo_text = $ttso->ka_logo_text;
$ka_toolbar = $ttso->ka_toolbar;
// show the toolbar if selected by the user :
if ($ka_toolbar == "true"):
?>
<div class="top-block">
<div class="top-holder">
<?php truethemes_before_top_toolbar_menu_hook();// action hook, see truethemes_framework/global/hooks.php ?>
<?php if(has_nav_menu('Top Toolbar Navigation')): ?>
<div class="toolbar-left">
<ul>
<?php wp_nav_menu(array('theme_location' => 'Top Toolbar Navigation' , 'depth' => 0 , 'container' =>false )); ?>
</ul>
</div><!-- end toolbar-left -->
<div class="toolbar-right" style="margin-right:30px;">
<ul>
<!--<li class="menu-item menu-item-type-custom menu-item-object-custom">
<a href="https://foxandfrank.com/wp-login.php">Login</a>
</li>-->
<li class="menu-item menu-item-type-custom menu-item-object-custom">
<a href="https://foxandfrank.com/store/cart">Shopping Cart</a>
</li>
</ul>
</div>
<?php
//if top toolbar menu not set, we show dynamic sidebar
elseif(is_active_sidebar(1)):
?>
<div class="toolbar-left">
<ul><?php dynamic_sidebar("Toolbar - Left Side"); ?></ul>
</div><!-- end toolbar-left -->
<?php endif; ?>
<?php if(is_active_sidebar(2)): ?>
<div class="toolbar-right">
<?php dynamic_sidebar("Toolbar - Right Side"); ?>
</div><!-- end toolbar-right -->
<?php endif; ?>
<?php truethemes_after_top_toolbar_menu_hook();// action hook, see truethemes_framework/global/hooks.php ?>
</div><!-- end top-holder -->
</div><!-- end top-block -->
<?php endif; //end if($toolbar == 'true') ?>
<?php truethemes_before_header_holder_hook();// action hook, see truethemes_framework/global/hooks.php ?>
<div class="header-holder">
<div class="rays">
<div class="header-area<?php if (is_search()) {echo ' search-header';} ?><?php if (is_404()) {echo ' error-header';} ?><?php if (is_page_template('template_sitemap.php')) {echo ' search-header';} ?>">
<?php // Website Logo
if ($ka_logo_text == ''){
?>
<a href="<?php echo home_url(); ?>" class="logo"><img src="<?php echo $ka_sitelogo; ?>" alt="<?php bloginfo('name'); ?>" /></a>
<?php }else{?>
<a href="<?php echo home_url(); ?>" class="custom-logo"><img src="<?php echo get_template_directory_uri(); ?>/images/_global/<?php echo $ka_logo_icon; ?>" alt="<?php bloginfo('name'); ?>" /><span class="logo-text"><?php echo $ka_logo_text; echo '</span></a>';}?>
<?php truethemes_before_primary_navigation_hook();// action hook, see truethemes_framework/global/hooks.php ?>
<?php if( is_page( 7459 ) ): ?>
<div style="display:inline-block; max-width:300px; margin-top: 80px; margin-left: 25px">
<?php echo do_shortcode('[contact-form-7 id="7458" title="Header Form"]'); ?>
</div>
<?php endif; ?>
<?php if(has_nav_menu('Primary Navigation')): ?>
<ul id="menu-main-nav">
<?php wp_nav_menu(array('theme_location' => 'Primary Navigation' , 'depth' => 0 , 'container' =>false , 'walker' => new description_walker() )); ?>
</ul>
<?php endif; ?>
<?php truethemes_after_primary_navigation_hook();// action hook, see truethemes_framework/global/hooks.php ?>