-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·39 lines (29 loc) · 1.12 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta property="og:title" content="<?php the_title(); ?>" />
<meta property="og:site_name" content="<?php bloginfo('name') ?>">
<?php
/* Theme color for browsers that support it
<meta name="theme-color" content="#589dd5">
*/
?>
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php endif; ?>
<?php if (is_search()) { ?>
<meta name="robots" content="noindex, nofollow" />
<?php } ?>
<?php if ( is_singular() && comments_open() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<?php // Site URL
$url = is_post_type_archive('testimonial') ? ' data-url="' . esc_url(home_url()) . '"' : ''; ?>
<body <?php body_class(); ?><?php echo $url; ?>>
<?php // Header
get_template_part('parts/global/site-header');
// Main Content ?>
<main>