Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The header for our theme.
- *
- * Displays all of the <head> section and everything up till <div id="content">
- *
- * @package Sydney
- */
- ?><!DOCTYPE html>
- <html <?php language_attributes(); ?>>
- <head>
- <meta charset="<?php bloginfo( 'charset' ); ?>">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="profile" href="http://gmpg.org/xfn/11">
- <link rel="preload" href="https://ripetiamodiritto.com/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-regular-400.woff2" as="font" crossorigin="anonymous">
- <link rel="preload" href="https://ripetiamodiritto.com/wp-content/plugins/elementor/assets/lib/font-awesome/webfonts/fa-solid-900.woff2" as="font" crossorigin="anonymous">
- <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
- <!-- Google Tag Manager -->
- <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
- })(window,document,'script','dataLayer','GTM-TT7WRFX');</script>
- <!-- End Google Tag Manager -->
- <!-- Global site tag (gtag.js) - Google Analytics -->
- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-186445897-1"></script>
- <script>
- window.dataLayer = window.dataLayer || [];
- function gtag(){dataLayer.push(arguments);}
- gtag('js', new Date());
- gtag('config', 'UA-186445897-1');
- </script>
- <!-- Facebook Pixel Code -->
- <script>
- !function(f,b,e,v,n,t,s)
- {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
- n.callMethod.apply(n,arguments):n.queue.push(arguments)};
- if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
- n.queue=[];t=b.createElement(e);t.async=!0;
- t.src=v;s=b.getElementsByTagName(e)[0];
- s.parentNode.insertBefore(t,s)}(window, document,'script',
- 'https://connect.facebook.net/en_US/fbevents.js');
- fbq('init', '218606649929239');
- fbq('track', 'PageView');
- </script>
- <noscript><img height="1" width="1" style="display:none"
- src="https://www.facebook.com/tr?id=218606649929239&ev=PageView&noscript=1"
- /></noscript>
- <!-- End Facebook Pixel Code -->
- <?php wp_head(); ?>
- </head>
- <body <?php body_class(); ?> <?php sydney_do_schema( 'html' ); ?>>
- <?php wp_body_open(); ?>
- <!-- Google Tag Manager (noscript) -->
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TT7WRFX"
- height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
- <!-- End Google Tag Manager (noscript) -->
- <?php do_action('sydney_before_site'); //Hooked: sydney_preloader() ?>
- <div id="page" class="hfeed site">
- <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'sydney' ); ?></a>
- <?php do_action('sydney_before_header'); //Hooked: sydney_header_clone() ?>
- <header id="masthead" class="site-header" role="banner" <?php sydney_do_schema( 'header' ); ?>>
- <div class="header-wrap">
- <div class="<?php echo esc_attr( sydney_menu_container() ); ?>">
- <div class="row">
- <div class="col-md-4 col-sm-8 col-xs-12">
- <?php if ( get_theme_mod('site_logo') ) : ?>
- <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>
- <?php if ( is_home() && !is_front_page() ) : ?>
- <h1 class="site-title screen-reader-text"><?php bloginfo( 'name' ); ?></h1>
- <?php endif; ?>
- <?php else : ?>
- <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
- <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
- <?php endif; ?>
- </div>
- <div class="col-md-8 col-sm-4 col-xs-12">
- <div class="btn-menu"><i class="sydney-svg-icon"><?php sydney_get_svg_icon( 'icon-menu', true ); ?></i></div>
- <nav id="mainnav" class="mainnav" role="navigation" <?php sydney_do_schema( 'nav' ); ?>>
- <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => 'sydney_menu_fallback' ) ); ?>
- </nav><!-- #site-navigation -->
- </div>
- </div>
- </div>
- </div>
- </header><!-- #masthead -->
- <?php do_action('sydney_after_header'); ?>
- <div class="sydney-hero-area">
- <?php sydney_slider_template(); ?>
- <div class="header-image">
- <?php sydney_header_overlay(); ?>
- <?php if ( ( get_theme_mod('front_header_type','nothing') == 'image' && is_front_page() ) || (get_theme_mod('site_header_type') == 'image' && !is_front_page() ) ) : ?>
- <?php $shop_thumb = get_the_post_thumbnail_url( get_option( 'woocommerce_shop_page_id' )); ?>
- <?php if ( class_exists( 'Woocommerce' ) && is_shop() && !$shop_thumb ) : ?>
- <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'); ?>">
- <?php endif; ?>
- <?php endif; ?>
- </div>
- <?php sydney_header_video(); ?>
- <?php do_action('sydney_inside_hero'); ?>
- </div>
- <?php do_action('sydney_after_hero'); ?>
- <div id="content" class="page-wrap">
- <div class="container content-wrapper">
- <div class="row">
- <?php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement