Advertisement
Moslem1337

Untitled

Sep 11th, 2022
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 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 Newsever
  10. */
  11.  
  12. ?>
  13. <!doctype html>
  14. <html <?php language_attributes(); ?>>
  15. <head>
  16. <meta charset="<?php bloginfo('charset'); ?>">
  17. <meta name="viewport" content="width=device-width, initial-scale=1">
  18. <link rel="profile" href="http://gmpg.org/xfn/11">
  19.  
  20. <?php wp_head(); ?>
  21. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4581602831169091"
  22. crossorigin="anonymous"></script>
  23. </head>
  24.  
  25. <body <?php body_class(); ?>>
  26. <?php
  27. if ( function_exists( 'wp_body_open' ) ) {
  28. wp_body_open();
  29. } else {
  30. do_action( 'wp_body_open' );
  31. } ?>
  32. <?php
  33. $enable_preloader = newsever_get_option('enable_site_preloader');
  34. if (1 == $enable_preloader):
  35. ?>
  36. <div id="af-preloader">
  37. <div class="spinner">
  38. <div class="spinnerhalf spinnerhalf--left"></div>
  39. <div class="spinnerhalf spinnerhalf--right"></div>
  40. </div>
  41. </div>
  42. <?php endif; ?>
  43.  
  44. <div id="page" class="site">
  45. <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e('Skip to content', 'newsever'); ?></a>
  46.  
  47.  
  48. <?php
  49.  
  50. do_action('newsever_action_header_section');
  51.  
  52. do_action('newsever_action_front_page_main_section');
  53.  
  54. ?>
  55.  
  56. <?php
  57. $single_post_featured_image_view = newsever_get_option('single_post_featured_image_view');
  58. if ($single_post_featured_image_view != 'full'):
  59. ?>
  60. <div class="container-wrapper">
  61. <?php do_action('newsever_action_get_breadcrumb'); ?>
  62. </div>
  63. <?php endif; ?>
  64.  
  65. <?php
  66. if (is_singular('post')) {
  67. $single_post_featured_image_view = newsever_get_option('single_post_featured_image_view');
  68. /*if($single_post_featured_image_view == 'full'){*/
  69. do_action('newsever_action_single_header');
  70. /*}*/
  71. }
  72. ?>
  73. <?php
  74. $single_post_featured_image_view = newsever_get_option('single_post_featured_image_view');
  75. if ($single_post_featured_image_view == 'full'):
  76. ?>
  77. <div class="container-wrapper">
  78. <?php do_action('newsever_action_get_breadcrumb'); ?>
  79. </div>
  80. <?php endif; ?>
  81.  
  82. <div id="content" class="container-wrapper ">
  83.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement