This repository was archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·118 lines (88 loc) · 2.53 KB
/
header.php
File metadata and controls
executable file
·118 lines (88 loc) · 2.53 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
<?php
/**
* The header for our theme.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package York Pro
* @link https://themebeans.com/themes/york-pro
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
if ( function_exists( 'wp_body_open' ) ) {
wp_body_open();
}
?>
<?php if ( ! is_404() ) : ?>
<div id="page" class="site clearfix">
<header id="masthead" class="site-header clearfix">
<div class="site-header--left">
<?php york_site_logo(); ?>
</div>
<div class="site-header--right">
<div class="hamburger mobile-menu-toggle">
<div class="hamburger-box">
<div class="hamburger-inner"></div>
</div>
</div>
</div>
</header>
<div id="content" class="site-content animsition clearfix">
<?php $entry_header = get_post_meta( $post->ID, '_bean_entry_header', true ); ?>
<?php if ( york_is_frontpage() || $entry_header ) : ?>
<header class="hero entry-header">
<div class="hero-wrapper">
<?php
if ( $entry_header ) :
$allowed_html_array = array(
'span' => array(
'class' => array(),
),
'b' => array(
'class' => array(),
),
'i' => array(),
'em' => array(),
'strong' => array(),
);
?>
<h1 class="entry-title cd-headline letters type"><?php echo wp_kses( $entry_header, $allowed_html_array ); ?></h1>
<?php else : ?>
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<?php endif; ?>
<?php
$content = $post->post_content;
if ( york_is_frontpage() && $content ) {
while ( have_posts() ) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php
the_content();
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'york-pro' ),
'after' => '</div>',
)
);
?>
</div>
</article>
<?php
endwhile;
}
?>
</div>
</header>
<?php endif; ?>
<?php
endif;