Advertisement
Guest User

Untitled

a guest
Mar 20th, 2020
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.41 KB | None | 0 0
  1. <?php
  2. /**
  3. * The header for Astra 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 Astra
  10. * @since 1.0.0
  11. */
  12.  
  13. if ( ! defined( 'ABSPATH' ) ) {
  14. exit; // Exit if accessed directly.
  15. }
  16.  
  17. ?><!DOCTYPE html>
  18. <?php astra_html_before(); ?>
  19. <html <?php language_attributes(); ?>>
  20. <head>
  21. <?php if( ICL_LANGUAGE_CODE == 'es' ): ?>
  22.  
  23. <!-- Google Tag Manager -->
  24. <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  25. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  26. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  27. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  28. })(window,document,'script','dataLayer','GTM-5GGVQR8');</script>
  29. <!-- End Google Tag Manager -->
  30.  
  31. <?php else if( ICL_LANGUAGE_CODE == 'fr' ): ?>
  32.  
  33. <!-- Google Tag Manager -->
  34. <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  35. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  36. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  37. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  38. })(window,document,'script','dataLayer','GTM-P284VZC');</script>
  39. <!-- End Google Tag Manager -->
  40.  
  41. <?php else if( ICL_LANGUAGE_CODE == 'mx' ): ?>
  42.  
  43. <!-- Google Tag Manager -->
  44. <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  45. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  46. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  47. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  48. })(window,document,'script','dataLayer','GTM-5SJB9VP');</script>
  49. <!-- End Google Tag Manager -->
  50.  
  51. <?php else if( ICL_LANGUAGE_CODE == 'uy' ): ?>
  52.  
  53. <!-- Google Tag Manager -->
  54. <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  55. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  56. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  57. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  58. })(window,document,'script','dataLayer','GTM-TXJTMLL');</script>
  59. <!-- End Google Tag Manager -->
  60.  
  61. <?php else if( ICL_LANGUAGE_CODE == 'pe' ): ?>
  62.  
  63. <!-- Google Tag Manager -->
  64. <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  65. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  66. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  67. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  68. })(window,document,'script','dataLayer','GTM-TKMHT67');</script>
  69. <!-- End Google Tag Manager -->
  70.  
  71. <?php else if( ICL_LANGUAGE_CODE == 'pt-pt' ): ?>
  72.  
  73. <!-- Google Tag Manager -->
  74. <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  75. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  76. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  77. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  78. })(window,document,'script','dataLayer','GTM-KXQLXGQ');</script>
  79. <!-- End Google Tag Manager -->
  80.  
  81. <?php else if( ICL_LANGUAGE_CODE == 'en-in' ): ?>
  82.  
  83. <!-- Google Tag Manager -->
  84. <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  85. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  86. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  87. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  88. })(window,document,'script','dataLayer','GTM-KW8HZX8');</script>
  89. <!-- End Google Tag Manager -->
  90.  
  91. <?php else: ?>
  92.  
  93. <!-- Google Tag Manager -->
  94. <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  95. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  96. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  97. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  98. })(window,document,'script','dataLayer','GTM-5GGVQR8');</script>
  99. <!-- End Google Tag Manager -->
  100.  
  101. <?php endif; ?>
  102.  
  103. <?php astra_head_top(); ?>
  104. <meta charset="<?php bloginfo( 'charset' ); ?>">
  105. <meta name="viewport" content="width=device-width, initial-scale=1">
  106. <link rel="profile" href="https://gmpg.org/xfn/11">
  107.  
  108. <?php wp_head(); ?>
  109. <?php astra_head_bottom(); ?>
  110. </head>
  111.  
  112. <body <?php astra_schema_body(); ?> <?php body_class(); ?>>
  113. <?php if( ICL_LANGUAGE_CODE == 'es' ): ?>
  114.  
  115. <!-- Google Tag Manager (noscript) -->
  116. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5GGVQR8"
  117. height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  118. <!-- End Google Tag Manager (noscript) -->
  119.  
  120. <?php else if( ICL_LANGUAGE_CODE == 'fr' ): ?>
  121.  
  122. <!-- Google Tag Manager (noscript) -->
  123. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P284VZC"
  124. height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  125. <!-- End Google Tag Manager (noscript) -->
  126.  
  127. <?php else if( ICL_LANGUAGE_CODE == 'mx' ): ?>
  128.  
  129. <!-- Google Tag Manager (noscript) -->
  130. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5SJB9VP"
  131. height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  132. <!-- End Google Tag Manager (noscript) -->
  133.  
  134. <?php else if( ICL_LANGUAGE_CODE == 'uy' ): ?>
  135.  
  136. <!-- Google Tag Manager (noscript) -->
  137. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TXJTMLL"
  138. height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  139. <!-- End Google Tag Manager (noscript) -->
  140.  
  141. <?php else if( ICL_LANGUAGE_CODE == 'pe' ): ?>
  142.  
  143. <!-- Google Tag Manager (noscript) -->
  144. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TKMHT67"
  145. height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  146. <!-- End Google Tag Manager (noscript) -->
  147.  
  148. <?php else if( ICL_LANGUAGE_CODE == 'pt-pt' ): ?>
  149.  
  150. <!-- Google Tag Manager (noscript) -->
  151. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KXQLXGQ"
  152. height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  153. <!-- End Google Tag Manager (noscript) -->
  154.  
  155. <?php else if( ICL_LANGUAGE_CODE == 'en-in' ): ?>
  156.  
  157. <!-- Google Tag Manager (noscript) -->
  158. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KW8HZX8"
  159. height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  160. <!-- End Google Tag Manager (noscript) -->
  161.  
  162. <?php else: ?>
  163.  
  164. <!-- Google Tag Manager (noscript) -->
  165. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5GGVQR8"
  166. height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  167. <!-- End Google Tag Manager (noscript) -->
  168.  
  169. <?php endif; ?>
  170.  
  171. <?php astra_body_top(); ?>
  172. <?php wp_body_open(); ?>
  173. <div
  174. <?php
  175. echo astra_attr(
  176. 'site',
  177. array(
  178. 'id' => 'page',
  179. 'class' => 'hfeed site',
  180. )
  181. );
  182. ?>
  183. >
  184. <a class="skip-link screen-reader-text" href="#content"><?php echo esc_html( astra_default_strings( 'string-header-skip-link', false ) ); ?></a>
  185.  
  186. <?php astra_header_before(); ?>
  187.  
  188. <?php astra_header(); ?>
  189.  
  190. <?php astra_header_after(); ?>
  191.  
  192. <?php astra_content_before(); ?>
  193.  
  194. <div id="content" class="site-content">
  195.  
  196. <div class="ast-container">
  197.  
  198. <?php astra_content_top(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement