2020-03-15 10:26:50 -04:00
< ? php
/**
* The Header for our theme .
*
* Displays all of the < head > section and everything up till < div id = " content " >
*/
2020-03-19 18:01:57 -04:00
2020-03-15 10:26:50 -04:00
?> <!DOCTYPE html>
<!-- [ if IE ] > < html < ? php language_attributes (); ?> class="ie"> <![endif]-->
<!-- [ if ! ( IE )] ><!--> < html < ? php language_attributes (); ?> > <!--<![endif]-->
< head >
< meta charset = " <?php bloginfo( 'charset' ); ?> " />
< link rel = " profile " href = " http://gmpg.org/xfn/11 " />
2020-03-15 21:57:21 -04:00
2020-10-30 11:01:52 -04:00
<!--
2020-03-15 10:26:50 -04:00
< script type = " text/javascript " >
WebFontConfig = {
custom : { families : [ 'OFLSortsMillGoudyRegular' , 'OFLSortsMillGoudyItalic' ],
urls : [ '<?php echo get_template_directory_uri(); ?>/fonts/OFL-Sorts-Mill-Goudy/ofl-normal.css' ,
'<?php echo get_template_directory_uri(); ?>/fonts/OFL-Sorts-Mill-Goudy/ofl-italic.css' ] }
};
( function () {
var wf = document . createElement ( 'script' );
wf . src = ( 'https:' == document . location . protocol ? 'https' : 'http' ) +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js' ;
wf . type = 'text/javascript' ;
wf . async = 'true' ;
var s = document . getElementsByTagName ( 'script' )[ 0 ];
s . parentNode . insertBefore ( wf , s );
})();
</ script >
2020-03-19 18:01:57 -04:00
< noscript >< link rel = " stylesheet " type = " text/css " media = " all " href = " <?php echo get_template_directory_uri(); ?>/css/noscript.css " /></ noscript >
2020-10-30 11:01:52 -04:00
-->
2020-03-15 10:26:50 -04:00
< 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' , 'twentyten' ), max ( $paged , $page ) );
?> </title>
< link rel = " pingback " href = " <?php bloginfo( 'pingback_url' ); ?> " />
< ? php if ( is_singular () ) wp_enqueue_script ( " comment-reply " ); ?>
< ? php wp_head (); ?>
</ head >
< body < ? php body_class (); ?> >
< div id = " wrapper " >
2020-03-19 18:01:57 -04:00
< ? php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
< ? php wp_nav_menu ( array ( 'container_class' => 'melville_menu' , 'theme_location' => 'header-menu' ) ); ?>
2020-03-15 10:26:50 -04:00
< div id = " header " >
< ? php $heading_tag = ( is_home () || is_front_page () ) ? 'h1' : 'div' ; ?>
<< ? php echo $heading_tag ; ?> id="site-title">
< a href = " <?php echo home_url( '/' ); ?> " title = " <?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> " rel = " home " >< ? php bloginfo ( 'name' ); ?> </a>
</< ? php echo $heading_tag ; ?> >
< div id = " site-description " >< ? php bloginfo ( 'description' ); ?> </div>
</ div ><!-- #header-->
2020-03-19 18:01:57 -04:00
< div id = " content " >