This repository was archived by the owner on Apr 2, 2024. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathheader.php
More file actions
144 lines (131 loc) · 7.73 KB
/
Copy pathheader.php
File metadata and controls
144 lines (131 loc) · 7.73 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
<?php header( 'X-UA-Compatible: IE=Edge' ); ?>
<!doctype html>
<!--[if lte IE 8]><html class="no-js lte-ie8" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><? wp_title( '|', true, 'right' ); ?> <?php echo get_bloginfo('name'); ?></title>
<? wp_head(); ?>
</head>
<body <? body_class(); ?>>
<? FoundationSkeleton::getGridOverlay(); ?>
<div id="wrapper">
<a class="skip-link screen-reader-text" href="#section-content">Skip to content</a>
<? if( has_nav_menu( 'top-menu', 'foundation_skeleton' ) ): ?>
<div id="section-top-menu">
<div class="row">
<div class="<?php echo FoundationSkeleton::getColumns( 'menus:top_menu' );?> columns fskelMenu">
<?php wp_nav_menu(array(
'container' => '',
'fallback_cb' => false,
'menu_class' => 'top-menu clearfix',
'theme_location' => 'top-menu',
'depth' => 1
));?>
</div>
</div>
</div>
<? endif; ?>
<div id="section-header">
<?php if( ($class = FoundationSkeleton::areaEnabled( 'header:widget_prefix' )) !== false ): ?>
<div id="zone-header-prefix" class="<?php echo $class;?>">
<div class="row">
<div id="widget-header-prefix" class="<?php echo FoundationSkeleton::getColumns( 'header:widget_prefix' );?> columns">
<?php dynamic_sidebar( 'header-widget_prefix' ); ?>
</div>
</div>
</div>
<?php endif; // widget prefix ?>
<div id="zone-header-branding">
<div class="row">
<?php if( ($class = FoundationSkeleton::areaEnabled( 'header:widget_first' )) !== false ): ?>
<div id="widget-header-first" class="<?php echo FoundationSkeleton::getColumns( 'header:widget_first' );?> columns <?php echo $class;?>">
<?php dynamic_sidebar( 'header-widget_first' ); ?>
</div>
<?php endif; // widget first ?>
<div class="logo-title <?php echo FoundationSkeleton::getColumns( 'header:branding' );?> columns">
<? if( get_header_image() ): ?>
<h1 class="logo"><a href="<?php echo home_url('/'); ?>" title="<?php echo esc_attr( get_bloginfo('name', 'display') ); ?>" rel="home">
<img src="<?php header_image(); ?>" title="<?php echo esc_attr( get_bloginfo('name', 'display') ); ?>" alt="<?php echo esc_attr( get_bloginfo('name', 'display') ); ?>" />
</a></h1>
<? else: ?>
<h1><a href="<?php echo home_url('/'); ?>" title="<?php echo esc_attr( get_bloginfo('name', 'display') ); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>
<? endif; ?>
</div>
<?php if( ($class = FoundationSkeleton::areaEnabled( 'header:widget_second' )) !== false ): ?>
<div id="widget-header-second" class="<?php echo FoundationSkeleton::getColumns( 'header:widget_second' );?> columns <?php echo $class;?>">
<?php dynamic_sidebar( 'header-widget_second' ); ?>
</div>
<?php endif; // widget second ?>
</div>
</div>
<?php if( ($class = FoundationSkeleton::areaEnabled( 'header:widget_postfix' )) !== false ): ?>
<div id="zone-header-postfix" class="<?php echo $class;?>">
<div class="row">
<div id="widget-header-postfix" class="<?php echo FoundationSkeleton::getColumns( 'header:widget_postfix' );?> columns">
<?php dynamic_sidebar( 'header-widget_postfix' ); ?>
</div>
</div>
</div>
<?php endif; // widget postifx ?>
<?php if( has_nav_menu( 'header-menu', 'foundation_skeleton' ) ): ?>
<div id="zone-header-menu">
<div class="row">
<div class="<?php echo FoundationSkeleton::getColumns( 'menus:header_menu' );?> columns fskelMenu">
<a href="javascript:void();" class="hamburger-header"><h3><i class="fa fa-bars"></i>Menu</h3></a>
<?php wp_nav_menu(array(
'container' => '',
'fallback_cb' => false,
'menu_class' => 'header-menu clearfix',
'theme_location' => 'header-menu',
'depth' => 1,
'link_before' => '<span>',
'link_after' => '</span>'
));?>
</div>
</div>
</div>
<? endif; ?>
</div><!-- #SECTION-HEADER -->
<div id="section-content">
<?php if( ($class = FoundationSkeleton::areaEnabled( 'content:widget_prefix1,content:widget_prefix2,content:widget_prefix3,content:widget_prefix4' )) !== false ): ?>
<div id="zone-content-prefix" class="<?php echo $class;?>">
<div class="row">
<?php if( ($class = FoundationSkeleton::areaEnabled( 'content:widget_prefix1' )) !== false ): ?>
<div id="widget-content-prefix1" class="<?php echo FoundationSkeleton::getColumns( 'content:widget_prefix1' );?> columns <?php echo $class;?>">
<?php dynamic_sidebar( 'content-widget_prefix1' ); ?>
</div>
<?php endif;?>
<?php if( ($class = FoundationSkeleton::areaEnabled( 'content:widget_prefix2' )) !== false ): ?>
<div id="widget-content-prefix2" class="<?php echo FoundationSkeleton::getColumns( 'content:widget_prefix2' );?> columns <?php echo $class;?>">
<?php dynamic_sidebar( 'content-widget_prefix2' ); ?>
</div>
<?php endif;?>
<?php if( ($class = FoundationSkeleton::areaEnabled( 'content:widget_prefix3' )) !== false ): ?>
<div id="widget-content-prefix3" class="<?php echo FoundationSkeleton::getColumns( 'content:widget_prefix3' );?> columns <?php echo $class;?>">
<?php dynamic_sidebar( 'content-widget_prefix3' ); ?>
</div>
<?php endif;?>
<?php if( ($class = FoundationSkeleton::areaEnabled( 'content:widget_prefix4' )) !== false ): ?>
<div id="widget-content-prefix4" class="<?php echo FoundationSkeleton::getColumns( 'content:widget_prefix4' );?> columns <?php echo $class;?>">
<?php dynamic_sidebar( 'content-widget_prefix4' ); ?>
</div>
<?php endif;?>
</div>
</div>
<?php endif; // widget_prefix* enabled ?>
<div id="zone-content">
<div class="row">
<?php if( ($class = FoundationSkeleton::areaEnabled( 'content:widget_first' )) !== false ): ?>
<div id="widget-content-first" class="<?php echo FoundationSkeleton::getColumns( 'content:widget_first' );?> columns <?php echo $class;?>">
<?php dynamic_sidebar( 'content-widget_first' ); ?>
</div>
<?php endif; // widget first ?>
<div id="content-main" class="<?php echo FoundationSkeleton::getContentColumns();?> columns">
<?php if( ($class = FoundationSkeleton::areaEnabled( 'content:widget_top' )) !== false ): ?>
<div id="widget-content-top" class="<?php echo $class;?>">
<?php dynamic_sidebar( 'content-widget_top' ); ?>
</div>
<?php endif; // widget first ?>
<div id="content">