Advertisement
Guest User

header_V2.php

a guest
Apr 24th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.65 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.     atom()->favicon();
  24.   ?>
  25.  
  26.   <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  27.  
  28.   <!--[if lte IE 7]>
  29.   <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/ie.css" type="text/css" media="screen" />
  30.   <![endif]-->
  31.  
  32.   <?php wp_head(); ?>
  33.  
  34.  
  35.   <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery.js" ></script>
  36.  
  37.   <script language="JavaScript" type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/contentflow.js" ></script>
  38.   <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/contentflow.css" />
  39.  
  40. </head>
  41. <body <?php body_class('no-js no-fx'); ?>> <!-- these classes are removed with js in the "before_page" hook below -->
  42.  
  43.   <?php atom()->action('before_page');
  44.     if(atom()->menuExists('top')):
  45.   ?>
  46.  
  47.   <div class="nav nav-top">
  48.     <div class="page-content">
  49.       <?php atom()->menu($location = 'top', $classes = 'slide-down'); ?>
  50.     </div>
  51.   </div>
  52.   <?php endif; ?>
  53.  
  54.   <!-- page -->
  55.   <div id="page">
  56.     <?php atom()->action('top'); ?>
  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.                   if(get_bloginfo('description')): ?>
  65.         <div class="headline">
  66.         <?php bloginfo('description'); ?>
  67.         </div>
  68.         <?php endif; ?>
  69.           </div>
  70.  
  71.       <div class="ContentFlow">
  72.         <div class="loadIndicator"><div class="indicator"></div>
  73.       </div>
  74.       <div class="flow">
  75.         <?php
  76.             //$my_query = new WP_Query('category_name=Policier&posts_per_page=21&orderby=rand');
  77.             $my_query = new WP_Query(array('post_type' => 'post'));
  78.  
  79.             //while ($my_query->have_posts()) : $my_query->the_post();
  80.             if($my_query->have_posts()) : while($my_query->have_posts()) : $my_query->the_post();
  81.             //while ( have_posts() ) : the_post();
  82.                 $values = get_post_custom_values("dvd_cover");
  83.                 //get_the_image( array( 'image_scan' => true, 'width' => '100px', 'height' => '140px') );
  84.                 $photo=$values[0];
  85.                 echo '<a class="item test" href="'.get_permalink().'" ><img class="content" src="'.$photo.'" title="'.$titrevf.'"/></a>';
  86.             //endwhile; wp_reset_query();
  87.             endwhile;endif;
  88.         ?>
  89.  
  90.         <!-- Add as many items as you like. -->
  91.       </div>
  92.       <div class="globalCaption"></div>
  93.       <div class="scrollbar">
  94.         <div class="slider">
  95.             <div class="position"></div>
  96.         </div>
  97.       </div>
  98.     </div>
  99.       </div>
  100.  
  101.       <?php atom()->action('before_primary_menu'); ?>
  102.  
  103.       <div class="shadow-left page-content">
  104.           <div class="shadow-right nav nav-main" role="navigation">
  105.             <?php atom()->menu($location = 'primary', $classes = 'slide-down fadeThis', $fallback = 'pageMenu'); ?>
  106.           </div>
  107.           <?php atom()->action('social_media_links'); ?>
  108.       </div>
  109.     </div>
  110.     <!-- /header -->
  111.  
  112.     <?php atom()->action('before_main'); ?>
  113.  
  114.     <!-- main -->
  115.     <div id="main" class="page-content" >
  116.     <div id="main-ext" class="clear-block" >
  117.   </div>
  118. </body>
  119. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement