header.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. ?>
  3. <!DOCTYPE html>
  4. <!--[if lt IE 7]> <html <?php language_attributes();?> class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
  5. <!--[if IE 7]> <html <?php language_attributes();?> class="no-js lt-ie9 lt-ie8"> <![endif]-->
  6. <!--[if IE 8]> <html <?php language_attributes();?> class="no-js lt-ie9"> <![endif]-->
  7. <!--[if gt IE 8]><!--> <html <?php language_attributes();?> class="no-js"> <!--<![endif]-->
  8. <head>
  9. <meta charset="<?php bloginfo('charset');?>">
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  11. <title><?php wp_title('|', true, 'right');?><?php bloginfo('name');?></title>
  12. <meta name="description" content="<?php bloginfo('description');?>">
  13. <meta name="viewport" content="width=device-width, initial-scale=1">
  14. <!-- favicon & apple touch icon -->
  15. <?php
  16. $favicon = IMAGES . '/icons/favicon.ico';
  17. $touchicon = IMAGES . '/icons/apple-touch-icon-precomposed.png';
  18. ?>
  19. <link rel="shortcut icon" href="<?php echo $favicon; ?>">
  20. <link rel="apple-touch-icon-precomposed" href="<?php echo $touchicon; ?>" sizes="152x152" />
  21. <?php wp_head(); ?>
  22. </head>
  23. <body <?php body_class(); ?>>
  24. <!--[if lt IE 7]>
  25. <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
  26. <![endif]-->
  27. <nav class="navbar" role="navigation">
  28. <div class="container-fluid">
  29. <!-- Brand and toggle get grouped for better mobile display -->
  30. <div class="navbar-header">
  31. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  32. <span class="sr-only"><?php _e('Toggle navigation','tuts');?></span>
  33. <span class="icon-bar"></span>
  34. <span class="icon-bar"></span>
  35. <span class="icon-bar"></span>
  36. </button>
  37. <a class="navbar-brand" href="<?php echo esc_url(home_url('/'));?>">
  38. <?php bloginfo('name');?>
  39. </a>
  40. </div>
  41. <!-- Collect the nav links, forms, and other content for toggling -->
  42. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  43. <?php
  44. // https://developer.wordpress.org/reference/functions/wp_nav_menu/
  45. wp_nav_menu( array(
  46. 'menu_class' => 'nav navbar-nav navbar-right' ,
  47. 'theme_location' => 'main-menu',
  48. 'container' => false,
  49. ));
  50. ?>
  51. </div><!-- /.navbar-collapse -->
  52. </div><!-- /.container-fluid -->
  53. </nav>