Advertisement
VladyCu

Untitled

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