PageRenderTime 194ms CodeModel.GetById 23ms RepoModel.GetById 2ms app.codeStats 0ms

/header.php

https://github.com/middlesister/Thematic
PHP | 75 lines | 23 code | 20 blank | 32 comment | 1 complexity | 5ac00d67a84693addc296b63f7f7f793 MD5 | raw file
  1. <?php
  2. /**
  3. * Header Template
  4. *
  5. * This template calls a series of functions that output the head tag of the document.
  6. * The body and div #main elements are opened at the end of this file.
  7. *
  8. * @package Thematic
  9. * @subpackage Templates
  10. */
  11. // Creates the doctype
  12. thematic_doctype();
  13. // Opens the html tag with attributes
  14. thematic_html();
  15. // Opens the head
  16. thematic_head();
  17. // Create the meta charset
  18. thematic_meta_charset();
  19. // Create the meta viewport if theme supports it
  20. if( current_theme_supports( 'thematic_meta_viewport' ) ) {
  21. thematic_meta_viewport();
  22. }
  23. // Create the title tag
  24. thematic_doctitle();
  25. // Create the meta description
  26. thematic_meta_description();
  27. // Create the tag <meta name="robots"
  28. thematic_meta_robots();
  29. // Create pingback adress
  30. thematic_show_pingback();
  31. /* Loads Thematic's stylesheet and scripts
  32. * Calling wp_head() is required to provide plugins and child themes
  33. * the ability to insert markup within the <head> tag.
  34. */
  35. wp_head();
  36. // Filter provided for altering output of the head closing element
  37. echo ( apply_filters( 'thematic_close_head', '</head>' . "\n" ) );
  38. // Create the body element and dynamic body classes
  39. thematic_body();
  40. // Action hook to place content before opening #wrapper
  41. thematic_before();
  42. // Filter provided for removing output of wrapping element follows the body tag
  43. echo ( apply_filters( 'thematic_open_wrapper', '<div id="wrapper" class="hfeed site-wrapper">' ) );
  44. // Action hook for placing content above the theme header
  45. thematic_aboveheader();
  46. // Filter provided for altering output of the header opening element
  47. echo ( apply_filters( 'thematic_open_header', '<header id="header" class="site-header" role="banner">' ) );
  48. // Action hook creating the theme header
  49. thematic_header();
  50. // Filter provided for altering output of the header closing element
  51. echo ( apply_filters( 'thematic_close_header', '</header><!-- .site-header-->' ) );
  52. // Action hook for placing content below the theme header
  53. thematic_belowheader();
  54. // Filter provided for altering output of the #main div opening element
  55. echo ( apply_filters( 'thematic_open_main', '<div id="main" class="site-main">' ) );