forked from wp-blocks/modul-r
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
32 lines (24 loc) · 995 Bytes
/
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
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta http-equiv="content-type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<?php wp_head(); ?>
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php endif;
?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div id="page" class="site">
<a class="skip-link screen-reader-text" href="#main">
<?php esc_html_e( 'Skip to content', 'modul-r' ); ?>
</a>
<?php get_template_part( 'template-parts/header/header' ); ?>
<?php if ( is_front_page() && !is_home() ) {
modul_r_hero_image();
} elseif ( !( class_exists( 'WooCommerce' ) && is_product() ) && (is_single() || is_page()) ) {
modul_r_post_image('parallax');
} ?>
<div id="content" class="site-content">