An updated theme (based on Atticus Finch) for ClassicPress
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

122 lines
3.0 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <?php
  2. /**
  3. * The header for our theme.
  4. *
  5. * Displays all of the <head> section and everything up till <div id="container">
  6. *
  7. * @package Portage
  8. */
  9. ?>
  10. <!DOCTYPE html>
  11. <html <?php language_attributes(); ?>>
  12. <head>
  13. <meta charset="<?php bloginfo( 'charset' ); ?>">
  14. <meta name="viewport" content="width=device-width, initial-scale=1">
  15. <link rel="profile" href="http://gmpg.org/xfn/11">
  16. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  17. <!-- Commented out on 2021.06.27 -->
  18. <?php // portage_custom_css_head(); ?>
  19. <?php wp_head(); ?>
  20. </head>
  21. <body <?php body_class(); ?>>
  22. <?php do_action( 'portage_before_header' ); ?>
  23. <header>
  24. <nav id="top-menu">
  25. <?php wp_nav_menu( array(
  26. 'theme_location' => 'top-menu',
  27. 'fallback_cb' => '',
  28. 'menu_class' => 'sf-menu',
  29. 'menu_id' => 'aboveheadermenu-ul',
  30. 'container' => 'div',
  31. 'container_id' => 'aboveheadermenu',
  32. 'depth' => 1
  33. ) );
  34. ?>
  35. <div class="clear"></div>
  36. </nav>
  37. <?php do_action( 'portage_after_top_menu' ); ?>
  38. <div id="header" style="background-image: url('<?php header_image(); ?>');">
  39. <div id="site-title">
  40. <?php if ( is_front_page() ){
  41. echo '<h1>' . get_option( 'blogname' ) . '</h1>';
  42. } else { ?>
  43. <h2><a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a></h2>
  44. <?php
  45. }
  46. ?>
  47. </div><!-- end #site-title -->
  48. <div id="site-desc">
  49. <?php
  50. if ( is_front_page() ){
  51. echo '<h2>' . get_option( 'blogdescription' ) . '</h2>';
  52. } else {
  53. echo '<h3>' . get_option( 'blogdescription' ) . '</h3>';
  54. }
  55. ?>
  56. <div class="clear"></div>
  57. </div><!-- end #site-desc -->
  58. <?php do_action( 'portage_before_social_media'); ?>
  59. <div id="social-media-menu" class="social-navigation">
  60. <?php portage_social_media_display(); ?>
  61. <div class="clear"></div>
  62. </div><!-- end #social-media-menu -->
  63. </div><!-- end #header -->
  64. <div class="clear"></div>
  65. <?php do_action( 'portage_before_primary_menu' ); ?>
  66. <!-- Commented out on 2021.06.27 -->
  67. <?php // $walker = new portage_Menu_With_Description; ?>
  68. <nav id="primary-menu">
  69. <?php
  70. if ( get_theme_mod( 'portage_main_menu_desc' ) == 1 ) {
  71. $array = array(
  72. 'theme_location' => 'primary-menu',
  73. 'fallback_cb' => '',
  74. 'menu_class' => 'sf-menu',
  75. 'menu_id' => 'belowheadermenu-ul',
  76. 'container' => 'div',
  77. 'container_id' => 'belowheadermenu',
  78. 'depth' => 3,
  79. // 'walker' => $walker,
  80. );
  81. } else {
  82. $array = array(
  83. 'theme_location' => 'primary-menu',
  84. 'fallback_cb' => '',
  85. 'menu_class' => 'sf-menu',
  86. 'menu_id' => 'belowheadermenu-ul',
  87. 'container' => 'div',
  88. 'container_id' => 'belowheadermenu',
  89. 'depth' => 3,
  90. );
  91. }
  92. wp_nav_menu( $array );
  93. ?>
  94. <div class="clear"></div>
  95. </nav>
  96. <div class="clear"></div>
  97. </header>
  98. <?php do_action( 'portage_after_header' ); ?>
  99. <div id="container"><!-- closing tag is in footer.php -->
  100. <?php do_action( 'portage_container_top' ); ?>