Advertisement
Guest User

Untitled

a guest
Feb 14th, 2014
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.90 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
  4. <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
  5. <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
  6. <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]--><head>
  7.  
  8.     <!-- Basic Page Needs
  9.   ================================================== -->
  10.     <meta charset="utf-8">
  11.     <title>TK</title>
  12.     <meta name="description" content="">
  13.     <meta name="author" content="">
  14.      
  15.  
  16.     <!-- Mobile Specific Metas
  17.   ================================================== -->
  18.     <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
  19.     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  20.  
  21.     <!-- CSS
  22.   ================================================== -->
  23.  
  24.    
  25.    
  26.    
  27.    
  28.     <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.css">
  29.     <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/map_russia.css">
  30.     <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/skeleton.css">
  31.     <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/mobile-nav.css">
  32.     <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/flexslider.css" type="text/css" media="screen" />
  33.     <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/accordion.css" />
  34.     <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/jquery.fancybox.css" />
  35.    
  36.    
  37.    
  38.    
  39.     <!--[if (lt IE 9) & (!IEMobile)]>
  40.     <link rel="stylesheet" href="css/ie.css">
  41.     <![endif]-->
  42.  
  43.    
  44.  
  45.     <!--[if lt IE 9]>
  46.         <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  47.     <![endif]-->
  48.  
  49.  
  50.    
  51.      <!-- Jquery
  52.   ================================================== -->
  53.  
  54.    
  55.  
  56.  
  57. <!-- End Document
  58. ================================================== -->
  59.     <!-- Favicons
  60.     ================================================== -->
  61.     <link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/images/favicon.ico">
  62.     <link rel="apple-touch-icon" href="<?php bloginfo('template_url'); ?>/images/apple-touch-icon.png">
  63.     <link rel="apple-touch-icon" sizes="72x72" href="<?php bloginfo('template_url'); ?>/images/apple-touch-icon-72x72.png">
  64.     <link rel="apple-touch-icon" sizes="114x114" href="<?php bloginfo('template_url'); ?>/images/apple-touch-icon-114x114.png">
  65.  
  66. <?php wp_head(); ?>
  67.  
  68.  
  69.  
  70. <?php if(is_page(icl_object_id(24, 'page', false))){ ?>
  71.  
  72. <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
  73.  
  74. <script>
  75.  
  76.  
  77.  
  78.  
  79. var map;
  80. var chicago = new google.maps.LatLng(45.78506, 9.3061);
  81.  
  82. function initialize() {
  83.  
  84.   var roadAtlasStyles = [ {
  85.  
  86.  featureType: "", elementType: "", stylers: [ { hue: "#08ff00" }, { saturation: -100 } ] }
  87.   ];
  88.  
  89.   var mapOptions = {
  90.     zoom: 16,
  91.     center: chicago,
  92.     panControl: false,
  93.   zoomControl: false,
  94.   mapTypeControl: false,
  95.   scaleControl: false,
  96.   streetViewControl: false,
  97.   overviewMapControl: false
  98.  
  99.   };
  100.  
  101.   map = new google.maps.Map(document.getElementById('mappa'),
  102.       mapOptions);
  103.  
  104.  
  105.  
  106. var iconBase = 'http://tkitaly.com/wp-content/themes/tk/images/';
  107. var marker = new google.maps.Marker({
  108.   position: chicago,
  109.   map: map,
  110.   title:"via Rossini 4 23847, Molteno",
  111.   icon: iconBase + 'marker.png',
  112.   shadow: iconBase + 'schools_maps.shadow.png'
  113. });
  114.  
  115.  
  116.  
  117.  
  118.   var usRoadMapType = new google.maps.StyledMapType(
  119.       roadAtlasStyles);
  120.  
  121.   map.mapTypes.set('usroadatlas', usRoadMapType);
  122.   map.setMapTypeId('usroadatlas');
  123. }
  124.  
  125. google.maps.event.addDomListener(window, 'load', initialize);
  126.  
  127. </script>
  128.  
  129. <?php } ?>
  130.  
  131. <?php if ( 'prodotto' == get_post_type() ){ ?>
  132.  
  133. <script>
  134.  
  135. $( document ).ready(function() {
  136. $("#nav li:eq(3)").addClass("current-menu-item");
  137. });
  138.  
  139. </script>
  140.  
  141. <?php } ?>
  142.  
  143. <?php if ( 'persone' == get_post_type() ){ ?>
  144.  
  145. <script>
  146.  
  147. $( document ).ready(function() {
  148. $("li#nav li:eq(3)").addClass("current-menu-item");
  149. });
  150.  
  151. </script>
  152.  
  153. <?php } ?>
  154.  
  155. <?php if (is_archive('paese') ){ ?>
  156.  
  157. <script>
  158.  
  159. $( document ).ready(function() {
  160. $("#content li:eq(5)").addClass("current_page_item");
  161. });
  162.  
  163. </script>
  164.  
  165. <?php } ?>
  166.  
  167. <?php if (is_tax('testimonianze') ){ ?>
  168.  
  169. <script>
  170.  
  171. $( document ).ready(function() {
  172. $("#nav li:eq(5)").addClass("current-menu-item");
  173. });
  174.  
  175. </script>
  176.  
  177. <?php } ?>
  178.  
  179.  
  180. <?php if (is_category(array(20,21,22,19))){ ?>
  181.  
  182. <script>
  183.  
  184. $( document ).ready(function() {
  185. $("#nav li:eq(7)").addClass("current-menu-item");
  186. });
  187.  
  188. </script>
  189.  
  190. <?php } ?>
  191.  
  192. <?php if (in_category(array(1))){ ?>
  193.  
  194. <script>
  195.  
  196. $( document ).ready(function() {
  197. $("#nav li:eq(6)").addClass("current-menu-item");
  198. });
  199.  
  200. </script>
  201.  
  202. <?php } ?>
  203.  
  204.  
  205. </head>
  206. <body <?php body_class(); ?>>
  207.  
  208.  
  209. <div class="container columns add-bottom">
  210.    
  211.        
  212.     <header>
  213.         <div id="top">
  214.            
  215.             <div class="block">
  216.                <a class="nav-btn" id="nav-open-btn" href="#nav">Book Navigation</a>
  217.                 <div class="logo" title="TK"><a href="<?php echo get_option('home'); ?>/" title="TK"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="TK"></a></div>
  218.              
  219.             </div>
  220.        
  221.         </div>
  222.        
  223.      
  224. <!-- start language switcher -->
  225.  
  226.  
  227. <?php if(is_user_logged_in()) { ?>
  228. <div id="polyglotLanguageSwitcher">
  229.  
  230. <?php do_action('icl_language_selector'); ?>
  231.  
  232. </div>
  233.  
  234. <?php } ?>
  235.  
  236.  
  237.  
  238.  
  239.    
  240. <!-- end language switcher -->
  241.    
  242.        
  243.       <nav id="nav" role="navigation">
  244.      
  245.         <div class="block">
  246.             <h2 class="block-title">Chapters</h2>
  247.            
  248.            <!-- search form desktop -->
  249.            
  250.              <form class="searchform" action="<?php echo home_url( '/' ); ?>">
  251.                 <input class="searchfield" type="text" value=""  name="s" id="s" />
  252.                 <input type="hidden" name="lang" value="<?php echo(ICL_LANGUAGE_CODE); ?>"/>
  253.                 <input class="searchbutton" type="button" value="" />
  254.              </form>
  255.             <!-- end search form desktop -->  
  256.          
  257.             <ul>
  258.            
  259.             <!-- search form mobile -->
  260.            
  261.              <li class="search-responsive">
  262.             <form class="searchform-mob" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
  263.             <input class="searchfield" type="text" value="Search" onFocus="if (this.value == 'Search...') {this.value = '';}" onBlur="if (this.value == '') {this.value = 'Search...';}" name="s" id="s" />
  264.             <input class="searchbutton-mob" type="button" value="Go" id="searchsubmit" />
  265.             </form>
  266.              </li>
  267.              
  268.              <!-- end search form mobile -->
  269.              
  270.            <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  271.            
  272.             </ul>
  273.          
  274.             <a class="close-btn" id="nav-close-btn" href="#top"><?php _e('Return to Content','TK'); ?></a>
  275.        
  276.         </div>
  277.     </nav>
  278.  
  279.  
  280.      </header>
  281.      
  282. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement