This repository was archived by the owner on May 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
99 lines (74 loc) · 3.58 KB
/
header.php
File metadata and controls
99 lines (74 loc) · 3.58 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
<?php
/**
* The template for displaying the header.
* Contains the opening tag for the page structure
*
* This file is a copy of the parent template, but without a search bar.
*/
?><!DOCTYPE html>
<!--[if lt IE 7]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html <?php language_attributes(); ?> class="no-js lt-ie9"><![endif]-->
<!--[if gt IE 8]><!--> <html <?php language_attributes(); ?> class="no-js"><!--<![endif]-->
<head>
<meta charset="UTF-8">
<title><?php
/*
* Print the <title> tag based on what is being viewed.
*/
global $page, $paged;
wp_title( '|', true, 'right' );
// Add the blog name.
bloginfo( 'name' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
echo " | $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
echo ' | ' . sprintf( __( 'Page %s', 'uu-template' ), max( $paged, $page ) );
?></title>
<base href="<?php get_site_url(); ?>">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<?php // icons & favicons (for more: http://www.jonathantneal.com/blog/understand-the-favicon/) ?>
<link rel="apple-touch-icon" href="<?php echo get_template_directory_uri(); ?>/images/apple-icon-touch.png">
<?php if(function_exists('get_field') && get_field('uu_options_custom_favicon', 'options') ) {
$favicon_image = get_field('uu_options_custom_favicon', 'options');
$favicon = $favicon_image['url'];
} else {
$favicon = get_template_directory_uri() . '/images/favicon.ico';
} ?>
<link rel="icon" href="<?php echo $favicon; ?>">
<!--[if IE]><link rel="shortcut icon" href="<?php echo $favicon; ?>">
<![endif]-->
<meta name="msapplication-TileColor" content="#ffcd00">
<meta name="msapplication-TileImage" content="<?php echo get_template_directory_uri(); ?>/images/win8-tile-icon.png">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<!-- Open Graph Meta Tags for Facebook and LinkedIn Sharing !-->
<meta property="og:title" content="<?php the_title(); ?>"/>
<?php if ( $site_description && ( is_home() || is_front_page() ) )
{ $og_desc = ' | $site_description'; } else { $og_desc = get_the_excerpt(); } ?>
<meta property="og:description" content="<?php echo $og_desc; ?>" />
<meta property="og:url" content="<?php the_permalink(); ?>" />
<?php
if(function_exists('get_field') && get_field('uu_options_site_share_image', 'options') ) {
$fb_image = get_field('uu_options_site_share_image', 'options');
?>
<meta property="og:image" content="<?php echo $fb_image['url']; ?>" />
<?php } else { ?>
<meta property="og:image" content="<?php header_image(); ?>" />
<?php } ?>
<meta property="og:type" content="<?php
if (is_single() || is_page()) { echo "article"; } else { echo "website";} ?>" />
<meta property="og:site_name" content="<?php bloginfo('name'); ?>" />
<!-- End Open Graph Meta Tags !-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> data-spy="scroll" data-target="#sidebarnav">
<div id="page">
<?php if( get_field('uu_options_brandbar', 'option') ) {} else {get_template_part( 'parts/brandbar');} ?>
<a class="skip-link sr-only" href="#content"><?php _e( 'Skip to content', 'uu2014' ); ?></a>
<?php uu_main_navigation(); ?>