Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  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 typer
  10. */
  11.  
  12. namespace SeventhQueen\Typer;
  13.  
  14. ?>
  15. <!DOCTYPE html>
  16. <html <?php language_attributes(); ?> class="<?php echo esc_attr( typer()->get_html_class( 'no-js' ) ) ?>">
  17. <head>
  18. <meta charset="<?php bloginfo( 'charset' ); ?>">
  19. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  20. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
  21. <link rel="profile" href="http://gmpg.org/xfn/11">
  22.  
  23. <?php
  24. if ( ! typer()->is_amp() ) {
  25. ?>
  26. <script>document.documentElement.classList.remove('no-js');</script>
  27. <?php
  28. }
  29. ?>
  30.  
  31. <?php wp_head(); ?>
  32. </head>
  33.  
  34. <body <?php body_class(); ?>>
  35. <?php if( typer()->get_option( 'page_preloader' ) ) :?>
  36. <div class="svq-page-loader"></div>
  37. <?php endif; ?>
  38. <?php wp_body_open(); ?>
  39.  
  40. <?php do_action( 'typer_after_body' ); ?>
  41.  
  42. <div class="svq-page-wrapper">
  43. <a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'typer' ); ?></a>
  44.  
  45. <?php
  46. /**
  47. * Included Header section using actions
  48. *
  49. * Templates used:
  50. * @see template-parts/header.php - (outputs header)
  51. *
  52. * @hooked typer_show_header - 10
  53. */
  54. do_action( 'typer_header' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement