-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
99 lines (80 loc) · 2.68 KB
/
header.php
File metadata and controls
99 lines (80 loc) · 2.68 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
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Header Template
*
* Here we setup all logic and XHTML that is required for the header section of all screens.
*
* @package WooFramework
* @subpackage Template
*/
global $woo_options, $woocommerce;
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>"/>
<title><?php woo_title( '' ); ?></title>
<?php woo_meta(); ?>
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>"/>
<?php
wp_head();
woo_head();
?>
</head>
<body <?php body_class(); ?>>
<?php woo_top(); ?>
<div id="wrapper">
<!--<div class='col-full top-login'>-->
<?php woo_header_before(); ?>
<!--</div>-->
<header id="header">
<div id="fixed-header" class="fixed">
<div class="col-full">
<?php woo_header_inside(); ?>
<a id="logo-mobile" href="http://genfinplan.com/" title="Financial Planning and Wealth Management services for Battle Creek, MI.">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/Generations-Financial-Planning-Logo-small.png" alt="Generations Financial Planning & Wealth Management">
</a>
<hgroup>
<span class="nav-toggle"><a
href="#navigation"><span><?php _e( 'Navigation', 'woothemes' ); ?></span></a></span>
<h1 class="site-title"><a
href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</hgroup>
<?php woo_nav_before(); ?>
<nav id="navigation" role="navigation">
<?php
if ( function_exists( 'has_nav_menu' ) && has_nav_menu( 'primary-menu' ) ) {
wp_nav_menu( array( 'depth' => 6,
'sort_column' => 'menu_order',
'container' => 'ul',
'menu_id' => 'main-nav',
'menu_class' => 'nav fl',
'theme_location' => 'primary-menu'
) );
} else {
?>
<ul id="main-nav" class="nav fl">
<?php if ( is_page() ) {
$highlight = 'page_item';
} else {
$highlight = 'page_item current_page_item';
} ?>
<li class="<?php echo $highlight; ?>"><a
href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php _e( 'Home', 'woothemes' ); ?></a>
</li>
<?php wp_list_pages( 'sort_column=menu_order&depth=6&title_li=&exclude=' ); ?>
</ul><!-- /#nav -->
<?php } ?>
</nav>
<!-- /#navigation -->
<?php woo_nav_after(); ?>
</div>
<!-- /.col-full -->
</div>
<!-- /#fixed-header -->
</header>
<!-- /#header -->
<?php woo_content_before(); ?>