Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. <?php
  2. /**
  3. * The header for our theme.
  4. *
  5. * Displays all of the <head> section and everything up till <div id="content">
  6. *
  7. * @package understrap
  8. */
  9.  
  10. $container = get_theme_mod( 'understrap_container_type' );
  11. ?>
  12. <!DOCTYPE html>
  13. <html <?php language_attributes(); ?>>
  14. <head>
  15. <link href="css/style.css" rel="stylesheet">
  16. <meta charset="<?php bloginfo( 'charset' ); ?>">
  17. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  18. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  19. <meta name="mobile-web-app-capable" content="yes">
  20. <meta name="apple-mobile-web-app-capable" content="yes">
  21. <meta name="apple-mobile-web-app-title" content="<?php bloginfo( 'name' ); ?> - <?php bloginfo( 'description' ); ?>">
  22. <link rel="profile" href="http://gmpg.org/xfn/11">
  23. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  24. <?php wp_head(); ?>
  25. </head>
  26.  
  27. <body <?php body_class(); ?>>
  28.  
  29. <div class="hfeed site" id="page">
  30.  
  31. <!-- ******************* The Navbar Area ******************* -->
  32. <div id="wrapper-navbar" itemscope itemtype="http://schema.org/WebSite">
  33.  
  34. <a class="skip-link screen-reader-text sr-only" href="#content"><?php esc_html_e( 'Skip to content', 'understrap' ); ?></a>
  35.  
  36.  
  37.  
  38.  
  39. <nav id="navbar-list" class="navbar1 navbar-expand-md bg-primary-1 text-white ">
  40.  
  41. <?php if ( 'container' == $container ) : ?>
  42. <div class="row">
  43. <h3 id="navbar-name1" class="col-md-5 text-white text-center1">Marcin Cybulski Ph.D.</h3>
  44. <div class="container text-white col-xs-12 col-sm-12 col-md-7 custom-nav" >
  45.  
  46.  
  47. <?php endif; ?>
  48.  
  49. <!-- Your site title as branding in the menu -->
  50. <?php if ( ! has_custom_logo() ) { ?>
  51.  
  52. <?php if ( is_front_page() && is_home() ) : ?>
  53.  
  54. <h1 class="navbar-brand mb-0 text-white"><a rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url"><?php bloginfo( 'name' ); ?></a></h1>
  55.  
  56. <?php else : ?>
  57.  
  58. <a class="navbar-brand text-white" rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url"><?php bloginfo( 'name' ); ?></a>
  59.  
  60. <?php endif; ?>
  61.  
  62.  
  63. <?php } else {
  64. the_custom_logo();
  65. } ?><!-- end custom logo -->
  66.  
  67. <button class="navbar-toggler text-white" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
  68. <span class="navbar-toggler-icon text-white"></span>
  69. </button>
  70.  
  71. <!-- The WordPress Menu goes here -->
  72.  
  73. <?php wp_nav_menu(
  74. array(
  75. 'theme_location' => 'primary',
  76. 'container_class' => 'collapse navbar-collapse',
  77. 'container_id' => 'navbarNavDropdown',
  78. 'menu_class' => 'navbar-nav',
  79. 'fallback_cb' => '',
  80. 'menu_id' => 'main-menu',
  81. 'depth' => 2,
  82. 'walker' => new Understrap_WP_Bootstrap_Navwalker(),
  83. )
  84. ); ?>
  85.  
  86. <?php if ( 'container' == $container ) : ?>
  87. </div>
  88. </div><!-- .container -->
  89. <?php endif; ?>
  90.  
  91. </nav><!-- .site-navigation -->
  92.  
  93. </div>
  94. </div><!-- #wrapper-navbar end -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement