Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ) !== false ) )
- {
- header( 'X-UA-Compatible: IE=edge,chrome=1' );
- }
- $home_landing = "";
- if (is_page_template('template-homepage_landing.php') || is_page_template('template-homepage_landing_2.php') || is_page_template('template-homepage_landing_3.php') || is_page_template('template-homepage_landing_4.php') || is_page_template('template-homepage_landing_5.php'))
- {
- $home_landing = 'home-landing';
- }
- $no_fludibox = "";
- $pixelwars__gallery_type_for_posts_and_pages = get_option( 'pixelwars__gallery_type_for_posts_and_pages', 'Photo Gallery 2' );
- if ( $pixelwars__gallery_type_for_posts_and_pages != 'Fluidbox' )
- {
- $no_fludibox = 'no-fluidbox';
- }
- ?>
- <!doctype html>
- <html <?php language_attributes(); ?> class="<?php echo esc_attr($home_landing); ?> <?php echo esc_attr($no_fludibox); ?>"><head>
- <!-- 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-5VNZKPD');</script>
- <!-- End Google Tag Manager -->
- <?php echo is_page(18); ?>
- <?php if (is_page(18)) { ?>
- <!-- Load Facebook SDK for JavaScript -->
- <div id="fb-root"></div>
- <script>(function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) return;
- js = d.createElement(s); js.id = id;
- js.src = 'https://connect.facebook.net/ro_RO/sdk/xfbml.customerchat.js#xfbml=1&version=v2.12&autoLogAppEvents=1';
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));</script>
- <div id="fb-root"></div>
- <script>(function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) return;
- js = d.createElement(s); js.id = id;
- js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.11&appId=174077342724084';
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));</script><?php } ?>
- <script src="https://www.google.com/recaptcha/api.js" async defer></script>
- <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Francois+One:300,400,600,700&subset=latin-ext">
- <script type='text/javascript' src='https://vladilas.ro/wp-content/themes/photographer-wp-child/smartcrop.js'></script>
- <link href='https://cdn.knightlab.com/libs/soundcite/latest/css/player.css' rel='stylesheet' type='text/css'><script type='text/javascript' src='https://cdn.knightlab.com/libs/soundcite/latest/js/soundcite.min.js'></script>
- <meta name="theme-color" content="#F5F5F5"/>
- <meta charset="<?php bloginfo( 'charset' ); ?>">
- <?php
- $mobile_zoom = get_option( 'mobile_zoom', 'Yes' );
- if ( $mobile_zoom == 'No' )
- {
- ?>
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
- <?php
- }
- else
- {
- ?>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <?php
- }
- ?>
- <?php
- wp_head();
- ?>
- </head>
- <body <?php body_class(); ?>>
- <!-- Google Tag Manager (noscript) -->
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5VNZKPD"
- height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
- <!-- End Google Tag Manager (noscript) -->
- <div id="page" class="hfeed site">
- <header id="masthead" class="site-header" role="banner">
- <div class="site-logo">
- <?php
- $logo_type = get_option( 'logo_type', 'Text Logo' );
- if ( $logo_type == 'Image Logo' )
- {
- $logo_image = get_option( 'logo_image', "" );
- ?>
- <h1 class="site-title">
- <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
- <img alt="<?php bloginfo( 'name' ); ?>" src="<?php echo esc_url( $logo_image ); ?>">
- </a>
- </h1>
- <?php
- }
- else
- {
- $select_text_logo = get_option( 'select_text_logo', 'WordPress Site Title' );
- if ( $select_text_logo == 'Theme Site Title' )
- {
- $text_logo_out = stripcslashes( get_option( 'theme_site_title', "" ) );
- }
- else
- {
- $text_logo_out = get_bloginfo( 'name' );
- }
- ?>
- <h1 class="site-title">
- <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo $text_logo_out; ?></a>
- </h1>
- <?php
- $select_tagline = get_option( 'select_tagline', 'WordPress Tagline' );
- if ( $select_tagline == 'WordPress Tagline' )
- {
- ?>
- <p class="site-description"><?php bloginfo( 'description' ); ?></p>
- <?php
- }
- else
- {
- $theme_tagline = stripcslashes( get_option( 'theme_tagline', "" ) );
- if ( $theme_tagline != "" )
- {
- ?>
- <p class="site-description"><?php echo $theme_tagline; ?></p>
- <?php
- }
- }
- }
- ?>
- </div>
- <nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation">
- <a class="menu-toggle"><span class="lines"></span></a>
- <div class="nav-menu">
- <?php
- wp_nav_menu( array( 'theme_location' => 'pixelwars_theme_menu_location_1',
- 'menu' => 'pixelwars_theme_menu_location_1',
- 'menu_id' => 'nav',
- 'menu_class' => 'menu-custom',
- 'container' => false,
- 'depth' => 0,
- 'fallback_cb' => 'pixelwars_wp_page_menu2' ) );
- ?>
- </div>
- </nav>
- </header>
Add Comment
Please, Sign In to add comment