header.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * The header for our theme
  4. *
  5. * This is the template that displays all of the <head> section and everything up until <div id="content">
  6. *
  7. * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  8. *
  9. * @package UIU_CSE
  10. */
  11. ?>
  12. <!doctype html>
  13. <html <?php language_attributes(); ?>>
  14. <head>
  15. <meta charset="<?php bloginfo('charset'); ?>">
  16. <meta name="viewport" content="width=device-width, initial-scale=1">
  17. <link rel="profile" href="https://gmpg.org/xfn/11">
  18. <?php wp_head(); ?>
  19. </head>
  20. <body <?php body_class(); ?>>
  21. <?php wp_body_open(); ?>
  22. <div id="page" class="site">
  23. <a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e('Skip to content', 'uiu-cse'); ?></a>
  24. <header id="navbar">
  25. <section id="uiu-global-nav">
  26. <nav class="container-fluid">
  27. <div class="logo-close-menu">
  28. <span id="menu-bars" class="material-icons">
  29. menu
  30. </span>
  31. <a class="logo" href="<?php echo get_site_url(); ?>"> <img src="<?php echo (get_header_image()); ?>" alt="<?php echo (get_bloginfo('title')); ?>" /></a>
  32. <span id="seacrh" class="seacrh material-symbols-outlined" onclick="openSearch()">
  33. search
  34. </span>
  35. </div>
  36. <?php wp_nav_menu(array('theme_location' => 'uiu-global-header-menu', 'container_class' => 'uiu-global-header-menu'));
  37. ?>
  38. </nav>
  39. </section>
  40. <section id="uiu-departmental-nav">
  41. <nav class="container-fluid">
  42. <div id="responsive-btn" class="dep-name-res-icon">
  43. <span class="department">
  44. Departmental Menu of CSE
  45. </span>
  46. <span class="responsive-btn material-symbols-outlined">
  47. filter_list
  48. </span>
  49. </div>
  50. <?php wp_nav_menu(array('theme_location' => 'uiu-departmental-header-menu', 'container_class' => 'uiu-departmental-header-menu'));
  51. ?>
  52. </nav>
  53. </section>
  54. </header>
  55. <!-- #masthead -->