header.php 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!doctype html>
  2. <!--[if lt IE 7]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->
  3. <!--[if (IE 7)&!(IEMobile)]><html <?php language_attributes(); ?> class="no-js lt-ie9 lt-ie8"><![endif]-->
  4. <!--[if (IE 8)&!(IEMobile)]><html <?php language_attributes(); ?> class="no-js lt-ie9"><![endif]-->
  5. <!--[if gt IE 8]><!--> <html <?php language_attributes(); ?> class="no-js"><!--<![endif]-->
  6. <head>
  7. <meta charset="utf-8">
  8. <?php // force Internet Explorer to use the latest rendering engine available ?>
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <title><?php wp_title(''); ?></title>
  11. <?php // mobile meta (hooray!) ?>
  12. <meta name="HandheldFriendly" content="True">
  13. <meta name="MobileOptimized" content="320">
  14. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  15. <?php // icons & favicons (for more: http://www.jonathantneal.com/blog/understand-the-favicon/) ?>
  16. <link rel="apple-touch-icon" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-icon-touch.png">
  17. <link rel="icon" href="<?php echo get_template_directory_uri(); ?>/favicon.png">
  18. <!--[if IE]>
  19. <link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico">
  20. <![endif]-->
  21. <?php // or, set /favicon.ico for IE10 win ?>
  22. <meta name="msapplication-TileColor" content="#f01d4f">
  23. <meta name="msapplication-TileImage" content="<?php echo get_template_directory_uri(); ?>/library/images/win8-tile-icon.png">
  24. <meta name="theme-color" content="#121212">
  25. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
  26. <?php // wordpress head functions ?>
  27. <?php wp_head(); ?>
  28. <?php // end of wordpress head ?>
  29. <?php // drop Google Analytics Here ?>
  30. <?php // end analytics ?>
  31. </head>
  32. <body <?php body_class(); ?> itemscope itemtype="http://schema.org/WebPage">
  33. <div id="container">
  34. <header class="header" role="banner" itemscope itemtype="http://schema.org/WPHeader">
  35. <div id="inner-header" class="wrap cf">
  36. <?php // to use a image just replace the bloginfo('name') with your img src and remove the surrounding <p> ?>
  37. <p id="logo" class="h1" itemscope itemtype="http://schema.org/Organization"><a href="<?php echo home_url(); ?>" rel="nofollow"><?php bloginfo('name'); ?></a></p>
  38. <?php // if you'd like to use the site description you can un-comment it below ?>
  39. <?php // bloginfo('description'); ?>
  40. <nav role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">
  41. <?php wp_nav_menu(array(
  42. 'container' => false, // remove nav container
  43. 'container_class' => 'menu cf', // class of container (should you choose to use it)
  44. 'menu' => __( 'The Main Menu', 'bonestheme' ), // nav name
  45. 'menu_class' => 'nav top-nav cf', // adding custom nav class
  46. 'theme_location' => 'main-nav', // where it's located in the theme
  47. 'before' => '', // before the menu
  48. 'after' => '', // after the menu
  49. 'link_before' => '', // before each link
  50. 'link_after' => '', // after each link
  51. 'depth' => 0, // limit the depth of the nav
  52. 'fallback_cb' => '' // fallback function (if there is one)
  53. )); ?>
  54. </nav>
  55. </div>
  56. </header>