forked from olefredrik/FoundationPress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
81 lines (69 loc) · 3.42 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
<!doctype html>
<html class="no-js" <?php language_attributes(); ?> >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php if ( is_category() ) {
echo 'Category Archive for "'; single_cat_title(); echo '" | '; bloginfo( 'name' );
} elseif ( is_tag() ) {
echo 'Tag Archive for "'; single_tag_title(); echo '" | '; bloginfo( 'name' );
} elseif ( is_archive() ) {
wp_title(''); echo ' Archive | '; bloginfo( 'name' );
} elseif ( is_search() ) {
echo 'Search for "'.esc_html($s).'" | '; bloginfo( 'name' );
} elseif ( is_home() || is_front_page() ) {
bloginfo( 'name' ); echo ' | '; bloginfo( 'description' );
} elseif ( is_404() ) {
echo 'Error 404 Not Found | '; bloginfo( 'name' );
} elseif ( is_single() ) {
wp_title('');
} else {
echo wp_title( ' | ', 'false', 'right' ); bloginfo( 'name' );
} ?></title>
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/app.css" />
<link rel="icon" href="<?php echo get_template_directory_uri(); ?>/assets/img/icons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo get_template_directory_uri(); ?>/assets/img/icons/apple-touch-icon-144x144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo get_template_directory_uri(); ?>/assets/img/icons/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo get_template_directory_uri(); ?>/assets/img/icons/apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="<?php echo get_template_directory_uri(); ?>/assets/img/icons/apple-touch-icon-precomposed.png">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php do_action('foundationPress_after_body'); ?>
<div class="off-canvas-wrap">
<div class="inner-wrap">
<?php do_action('foundationPress_layout_start'); ?>
<nav class="tab-bar show-for-small-only">
<section class="left-small">
<a class="left-off-canvas-toggle menu-icon" ><span></span></a>
</section>
<section class="middle tab-bar-section">
<h1 class="title"><?php bloginfo( 'name' ); ?></h1>
</section>
</nav>
<aside class="left-off-canvas-menu">
<?php foundationPress_mobile_off_canvas(); ?>
</aside>
<div class="top-bar-container contain-to-grid show-for-medium-up">
<nav class="top-bar" data-topbar="">
<ul class="title-area">
<li class="name">
<h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1>
</li>
</ul>
<section class="top-bar-section">
<?php foundationPress_top_bar_l(); ?>
<?php foundationPress_top_bar_r(); ?>
</section>
</nav>
</div>
<header class="row" role="banner">
<div class="small-12 columns">
<h1><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
<h4 class="subheader"><?php bloginfo('description'); ?></h4>
<hr/>
</div>
</header>
<section class="container" role="document">
<?php do_action('foundationPress_after_header'); ?>
<div class="row">