header.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. <!-- Google Chrome Frame for IE -->
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <title><?php wp_title(''); ?></title>
  11. <!-- 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.0"/>
  15. <!-- 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. <!-- 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. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
  25. <!-- wordpress head functions -->
  26. <?php wp_head(); ?>
  27. <!-- end of wordpress head -->
  28. <!-- drop Google Analytics Here -->
  29. <!-- end analytics -->
  30. </head>
  31. <body <?php body_class(); ?>>
  32. <div id="container">
  33. <header class="header" role="banner">
  34. <div id="inner-header" class="wrap cf">
  35. <?php // to use a image just replace the bloginfo('name') with your img src and remove the surrounding <p> ?>
  36. <p id="logo" class="h1"><a href="<?php echo home_url(); ?>" rel="nofollow"><?php bloginfo('name'); ?></a></p>
  37. <?php // if you'd like to use the site description you can un-comment it below ?>
  38. <?php // bloginfo('description'); ?>
  39. <nav role="navigation">
  40. <?php wp_nav_menu(array(
  41. 'container' => false, // remove nav container
  42. 'container_class' => 'menu cf', // class of container (should you choose to use it)
  43. 'menu' => __( 'The Main Menu', 'bonestheme' ), // nav name
  44. 'menu_class' => 'nav top-nav cf', // adding custom nav class
  45. 'theme_location' => 'main-nav', // where it's located in the theme
  46. 'before' => '', // before the menu
  47. 'after' => '', // after the menu
  48. 'link_before' => '', // before each link
  49. 'link_after' => '', // after each link
  50. 'depth' => 0, // limit the depth of the nav
  51. 'fallback_cb' => 'bones_main_nav_fallback' // fallback function
  52. )); ?>
  53. </nav>
  54. </div> <?php // end #inner-header ?>
  55. </header> <?php // end header ?>