Advertisement
pixedelic

header.safari.bug.php

Oct 14th, 2011
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 32.68 KB | None | 0 0
  1. <?php //session_start(); ?>
  2. <?php
  3. $cryptinstall=TEMPLATEPATH."/scripts/crypt/cryptographp.fct.php";
  4. include $cryptinstall;
  5. $_SESSION['cryptdir'] = get_bloginfo('stylesheet_directory').'/scripts/crypt';
  6. ?>
  7. <!DOCTYPE HTML>
  8. <!-- Delight is a Pixedelic work, by Consorzio Creativo on Wordpress platform | Manuel Masia (designer and developer) -->
  9. <html>
  10. <head>
  11.     <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>" >
  12.     <title><?php
  13.  
  14.     global $page, $paged;
  15.  
  16.     global $custom_seo;
  17.     $meta_seo = get_post_meta(get_the_ID(), $custom_seo->get_the_id(), TRUE);
  18.  
  19. if((is_single()||is_page()) && $meta_seo &&  array_key_exists('title',$meta_seo)){
  20.     echo $meta_seo['title'];
  21. } elseif(is_home()&&get_pix_option('pix_front_page_seo_title')!='') {
  22.     echo get_pix_option('pix_front_page_seo_title');
  23. } else {
  24.         wp_title( '|', true, 'right' );
  25.    
  26.         bloginfo( 'name' );
  27.    
  28.         $site_description = get_bloginfo( 'description', 'display' );
  29.         if ( $site_description && ( is_home() || is_front_page() ) )
  30.             echo " | $site_description";
  31.    
  32.         if ( $paged >= 2 || $page >= 2 )
  33.             echo ' | ' . sprintf( __( '%s' ), max( $paged, $page ) );
  34.     }?></title>
  35. <?php if((is_single()||is_page()) && $meta_seo && array_key_exists('description',$meta_seo)){ ?>
  36.         <meta name="description" content="<?php echo $meta_seo['description']; ?>">
  37.     <?php } elseif (get_pix_option('pix_front_page_seo_title')!=''&&is_home()) { ?>
  38.         <meta name="description" content="<?php echo get_pix_option('pix_front_page_seo_description'); ?>">
  39.     <?php }
  40.      if((is_single()||is_page()) && $meta_seo && array_key_exists('keywords',$meta_seo)){ ?>
  41.         <meta name="keywords" content="<?php echo $meta_seo['keywords']; ?>">
  42.     <?php } elseif (get_pix_option('pix_front_page_seo_title')!=''&&is_home()) { ?>
  43.         <meta name="keywords" content="<?php echo get_pix_option('pix_front_page_seo_keywords'); ?>">
  44. <?php } ?>
  45.     <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" >
  46.     <link rel="icon" href="<?php echo get_pix_option('pix_favicon_ico'); ?>" type="image/x-icon">
  47.     <link rel="shortcut icon" href="<?php echo get_pix_option('pix_favicon_ico'); ?>" type="image/x-icon">
  48.      
  49.        
  50. <meta name="viewport" content="width=1200" >    
  51.     <!--///////////////////////////////////////////////////////////////////////////////////////////////////
  52.     //
  53.     //      Scripts
  54.     //
  55.     ///////////////////////////////////////////////////////////////////////////////////////////////////-->
  56.     <?php
  57.         if(get_pix_option('pix_google_prevent') != '0') { wp_enqueue_script("google-font", "https://www.google.com/jsapi"); ?>
  58.         <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <?php }
  59.         wp_enqueue_script("jquery");
  60.         wp_enqueue_script("modernizr", get_bloginfo( 'stylesheet_directory' )."/scripts/modernizr-1.7.min.js");
  61.         wp_enqueue_script("colorBox", get_bloginfo( 'stylesheet_directory' )."/scripts/jquery.colorbox-min.js", array('jquery'));
  62.         wp_enqueue_script("qtip", get_bloginfo( 'stylesheet_directory' )."/scripts/jquery.qtip.min.js", array('jquery'));
  63.         wp_enqueue_script("jquery-hoverIntent", get_bloginfo( 'stylesheet_directory' )."/scripts/jquery.hoverIntent.minified.js", array('jquery'));
  64.         wp_enqueue_script("jquery-easing", get_bloginfo( 'stylesheet_directory' )."/scripts/jquery.easing.1.3.js", array('jquery'));
  65.         wp_enqueue_script("jquery-thumbnailScroller", get_bloginfo( 'stylesheet_directory' )."/scripts/jquery.thumbnailScroller.js", array('jquery'));
  66.         wp_enqueue_script("swfobject");
  67.         wp_enqueue_script("flowplayer", get_bloginfo( 'stylesheet_directory' )."/scripts/flowplayer-3.2.6.min.js", array('jquery'));
  68.         wp_enqueue_script("projekktor", get_bloginfo( 'stylesheet_directory' )."/scripts/projekktor.min.js", array('jquery'));
  69.         wp_enqueue_script("pixwall", get_bloginfo( 'stylesheet_directory' )."/scripts/pixwall.js", array('jquery'));
  70.         wp_enqueue_script("custom", get_bloginfo( 'stylesheet_directory' )."/scripts/custom.php", array('jquery'));
  71.         wp_enqueue_script("cufon", get_bloginfo( 'stylesheet_directory' )."/scripts/cufon-yui.js", array('jquery'));
  72.         wp_enqueue_script("icons", get_bloginfo( 'stylesheet_directory' )."/fonts/icons.js", array('cufon'));
  73.     ?>
  74.    
  75.    
  76.    
  77.     <!--///////////////////////////////////////////////////////////////////////////////////////////////////
  78.     //
  79.     //      Styles
  80.     //
  81.     ///////////////////////////////////////////////////////////////////////////////////////////////////-->
  82.     <link rel="stylesheet" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" > <!-- default stylesheet -->
  83.     <link rel="stylesheet" media="all" href="<?php bloginfo( 'stylesheet_directory' ); ?>/style.php" > <!-- general stylesheet -->
  84.  
  85.     <!--[if lt IE 9]>
  86.     <script src="<?php echo get_bloginfo('stylesheet_directory'); ?>/scripts/html5.js"></script>
  87.     <![endif]-->
  88.     <?php
  89.         if ( is_singular() && get_pix_option( 'thread_comments' ) )
  90.             wp_enqueue_script( 'comment-reply' );
  91.    
  92.        
  93.         wp_head();
  94.     ?>
  95. <script type="text/javascript">
  96. /******************************************************
  97. *
  98. *   Cufon init
  99. *
  100. ******************************************************/
  101.     Cufon.replace('.icons, .icon a , .submenu, label.error, #pix_controls span, #scrollCommands', {
  102.         fontFamily: 'icons'
  103.     });
  104.    
  105. </script>
  106. </head>
  107. <body <?php body_class(); ?>>
  108. <div id="topto"></div>
  109. <div id="wide_flash" data-position="fixed" data-top="0" data-bottom="not"></div>
  110. <?php
  111. function default_bg(){
  112.     if(get_pix_option('pix_general_background')=='slideshow'){ ?>
  113.         <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  114.             <?php
  115.             $slide_general = get_pix_option('pix_array_slide_general_');
  116.             foreach ($slide_general as $slide) {
  117.                 echo '<div data-src="'. $slide .'" data-thumb="'. get_pix_thumb($slide, 'exTh') .'" data-content="'. get_pix_content($slide) .'"></div>';
  118.             }
  119.              
  120.             ?>
  121.         </div>
  122.         <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  123.         <div id="pixwall_bar" style="display:none"></div><!-- #pixwall_bar -->
  124.         <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  125.  
  126.     <?php } elseif (get_pix_option('pix_general_background')=='single_wide') { ?>
  127.         <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  128.             <div data-src="<?php echo get_pix_option('pix_wide_image_general'); ?>"></div>
  129.         </div>
  130.         <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  131.         <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  132.  
  133.     <?php } elseif (get_pix_option('pix_general_background')=='video') {
  134.    
  135.         echo getTheWideVideo(get_pix_option('pix_wide_video_general'),get_pix_option('pix_wide_video_general_start'),get_pix_option('pix_wide_video_general_loop') );
  136.         echo '<div id="hide_credits_pictures"><div id="pix_credits_pictures">'.get_pix_content(get_pix_option('pix_wide_video_general')).'</div></div>';
  137.        
  138.     } elseif (get_pix_option('pix_general_background')=='googlemap') { ?>
  139. <script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=true'></script>
  140. <div id="outer_canvas" style="width: 100%; height: 100%; left:0; overflow:hidden; position:fixed; z-index:0" data-position="fixed" data-top="0" data-bottom="not" data-height="100">
  141. <div id="map_canvas" data-coord1="<?php $coords = findCoords(get_pix_option('pix_wide_googlemap_general')); echo $coords[0]; ?>" data-coord2="<?php echo $coords[1]; ?>" data-zoom="<?php echo get_pix_option('pix_wide_googlemap_general_zoom'); ?>" data-indications="<?php echo htmlspecialchars(get_pix_option('pix_wide_googlemap_general_indications')); ?>" data-type="<?php echo get_pix_option('pix_wide_googlemap_general_type'); ?>" style="width: 100%; height: 100%; position: absolute; left:0; z-index:0" data-height="100">
  142. </div>
  143. </div>
  144.     <?php }
  145. }
  146. global $custom_options; $meta_image = get_post_meta(get_the_ID(), $custom_options->get_the_id(), TRUE);
  147.  
  148. if (is_home() && get_pix_option('pix_home_background') == 'slideshow') { ?>
  149.  
  150. <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  151.     <?php
  152.     if(get_pix_option('pix_array_slide_home_')!=''){
  153.         $slide_home = get_pix_option('pix_array_slide_home_');
  154.         foreach ($slide_home as $slide) {
  155.             echo '<div data-src="'. $slide .'" data-thumb="'. get_pix_thumb($slide, 'exTh') .'" data-content="'. get_pix_content($slide) .'"></div>';
  156.         }
  157.     }
  158.      
  159.     ?>
  160. </div>
  161. <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  162. <div id="pixwall_bar" style="display:none"></div><!-- #pixwall_bar -->
  163. <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  164.  
  165.  
  166. <?php } elseif (is_home() && get_pix_option('pix_home_background') == 'single') { ?>
  167. <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  168.     <div data-src="<?php echo get_pix_option('pix_wide_image_home'); ?>"></div>
  169. </div>
  170. <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  171. <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  172.  
  173.  
  174. <?php } elseif (is_home() && get_pix_option('pix_home_background') == 'video') {
  175.         echo getTheWideVideo(get_pix_option('pix_wide_video_home'),get_pix_option('pix_wide_video_home_start'),get_pix_option('pix_wide_video_home_loop') );
  176.         echo '<div id="hide_credits_pictures"><div id="pix_credits_pictures">'.get_pix_content(get_pix_option('pix_wide_video_home')).'</div></div>';
  177.  
  178.  
  179.  
  180. } elseif (is_home() && get_pix_option('pix_home_background') == 'googlemap') { ?>
  181. <script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=true'></script><div id="outer_canvas" style="width: 100%; height: 100%; left:0; overflow:hidden; position:fixed; z-index:0" data-position="fixed" data-top="0" data-bottom="not" data-height="100">
  182. <div id="map_canvas" data-coord1="<?php $coords = findCoords(get_pix_option('pix_wide_googlemap_home')); echo $coords[0]; ?>" data-coord2="<?php echo $coords[1]; ?>" data-zoom="<?php echo get_pix_option('pix_wide_googlemap_home_zoom'); ?>" data-indications="<?php echo htmlspecialchars(get_pix_option('pix_wide_googlemap_indications_home')); ?>" data-type="<?php echo get_pix_option('pix_wide_googlemap_type_home'); ?>" style="width: 100%; height: 100%; position: absolute; left:0; z-index:0" data-height="100">
  183. </div>
  184. </div>
  185.  
  186.  
  187. <?php } elseif ((is_single() || is_page()) && $meta_image['background']== 'singleimage') { ?>
  188. <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  189.     <div data-src="<?php echo $meta_image['single_image']; ?>"></div>
  190. </div>
  191. <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  192. <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  193.  
  194.  
  195. <?php } elseif ((is_single() || is_page()) && $meta_image['background']=='slideshow') { ?>
  196. <div class="pix_slide pixwall" data-position="fixed" data-top="0" data-bottom="not">
  197. <?php foreach ($meta_image['slideshow'] as $key=>$value) {
  198.     echo '<div id="slide_'.$key.'" data-src="'.$meta_image['slideshow'][$key]['link'].'" data-thumb="'.get_pix_thumb($meta_image['slideshow'][$key]['link'], 'exTh').'" data-content="'. get_pix_content($meta_image['slideshow'][$key]['link']) .'"></div>';
  199. } ?>
  200. </div>
  201. <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  202. <div id="pixwall_bar" style="display:none"></div><!-- #pixwall_bar -->
  203. <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  204.  
  205.  
  206. <?php } elseif ((is_single() || is_page()) && $meta_image['background']=='googlemap') { ?>
  207. <script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=true'></script>
  208. <div id="outer_canvas" style="width: 100%; height: 100%; left:0; overflow:hidden; position:fixed; z-index:0" data-position="fixed" data-top="0" data-bottom="not" data-height="100">
  209. <div id="map_canvas" data-coord1="<?php $coords = findCoords($meta_image['googlemap']); echo $coords[0]; ?>" data-coord2="<?php echo $coords[1]; ?>" data-zoom="<?php echo $meta_image['zoom']; ?>" data-indications="<?php echo htmlspecialchars($meta_image['indications']); ?>" data-type="<?php echo $meta_image['type']; ?>" style="width: 100%; height: 100%; position: absolute; left:0; z-index:0" data-height="100">
  210. </div>
  211. </div>
  212. <?php } elseif ((is_single() || is_page()) && $meta_image['background']=='video') {
  213.  
  214.         echo getTheWideVideo($meta_image['video'],$meta_image['video_start'],$meta_image['video_loop'] );
  215.         echo '<div id="hide_credits_pictures"><div id="pix_credits_pictures">'.get_pix_content($meta_image['video']).'</div></div>';
  216.  
  217. } elseif ((is_single() || is_page()) && $meta_image['background']=='none') { ?>
  218.  
  219.  
  220. <?php } elseif (is_category()){
  221.     $the_category = get_query_var('cat');
  222.     $pix_array_category = get_pix_option('pix_array_category_slide_'. $the_category.'_');
  223.     if(get_pix_option('pix_array_category_slide_'.$the_category)=='slideshow'){ ?>
  224. <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  225.     <?php foreach ($pix_array_category as $slide) {
  226.         echo '<div data-src="'. $slide .'" data-thumb="'. get_pix_thumb($slide, 'exTh') .'" data-content="'. get_pix_content($slide) .'"></div>';
  227.     }?>
  228. </div>
  229. <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  230. <div id="pixwall_bar" style="display:none"></div><!-- #pixwall_bar -->
  231. <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  232.  
  233. <?php } elseif(get_pix_option('pix_array_category_slide_'.$the_category)=='single'){ ?>
  234. <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  235.     <div data-src="<?php echo get_pix_option('pix_array_category_single_'. $the_category); ?>"></div>
  236. </div>
  237. <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  238. <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  239.  
  240. <?php } elseif(get_pix_option('pix_array_category_slide_'.$the_category)=='video'){
  241.         echo getTheWideVideo(get_pix_option('pix_array_category_video_'. $the_category),get_pix_option('pix_array_category_video_start_'. $the_category),get_pix_option('pix_array_category_video_loop_'. $the_category) );
  242.         echo '<div id="hide_credits_pictures"><div id="pix_credits_pictures">'.get_pix_content(get_pix_option('pix_array_category_video_'. $the_category)).'</div></div>';
  243.  
  244.  } elseif(get_pix_option('pix_array_category_slide_'.$the_category)=='googlemap'){ ?>
  245. <script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=true'></script>
  246. <div id="outer_canvas" style="width: 100%; height: 100%; left:0; overflow:hidden; position:fixed; z-index:0" data-position="fixed" data-top="0" data-bottom="not" data-height="100">
  247. <div id="map_canvas" data-coord1="<?php $coords = findCoords(get_pix_option('pix_array_category_googlemap_'. $the_category)); echo $coords[0]; ?>" data-coord2="<?php echo $coords[1]; ?>" data-zoom="<?php echo get_pix_option('pix_array_category_googlemap_zoom_'. $the_category); ?>" data-indications="<?php echo htmlspecialchars(get_pix_option('pix_array_category_googlemap_indications_'. $the_category)); ?>" data-type="<?php echo get_pix_option('pix_array_category_googlemap_type_'. $the_category); ?>" style="width: 100%; height: 100%; position: absolute; left:0; z-index:0" data-height="100">
  248. </div>
  249. </div>
  250.  
  251. <?php } else {
  252.         default_bg();
  253.     }
  254.  
  255. } elseif (is_tax()){
  256.     $the_term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
  257.     $the_term = $the_term->term_id;
  258.     $pix_array_term = get_pix_option('pix_array_term_slide_'. $the_term.'_');
  259.     if(get_pix_option('pix_array_term_slide_'.$the_term)=='slideshow'){ ?>
  260. <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  261.     <?php foreach ($pix_array_term as $slide) {
  262.         echo '<div data-src="'. $slide .'" data-thumb="'. get_pix_thumb($slide, 'exTh') .'" data-content="'. get_pix_content($slide) .'"></div>';
  263.     }?>
  264. </div>
  265. <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  266. <div id="pixwall_bar" style="display:none"></div><!-- #pixwall_bar -->
  267. <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  268.  
  269. <?php } elseif(get_pix_option('pix_array_term_slide_'.$the_term)=='single'){ ?>
  270. <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  271.     <div data-src="<?php echo get_pix_option('pix_array_term_single_'. $the_term); ?>"></div>
  272. </div>
  273. <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  274. <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  275. <?php } elseif(get_pix_option('pix_array_term_slide_'.$the_term)=='video'){
  276.         echo getTheWideVideo(get_pix_option('pix_array_term_video_'. $the_term),get_pix_option('pix_array_term_video_start_'. $the_term),get_pix_option('pix_array_term_video_loop_'. $the_term) );
  277.         echo '<div id="hide_credits_pictures"><div id="pix_credits_pictures">'.get_pix_content(get_pix_option('pix_array_term_video_'. $the_term)).'</div></div>';
  278.  
  279.  } elseif(get_pix_option('pix_array_term_slide_'.$the_term)=='googlemap'){ ?>
  280. <script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=true'></script>
  281. <div id="outer_canvas" style="width: 100%; height: 100%; left:0; overflow:hidden; position:fixed; z-index:0" data-position="fixed" data-top="0" data-bottom="not" data-height="100">
  282. <div id="map_canvas" data-coord1="<?php $coords = findCoords(get_pix_option('pix_array_term_googlemap_'. $the_term)); echo $coords[0]; ?>" data-coord2="<?php echo $coords[1]; ?>" data-zoom="<?php echo get_pix_option('pix_array_term_googlemap_zoom_'. $the_term); ?>"  data-indications="<?php echo htmlspecialchars(get_pix_option('pix_array_term_googlemap_indications_'. $the_term)); ?>" data-type="<?php echo get_pix_option('pix_array_term_googlemap_type_'. $the_term); ?>" style="width: 100%; height: 100%; position: absolute; left:0; z-index:0" data-height="100">
  283. </div>
  284. </div>
  285.  
  286. <?php } elseif(get_pix_option('pix_array_term_slide_'.$the_term)=='default'){
  287.         default_bg();
  288.     }
  289.  
  290. } elseif (is_archive()){
  291.     $pix_archive_slide = get_pix_option('pix_array_archive_slide_');
  292.     if(get_pix_option('pix_archive_slide')=='slideshow'){ ?>
  293. <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  294.     <?php foreach ($pix_archive_slide as $slide) {
  295.         echo '<div data-src="'. $slide .'" data-thumb="'. get_pix_thumb($slide, 'exTh') .'" data-content="'. get_pix_content($slide) .'"></div>';
  296.     }?>
  297. </div>
  298. <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  299. <div id="pixwall_bar" style="display:none"></div><!-- #pixwall_bar -->
  300. <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  301.  
  302. <?php } elseif(get_pix_option('pix_archive_slide')=='single') { ?>
  303.         <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  304.             <div data-src="<?php echo get_pix_option('pix_archive_single'); ?>"></div>
  305.         </div>
  306.         <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  307.         <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  308. <?php } elseif(get_pix_option('pix_archive_slide')=='video') {
  309.    
  310.         echo getTheWideVideo(get_pix_option('pix_archive_video'),get_pix_option('pix_archive_video_start'),get_pix_option('pix_archive_video_loop') );
  311.         echo '<div id="hide_credits_pictures"><div id="pix_credits_pictures">'.get_pix_content(get_pix_option('pix_archive_video')).'</div></div>';
  312.  
  313. } elseif(get_pix_option('pix_archive_slide')=='googlemap') { ?>
  314.     <script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=true'></script>
  315.     <div id="outer_canvas" style="width: 100%; height: 100%; left:0; overflow:hidden; position:fixed; z-index:0" data-position="fixed" data-top="0" data-bottom="not" data-height="100">
  316.     <div id="map_canvas" data-coord1="<?php $coords = findCoords(get_pix_option('pix_archive_googlemap')); echo $coords[0]; ?>" data-coord2="<?php echo $coords[1]; ?>" data-zoom="<?php echo get_pix_option('pix_archive_googlemap_zoom'); ?>" data-indications="<?php echo htmlspecialchars(get_pix_option('pix_archive_googlemap_indications')); ?>" data-type="<?php echo get_pix_option('pix_archive_googlemap_type'); ?>" style="width: 100%; height: 100%; position: absolute; left:0; z-index:0" data-height="100">
  317.     </div>
  318.     </div>
  319. <?php } elseif(get_pix_option('pix_archive_slide')=='default') {
  320.         default_bg();
  321.     }
  322.  
  323. } elseif (is_search()){
  324.     $pix_searchpage_slide = get_pix_option('pix_array_searchpage_slide_');
  325.     if(get_pix_option('pix_searchpage_slide')=='slideshow'){ ?>
  326. <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  327.     <?php foreach ($pix_searchpage_slide as $slide) {
  328.         echo '<div data-src="'. $slide .'" data-thumb="'. get_pix_thumb($slide, 'exTh') .'" data-content="'. get_pix_content($slide) .'"></div>';
  329.     } ?>
  330. </div>
  331. <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  332. <div id="pixwall_bar" style="display:none"></div><!-- #pixwall_bar -->
  333. <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  334.  
  335. <?php } elseif (get_pix_option('pix_searchpage_slide')=='single') { ?>
  336.         <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  337.             <div data-src="<?php echo get_pix_option('pix_searchpage_single'); ?>"></div>
  338.         </div>
  339.         <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  340.         <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  341. <?php } elseif (get_pix_option('pix_searchpage_slide')=='video') {
  342.  
  343.         echo getTheWideVideo(get_pix_option('pix_searchpage_video'),get_pix_option('pix_searchpage_video_start'),get_pix_option('pix_searchpage_video_loop') );
  344.         echo '<div id="hide_credits_pictures"><div id="pix_credits_pictures">'.get_pix_content(get_pix_option('pix_searchpage_video')).'</div></div>';
  345.  
  346. } elseif (get_pix_option('pix_searchpage_slide')=='googlemap') { ?>
  347.     <script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=true'></script>
  348.     <div id="outer_canvas" style="width: 100%; height: 100%; left:0; overflow:hidden; position:fixed; z-index:0" data-position="fixed" data-top="0" data-bottom="not" data-height="100">
  349.     <div id="map_canvas" data-coord1="<?php $coords = findCoords(get_pix_option('pix_searchpage_googlemap')); echo $coords[0]; ?>" data-coord2="<?php echo $coords[1]; ?>" data-zoom="<?php echo get_pix_option('pix_searchpage_googlemap_zoom'); ?>" data-indications="<?php echo htmlspecialchars(get_pix_option('pix_searchpage_googlemap_indications')); ?>" data-type="<?php echo get_pix_option('pix_searchpage_googlemap_type'); ?>" style="width: 100%; height: 100%; position: absolute; left:0; z-index:0" data-height="100">
  350.     </div>
  351.     </div>
  352. <?php } else {
  353.         default_bg();
  354.     }
  355.  
  356. } elseif (is_404()){
  357.     $pix_404_slide = get_pix_option('pix_array_404_slide_');
  358.     if(get_pix_option('pix_404_slide')=='slideshow'){ ?>
  359. <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  360.     <?php foreach ($pix_404_slide as $slide) {
  361.         echo '<div data-src="'. $slide .'" data-thumb="'. get_pix_thumb($slide, 'exTh') .'" data-content="'. get_pix_content($slide) .'"></div>';
  362.     } ?>
  363. </div>
  364. <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  365. <div id="pixwall_bar" style="display:none"></div><!-- #pixwall_bar -->
  366. <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  367.  
  368. <?php } elseif (get_pix_option('pix_404_slide')=='single') { ?>
  369.         <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  370.             <div data-src="<?php echo get_pix_option('pix_404_single'); ?>"></div>
  371.         </div>
  372.         <div id="pixwall_target" data-position="fixed" data-top="0" data-bottom="not"></div><!-- #pixwall_target -->
  373.         <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  374. <?php } elseif (get_pix_option('pix_404_slide')=='video') {
  375.  
  376.         echo getTheWideVideo(get_pix_option('pix_404_video'),get_pix_option('pix_404_video_start'),get_pix_option('pix_404_video_loop') );
  377.         echo '<div id="hide_credits_pictures"><div id="pix_credits_pictures">'.get_pix_content(get_pix_option('pix_404_video')).'</div></div>';
  378.  
  379. } elseif (get_pix_option('pix_404_slide')=='googlemap') { ?>
  380.     <script type='text/javascript' src='http://maps.google.com/maps/api/js?sensor=true'></script>
  381.     <div id="outer_canvas" style="width: 100%; height: 100%; left:0; overflow:hidden; position:fixed; z-index:0" data-position="fixed" data-top="0" data-bottom="not" data-height="100">
  382.     <div id="map_canvas" data-coord1="<?php $coords = findCoords(get_pix_option('pix_404_googlemap')); echo $coords[0]; ?>" data-coord2="<?php echo $coords[1]; ?>" data-zoom="<?php echo get_pix_option('pix_404_googlemap_zoom'); ?>" data-indications="<?php echo htmlspecialchars(get_pix_option('pix_404_googlemap_indications')); ?>" data-type="<?php echo get_pix_option('pix_404_googlemap_type'); ?>" style="width: 100%; height: 100%; position: absolute; left:0; z-index:0" data-height="100">
  383.     </div>
  384.     </div>
  385. <?php } else {
  386.         default_bg();
  387.     }
  388.  
  389. }  elseif (is_attachment()){  ?>
  390.         <div class="pix_slide" data-position="fixed" data-top="0" data-bottom="not">
  391.             <a href="<?php $image_bg = wp_get_attachment_image_src( get_the_id(), 'full' ); echo $image_bg[0]; ?>"></a>
  392.         </div>
  393.         <div class="pix_overlay_pattern"  data-position="fixed" data-top="0" data-bottom="not"></div>
  394.  
  395. <?php } else {
  396.     default_bg();
  397. }?>
  398.  
  399.     <header <?php if(get_pix_option('pix_header_position')!='scrollable') { ?>data-position="fixed" data-top="0" data-bottom="not"<?php } ?>>
  400.         <div id="logo">
  401.         <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
  402.             <<?php echo $heading_tag; ?>>
  403.                 <a href="<?php echo home_url( '/' ); ?>" title="<?php echo stripslashes(get_pix_option( 'pix_site_title' )); ?>"><?php echo stripslashes(get_pix_option( 'pix_site_title' )); ?>
  404.                 <small><?php echo stripslashes(get_pix_option( 'pix_site_description' )); ?></small></a>
  405.             </<?php echo $heading_tag; ?>>
  406.         </div><!-- #logo -->
  407.     </header>
  408.    
  409.     <nav<?php if(get_pix_option('pix_nav_position')!='scrollable') { ?> data-position="fixed" data-top="100" data-bottom="not"<?php } ?>>
  410.         <?php if (menuCount('primary_menu')!=0) { wp_nav_menu( array( 'container' => 'ul','theme_location' => 'primary_menu' ) ); } ?>
  411.         <?php if (menuCount('secondary_menu')!=0) { wp_nav_menu( array( 'container' => 'ul','theme_location' => 'secondary_menu','menu_id'=>'secondary' ) ); } ?>
  412.     </nav>
  413.    
  414.  
  415.     <?php if(get_pix_option('pix_social_bar')!='hidden'){ ?>
  416.     <div id="social_bar"<?php if(get_pix_option('pix_social_bar') == 'open' && get_pix_option('pix_header_position')!='scrollable'){ ?> data-position="fixed" data-top="-50" data-bottom="not" <?php } elseif(get_pix_option('pix_social_bar') != 'open' && get_pix_option('pix_header_position')!='scrollable') { ?>  data-position="fixed" data-top="-100" data-bottom="not"<?php } ?><?php if(get_pix_option('pix_social_bar') == 'open'){ ?> class="open"<?php } ?>>
  417.         <div class="wrapIn">
  418.             <?php if(get_pix_option('pix_seach_show')=='show') { get_search_form(); } ?>
  419.             <?php if (get_pix_option('pix_twitter_icon')=='show' || get_pix_option('pix_google_icon')=='show' || get_pix_option('pix_facebook_icon')=='show' || get_pix_option('pix_tumblr_icon')=='show' || get_pix_option('pix_linkedin_icon')=='show' || get_pix_option('pix_myspace_icon')=='show' || get_pix_option('pix_flickr_icon')=='show' || get_pix_option('pix_youtube_icon')=='show' || get_pix_option('pix_vimeo_icon')=='show' || get_pix_option('pix_behance_icon')=='show' || get_pix_option('pix_500px_icon')=='show' || get_pix_option('pix_soundcloud_icon')=='show' || get_pix_option('pix_skype_icon')=='show' || get_pix_option('pix_rss_icon')=='show'){ ?>
  420.             <div class="icon">
  421.                 <?php if (get_pix_option('pix_twitter_icon')=='show'){ ?><a id="pix_twitter_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_twitter_text')); ?>" href="<?php echo get_pix_option('pix_twitter_url'); ?>" target="_blank">t</a><?php } ?>
  422.                 <?php if (get_pix_option('pix_google_icon')=='show'){ ?><a id="pix_google_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_google_text')); ?>" href="<?php echo get_pix_option('pix_google_url'); ?>" rel="author" target="_blank">g</a><?php } ?>
  423.                 <?php if (get_pix_option('pix_facebook_icon')=='show'){ ?><a id="pix_facebook_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_facebook_text')); ?>" href="<?php echo get_pix_option('pix_facebook_url'); ?>" target="_blank">f</a><?php } ?>
  424.                 <?php if (get_pix_option('pix_tumblr_icon')=='show'){ ?><a id="pix_tumblr_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_tumblr_text')); ?>" href="<?php echo get_pix_option('pix_tumblr_url'); ?>" target="_blank">u</a><?php } ?>
  425.                 <?php if (get_pix_option('pix_linkedin_icon')=='show'){ ?><a id="pix_linkedin_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_linkedin_text')); ?>" href="<?php echo get_pix_option('pix_linkedin_url'); ?>" target="_blank">l</a><?php } ?>
  426.                 <?php if (get_pix_option('pix_myspace_icon')=='show'){ ?><a id="pix_myspace_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_myspace_text')); ?>" href="<?php echo get_pix_option('pix_myspace_url'); ?>" target="_blank">m</a><?php } ?>
  427.                 <?php if (get_pix_option('pix_flickr_icon')=='show'){ ?><a id="pix_flickr_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_flickr_text')); ?>" href="<?php echo get_pix_option('pix_flickr_url'); ?>" target="_blank">R</a><?php } ?>
  428.                 <?php if (get_pix_option('pix_youtube_icon')=='show'){ ?><a id="pix_youtube_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_youtube_text')); ?>" href="<?php echo get_pix_option('pix_youtube_url'); ?>" target="_blank">y</a><?php } ?>
  429.                 <?php if (get_pix_option('pix_vimeo_icon')=='show'){ ?><a id="pix_vimeo_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_vimeo_text')); ?>" href="<?php echo get_pix_option('pix_vimeo_url'); ?>" target="_blank">v</a><?php } ?>
  430.                 <?php if (get_pix_option('pix_behance_icon')=='show'){ ?><a id="pix_behance_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_behance_text')); ?>" href="<?php echo get_pix_option('pix_behance_url'); ?>" target="_blank">b</a><?php } ?>
  431.                 <?php if (get_pix_option('pix_500px_icon')=='show'){ ?><a id="pix_500px_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_500px_text')); ?>" href="<?php echo get_pix_option('pix_500px_url'); ?>" target="_blank">5</a><?php } ?>
  432.                 <?php if (get_pix_option('pix_soundcloud_icon')=='show'){ ?><a id="pix_soundcloud_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_soundcloud_text')); ?>" href="<?php echo get_pix_option('pix_soundcloud_url'); ?>" target="_blank">C</a><?php } ?>
  433.                 <?php if (get_pix_option('pix_skype_icon')=='show'){ ?><a id="pix_skype_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_skype_text')); ?>" href="skype:<?php echo get_pix_option('pix_skype_id'); ?>?<?php echo get_pix_option('pix_skype_action'); ?>">s</a><?php } ?>
  434.                 <?php if (get_pix_option('pix_rss_icon')=='show'){ ?><a id="pix_rss_icon" class="pix_tips_TR" title="<?php echo stripslashes(get_pix_option('pix_rss_text')); ?>" href="<?php echo get_pix_option('pix_rss_url'); ?>" target="_blank">r</a><?php } ?>
  435.             </div>
  436.             <?php } ?>
  437.         </div><!-- .wrapIn -->
  438.     </div><!-- #social_bar -->
  439.     <?php if(get_pix_option('pix_social_bar') == 'closed') { ?>
  440.     <span class="click icons"<?php if(get_pix_option('pix_header_position')!='scrollable') { ?> data-position="fixed" data-top="0" data-bottom="not"<?php } ?>>_</span>
  441.     <?php } else { ?>
  442.     <span class="click icons"<?php if(get_pix_option('pix_header_position')!='scrollable') { ?> data-position="fixed" data-top="0" data-bottom="not"<?php } ?>>^</span>
  443.     <?php } ?>
  444.      <?php } ?>
  445.    
  446. <div id="body">
  447.  
  448.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement