Advertisement
oocieni

Header.php

Apr 18th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.41 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4.  * @template  Mystique
  5.  * @revised   December 20, 2011
  6.  * @author    digitalnature, http://digitalnature.eu
  7.  * @license   GPL, http://www.opensource.org/licenses/gpl-license
  8.  */
  9.  
  10. // Header template part, used by all pages on the site.
  11. // Handles the document head, and the page header section (usually main menu, logo, featured content)
  12.  
  13. ?>
  14. <!DOCTYPE html>
  15. <html <?php language_attributes('html'); ?>>
  16.  
  17. <head>
  18.   <meta charset="<?php bloginfo('charset'); ?>" />
  19.  
  20.   <title><?php atom()->documentTitle(); ?></title>
  21.  
  22.   <?php atom()->metaDescription(); ?>
  23.   <?php atom()->favicon(); ?>
  24.  
  25.   <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  26.  
  27.   <!--[if lte IE 7]>
  28.   <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/ie.css" type="text/css" media="screen" />
  29.   <![endif]-->
  30.  
  31.   <?php wp_head(); ?>
  32.  
  33.  
  34. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery.js"></script>
  35.  
  36. <script language="JavaScript" type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/contentflow.js" load="lightbox"></script>
  37. <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/contentflow.css" />
  38.  
  39. </head>
  40. <body <?php body_class('no-js no-fx'); // these classes are removed with js in the "before_page" hook below ?>>
  41.  
  42.   <?php atom()->action('before_page'); ?>
  43.  
  44.   <?php if(atom()->menuExists('top')): ?>
  45.   <div class="nav nav-top">
  46.     <div class="page-content">
  47.       <?php atom()->menu($location = 'top', $classes = 'slide-down'); ?>
  48.     </div>
  49.   </div>
  50.   <?php endif; ?>
  51.  
  52.   <!-- page -->
  53.   <div id="page">
  54.  
  55.     <?php atom()->action('top'); ?>
  56.  
  57.     <div id="page-ext">
  58.  
  59.       <!-- header -->
  60.       <div id="header">
  61.         <div class="page-content">
  62.           <div id="site-title" class="clear-block">
  63.             <?php atom()->logo(); ?>
  64.             <?php if(get_bloginfo('description')): ?><div class="headline"><?php bloginfo('description'); ?></div><?php endif; ?>
  65.           </div>
  66.  
  67. <div class="ContentFlow">
  68.             <div class="loadIndicator"><div class="indicator"></div></div>
  69.             <div class="flow">
  70.            
  71. <?php
  72.            
  73.             $my_query = new WP_Query('category_name=Animation&posts_per_page=21&orderby=rand');
  74.            
  75.             while ($my_query->have_posts()) : $my_query->the_post();
  76.            
  77.                 $values = get_post_custom_values("dvd_cover");
  78.                 //get_the_image( array( 'image_scan' => true, 'width' => '100px', 'height' => '140px') );
  79.                 $photo=$values[0];
  80.                 echo '<a class="item test" href="'.get_permalink().'" ><img class="content" src="'.$photo.'" title="'.$titrevf.'"/></a>';
  81.             endwhile; wp_reset_query();?>
  82.  
  83.                 <!-- Add as many items as you like. -->
  84.             </div>
  85.             <div class="globalCaption"></div>
  86.             <div class="scrollbar"><div class="slider"><div class="position"></div></div></div>
  87.         </div>
  88.  
  89.         </div>
  90.  
  91.         <?php atom()->action('before_primary_menu'); ?>
  92.        
  93.         <div class="shadow-left page-content">
  94.           <div class="shadow-right nav nav-main" role="navigation">
  95.             <?php atom()->menu($location = 'primary', $classes = 'slide-down fadeThis', $fallback = 'pageMenu'); ?>
  96.           </div>
  97.           <?php atom()->action('social_media_links'); ?>
  98.         </div>
  99.  
  100.       </div>
  101.       <!-- /header -->
  102.  
  103.       <?php atom()->action('before_main'); ?>
  104.  
  105.       <!-- main -->
  106.       <div id="main" class="page-content">
  107.         <div id="main-ext" class="clear-block">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement