Advertisement
lorcur86

Untitled

May 15th, 2021
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.36 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The header for our theme.
  4.  *
  5.  * Displays all of the <head> section and everything up till <div id="content">
  6.  *
  7.  * @package Sydney
  8.  */
  9. ?><!DOCTYPE html>
  10. <html <?php language_attributes(); ?>>
  11. <head>
  12. <meta charset="<?php bloginfo( 'charset' ); ?>">
  13. <meta name="viewport" content="width=device-width, initial-scale=1">
  14. <link rel="profile" href="http://gmpg.org/xfn/11">
  15. <link rel="preload" href="https://ripetiamodiritto.com/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-regular-400.woff2" as="font" crossorigin="anonymous">
  16. <link rel="preload" href="https://ripetiamodiritto.com/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-solid-900.woff2" as="font" crossorigin="anonymous">
  17. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  18.     <!-- Google Tag Manager -->
  19. <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  20. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  21. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  22. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  23. })(window,document,'script','dataLayer','GTM-TT7WRFX');</script>
  24. <!-- End Google Tag Manager -->
  25.     <!-- Global site tag (gtag.js) - Google Analytics -->
  26. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-186445897-1"></script>
  27. <script>
  28.   window.dataLayer = window.dataLayer || [];
  29.   function gtag(){dataLayer.push(arguments);}
  30.   gtag('js', new Date());
  31.  
  32.   gtag('config', 'UA-186445897-1');
  33. </script>
  34.     <!-- Facebook Pixel Code -->
  35. <script>
  36. !function(f,b,e,v,n,t,s)
  37. {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  38. n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  39. if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  40. n.queue=[];t=b.createElement(e);t.async=!0;
  41. t.src=v;s=b.getElementsByTagName(e)[0];
  42. s.parentNode.insertBefore(t,s)}(window, document,'script',
  43. 'https://connect.facebook.net/en_US/fbevents.js');
  44. fbq('init', '218606649929239');
  45. fbq('track', 'PageView');
  46. </script>
  47. <noscript><img height="1" width="1" style="display:none"
  48. src="https://www.facebook.com/tr?id=218606649929239&ev=PageView&noscript=1"
  49. /></noscript>
  50. <!-- End Facebook Pixel Code -->
  51.  
  52. <?php wp_head(); ?>
  53. </head>
  54.  
  55. <body <?php body_class(); ?> <?php sydney_do_schema( 'html' ); ?>>
  56. <?php wp_body_open(); ?>
  57.     <!-- Google Tag Manager (noscript) -->
  58. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TT7WRFX"
  59. height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  60. <!-- End Google Tag Manager (noscript) -->
  61.  
  62. <?php do_action('sydney_before_site'); //Hooked: sydney_preloader() ?>
  63.  
  64. <div id="page" class="hfeed site">
  65.     <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'sydney' ); ?></a>
  66.  
  67.     <?php do_action('sydney_before_header'); //Hooked: sydney_header_clone() ?>
  68.  
  69.     <header id="masthead" class="site-header" role="banner" <?php sydney_do_schema( 'header' ); ?>>
  70.         <div class="header-wrap">
  71.             <div class="<?php echo esc_attr( sydney_menu_container() ); ?>">
  72.                 <div class="row">
  73.                     <div class="col-md-4 col-sm-8 col-xs-12">
  74.                     <?php if ( get_theme_mod('site_logo') ) : ?>
  75.                         <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" <?php sydney_do_schema( 'logo' ); ?> /></a>
  76.                         <?php if ( is_home() && !is_front_page() ) : ?>
  77.                             <h1 class="site-title screen-reader-text"><?php bloginfo( 'name' ); ?></h1>
  78.                         <?php endif; ?>
  79.                     <?php else : ?>
  80.                         <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  81.                         <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>          
  82.                     <?php endif; ?>
  83.                     </div>
  84.                     <div class="col-md-8 col-sm-4 col-xs-12">
  85.                         <div class="btn-menu"><i class="sydney-svg-icon"><?php sydney_get_svg_icon( 'icon-menu', true ); ?></i></div>
  86.                         <nav id="mainnav" class="mainnav" role="navigation" <?php sydney_do_schema( 'nav' ); ?>>
  87.                             <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => 'sydney_menu_fallback' ) ); ?>
  88.                         </nav><!-- #site-navigation -->
  89.                     </div>
  90.                 </div>
  91.             </div>
  92.         </div>
  93.     </header><!-- #masthead -->
  94.  
  95.     <?php do_action('sydney_after_header'); ?>
  96.  
  97.     <div class="sydney-hero-area">
  98.         <?php sydney_slider_template(); ?>
  99.         <div class="header-image">
  100.             <?php sydney_header_overlay(); ?>
  101.             <?php if ( ( get_theme_mod('front_header_type','nothing') == 'image' && is_front_page() ) || (get_theme_mod('site_header_type') == 'image' && !is_front_page() ) ) : ?>
  102.                 <?php $shop_thumb = get_the_post_thumbnail_url( get_option( 'woocommerce_shop_page_id' )); ?>
  103.                 <?php if ( class_exists( 'Woocommerce' ) && is_shop() && !$shop_thumb  ) : ?>
  104.                     <img class="header-inner" src="<?php header_image(); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>">
  105.                 <?php endif; ?>
  106.             <?php endif; ?>
  107.         </div>
  108.         <?php sydney_header_video(); ?>
  109.  
  110.         <?php do_action('sydney_inside_hero'); ?>
  111.     </div>
  112.  
  113.     <?php do_action('sydney_after_hero'); ?>
  114.  
  115.     <div id="content" class="page-wrap">
  116.         <div class="container content-wrapper">
  117.             <div class="row">  
  118.                  <?php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement