VladyCu

Untitled

Apr 8th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.75 KB | None | 0 0
  1. <?php
  2.     if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ) !== false ) )
  3.     {
  4.         header( 'X-UA-Compatible: IE=edge,chrome=1' );
  5.     }
  6.    
  7.     $home_landing = "";
  8.    
  9.     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'))
  10.     {
  11.         $home_landing = 'home-landing';
  12.     }
  13.    
  14.     $no_fludibox = "";
  15.     $pixelwars__gallery_type_for_posts_and_pages = get_option( 'pixelwars__gallery_type_for_posts_and_pages', 'Photo Gallery 2' );
  16.    
  17.     if ( $pixelwars__gallery_type_for_posts_and_pages != 'Fluidbox' )
  18.     {
  19.         $no_fludibox = 'no-fluidbox';
  20.     }
  21. ?>
  22. <!doctype html>
  23.  
  24. <html <?php language_attributes(); ?> class="<?php echo esc_attr($home_landing); ?> <?php echo esc_attr($no_fludibox); ?>"><head>
  25.     <!-- Google Tag Manager -->
  26.     <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  27.     new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  28.     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  29.     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  30.     })(window,document,'script','dataLayer','GTM-5VNZKPD');</script>
  31.     <!-- End Google Tag Manager -->
  32.     <?php echo is_page(18); ?>
  33.     <?php if (is_page(18)) { ?>
  34.     <!-- Load Facebook SDK for JavaScript -->
  35.     <div id="fb-root"></div>
  36.     <script>(function(d, s, id) {
  37.       var js, fjs = d.getElementsByTagName(s)[0];
  38.       if (d.getElementById(id)) return;
  39.       js = d.createElement(s); js.id = id;
  40.       js.src = 'https://connect.facebook.net/ro_RO/sdk/xfbml.customerchat.js#xfbml=1&version=v2.12&autoLogAppEvents=1';
  41.       fjs.parentNode.insertBefore(js, fjs);
  42.     }(document, 'script', 'facebook-jssdk'));</script>
  43.     <div id="fb-root"></div>
  44.     <script>(function(d, s, id) {
  45.         var js, fjs = d.getElementsByTagName(s)[0];
  46.         if (d.getElementById(id)) return;
  47.         js = d.createElement(s); js.id = id;
  48.         js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.11&appId=174077342724084';
  49.         fjs.parentNode.insertBefore(js, fjs);
  50.     }(document, 'script', 'facebook-jssdk'));</script><?php } ?>
  51.     <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  52.     <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Francois+One:300,400,600,700&subset=latin-ext">
  53.     <script type='text/javascript' src='https://vladilas.ro/wp-content/themes/photographer-wp-child/smartcrop.js'></script>
  54.     <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>
  55.     <meta name="theme-color" content="#F5F5F5"/>
  56.     <meta charset="<?php bloginfo( 'charset' ); ?>">
  57.     <?php
  58.         $mobile_zoom = get_option( 'mobile_zoom', 'Yes' );
  59.        
  60.         if ( $mobile_zoom == 'No' )
  61.         {
  62.             ?>
  63. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  64.             <?php
  65.         }
  66.         else
  67.         {
  68.             ?>
  69. <meta name="viewport" content="width=device-width, initial-scale=1">
  70.             <?php
  71.         }
  72.     ?>
  73.  
  74.     <?php
  75.         wp_head();
  76.     ?>
  77. </head>
  78.  
  79. <body <?php body_class(); ?>>
  80.     <!-- Google Tag Manager (noscript) -->
  81.     <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5VNZKPD"
  82.     height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  83.     <!-- End Google Tag Manager (noscript) -->
  84.     <div id="page" class="hfeed site">
  85.         <header id="masthead" class="site-header" role="banner">
  86.             <div class="site-logo">
  87.                 <?php
  88.                     $logo_type = get_option( 'logo_type', 'Text Logo' );
  89.                    
  90.                     if ( $logo_type == 'Image Logo' )
  91.                     {
  92.                         $logo_image = get_option( 'logo_image', "" );
  93.                        
  94.                         ?>
  95.                             <h1 class="site-title">
  96.                                 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
  97.                                     <img alt="<?php bloginfo( 'name' ); ?>" src="<?php echo esc_url( $logo_image ); ?>">
  98.                                 </a>
  99.                             </h1>
  100.                         <?php
  101.                     }
  102.                     else
  103.                     {
  104.                         $select_text_logo = get_option( 'select_text_logo', 'WordPress Site Title' );
  105.                        
  106.                         if ( $select_text_logo == 'Theme Site Title' )
  107.                         {
  108.                             $text_logo_out = stripcslashes( get_option( 'theme_site_title', "" ) );
  109.                         }
  110.                         else
  111.                         {
  112.                             $text_logo_out = get_bloginfo( 'name' );
  113.                         }
  114.                        
  115.                         ?>
  116.                             <h1 class="site-title">
  117.                                 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo $text_logo_out; ?></a>
  118.                             </h1>
  119.                         <?php
  120.                        
  121.                        
  122.                         $select_tagline = get_option( 'select_tagline', 'WordPress Tagline' );
  123.                        
  124.                         if ( $select_tagline == 'WordPress Tagline' )
  125.                         {
  126.                             ?>
  127.                                 <p class="site-description"><?php bloginfo( 'description' ); ?></p>
  128.                             <?php
  129.                         }
  130.                         else
  131.                         {
  132.                             $theme_tagline = stripcslashes( get_option( 'theme_tagline', "" ) );
  133.                            
  134.                             if ( $theme_tagline != "" )
  135.                             {
  136.                                 ?>
  137.                                     <p class="site-description"><?php echo $theme_tagline; ?></p>
  138.                                 <?php
  139.                             }
  140.                         }
  141.                     }
  142.                 ?>
  143.             </div>
  144.            
  145.            
  146.             <nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation">
  147.                
  148.                 <a class="menu-toggle"><span class="lines"></span></a>
  149.                
  150.                 <div class="nav-menu">
  151.                     <?php
  152.                         wp_nav_menu( array( 'theme_location' => 'pixelwars_theme_menu_location_1',
  153.                                             'menu'           => 'pixelwars_theme_menu_location_1',
  154.                                             'menu_id'        => 'nav',
  155.                                             'menu_class'     => 'menu-custom',
  156.                                             'container'      => false,
  157.                                             'depth'          => 0,
  158.                                             'fallback_cb'    => 'pixelwars_wp_page_menu2' ) );
  159.                     ?>
  160.                 </div>
  161.             </nav>
  162.         </header>
Add Comment
Please, Sign In to add comment