This repository has been archived by the owner on Nov 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
44 lines (42 loc) · 1.64 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
<?php
/*
* header.php
* ----------
* PHP: Header included at the top of all site pages
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class() ?> style="margin-top: 80px;">
<!--<div class="global-message-alert">
This website is brand new and still being tested, if you see something that's not working properly please let me know by email: <a href="mailto:tem512@york.ac.uk">tem512@york.ac.uk</a>
</div>-->
<header id="masthead" class="site-header" role="banner">
<?php if ( get_header_image() ) { ?>
<img id="header-image" src="<?php header_image(); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="">
<?php } else { ?>
<img id="header-image" src="<?php echo get_template_directory_uri(); ?>/images/header-image.jpg" alt="Some mountains somewhere" />
<?php } ?>
<a href="<?php echo site_url(); ?>" title="YUMC Home">
<h1 id="logo"><?php bloginfo( "name" ); ?></h1>
</a>
<div class="nav-container">
<div class="clear"></div>
<nav id="primary-menu" class="grid_16 prefix_4">
<?php
wp_nav_menu(
array(
'theme_location' => 'primary',
'container' => false,
)
);
?>
</nav>
<div class="clear"></div>
</div>
</header>