<?php /** * The Header for our theme. * * Displays all of the <head> section and everything up till <div id="content"> */ ?><!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" /> <!-- <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> <noscript><link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/css/noscript.css" /></noscript> --> <style> #panel { padding: 5px; text-align: left; background-color: #e5eecc; border: solid 1px #c3c3c3; /* column-count: 4; */ padding: 20px; display: none; margin: 0 0 20px 0; } .bar1, .bar2, .bar3 { width: 35px; height: 5px; background-color: #777; margin: 6px 0; transition: 0.4s; } .change .bar1 { -webkit-transform: rotate(-45deg) translate(-9px, 6px); transform: rotate(-45deg) translate(-9px, 6px); } .change .bar2 {opacity: 0;} .change .bar3 { -webkit-transform: rotate(45deg) translate(-8px, -8px); transform: rotate(45deg) translate(-8px, -8px); } #flip { margin: -40px 0 0 90%; } </style> <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();?> <script> jQuery(document).ready(function(){ jQuery("#flip").click(function(){ jQuery("#panel").slideToggle(); jQuery("#flip").toggleClass("change"); }); }); </script> </head> <body <?php body_class(); ?>> <div id="wrapper"> <?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. */ ?> <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--> <div id="flip"> <div class="bar1"></div> <div class="bar2"></div> <div class="bar3"></div></div> <div id="panel"> <?php wp_nav_menu( array( 'container_class' => 'melville_header_menu', 'theme_location' => 'slidedown-menu' ) ); ?> <?php get_sidebar( 'slidedown' ); ?> <div style="clear: both"></div> </div> <div id="content">