Advertisement
oocieni

header_3.2.9.2

Mar 17th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.70 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. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery.carouFredSel-4.4.1-packed.js"></script>
  36. <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/caroussel.css" />
  37. <!-- Carroussel -->
  38. <script type="text/javascript" language="javascript">
  39.     jQuery(document).ready(function($){    
  40.     $.fn.pause = function(duration) {
  41.     $(this).animate({ dummy: 1 }, duration);
  42.     return this;
  43.     };
  44.     $(".carousel").pause(1000).show();
  45.     $(".carousel").carouFredSel({
  46.     items             : {
  47.         visible            : 7,
  48.         height            : 180,
  49.         width    : 138
  50.         //width           : "variable"
  51.     },auto: true,
  52.     pagination  : "#foo3_pag",
  53.     prev : "#foo3_prev",
  54.     next : "#foo3_next",
  55.     scroll             : {
  56.     pauseOnHover: true,
  57.         items            : 7,
  58.         duration        : 1000,
  59.         pauseDuration    : 10000
  60.     }
  61.     })
  62. });
  63. </script>
  64.  
  65. </head>
  66. <body <?php body_class('no-js no-fx'); // these classes are removed with js in the "before_page" hook below ?>>
  67.  
  68.   <?php atom()->action('before_page'); ?>
  69.  
  70.   <?php if(atom()->menuExists('top')): ?>
  71.   <div class="nav nav-top">
  72.     <div class="page-content">
  73.       <?php atom()->menu($location = 'top', $classes = 'slide-down'); ?>
  74.     </div>
  75.   </div>
  76.   <?php endif; ?>
  77.  
  78.   <!-- page -->
  79.   <div id="page">
  80.  
  81.     <?php atom()->action('top'); ?>
  82.  
  83.     <div id="page-ext">
  84.  
  85.       <!-- header -->
  86.       <div id="header">
  87.         <div class="page-content">
  88.           <div id="site-title" class="clear-block">
  89.             <?php atom()->logo(); ?>
  90.             <?php if(get_bloginfo('description')): ?><div class="headline"><?php bloginfo('description'); ?></div><?php endif; ?>
  91.           </div>
  92.  
  93.           <div class="carousel" style="">
  94.             <?php
  95.  
  96.             //The Query
  97.             $my_query = new WP_Query('category_name=Animation&posts_per_page=21&orderby=rand');
  98.             while ($my_query->have_posts()) : $my_query->the_post(); ?>
  99.  
  100.             <?php get_the_image( array( 'image_scan' => true, 'width' => '100px', 'height' => '140px') ); ?>
  101.  
  102.             <?php endwhile; wp_reset_query();?>  
  103.         </div>
  104.        
  105.         </div>
  106.  
  107.         <?php atom()->action('before_primary_menu'); ?>
  108.        
  109.         <div class="shadow-left page-content">
  110.           <div class="shadow-right nav nav-main" role="navigation">
  111.             <?php atom()->menu($location = 'primary', $classes = 'slide-down fadeThis', $fallback = 'pageMenu'); ?>
  112.           </div>
  113.           <?php atom()->action('social_media_links'); ?>
  114.         </div>
  115.  
  116.       </div>
  117.       <!-- /header -->
  118.  
  119.       <?php atom()->action('before_main'); ?>
  120.  
  121.       <!-- main -->
  122.       <div id="main" class="page-content">
  123.         <div id="main-ext" class="clear-block">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement