Advertisement
Guest User

header.php

a guest
Dec 8th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. <?php /* ATOM/digitalnature */
  2.  
  3. // Header template, used by all pages.
  4. // Handles the document head, and the page header section (usually menus, logo, featured posts)
  5.  
  6. ?>
  7. <!DOCTYPE html>
  8. <html <?php language_attributes('html'); ?>>
  9.  
  10. <head>
  11. <meta charset="<?php bloginfo('charset'); ?>" />
  12.  
  13. <title><?php $app->DocumentTitle(); ?></title>
  14.  
  15. <?php $app->MetaDescription(); ?>
  16. <?php $app->Favicon(); ?>
  17.  
  18. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  19.  
  20. <!--[if lte IE 7]>
  21. <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/ie.css" type="text/css" media="screen" />
  22. <![endif]-->
  23.  
  24. <?php wp_head(); ?>
  25.  
  26.  
  27. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/carrousel.css" />
  28. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.js"></script>
  29. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.carouFredSel-4.4.1-packed.js"></script>
  30.  
  31. <!-- Carroussel -->
  32. <script type="text/javascript" language="javascript">
  33. jQuery(document).ready(function($){
  34. $.fn.pause = function(duration) {
  35. $(this).animate({ dummy: 1 }, duration);
  36. return this;
  37. };
  38. $(".carousel").pause(1000).show();
  39. $(".carousel").carouFredSel({
  40. items : {
  41. visible : 7,
  42. height : 180,
  43. width : 138
  44. //width : "variable"
  45. },auto: true,
  46. scroll : {
  47. pauseOnHover: true,
  48. items : 7,
  49. duration : 1000,
  50. pauseDuration : 10000
  51. }
  52. })
  53. });
  54. </script>
  55.  
  56.  
  57. </head>
  58. <body <?php body_class('no-js no-fx'); // these classes are removed with js in the "before_page" hook below ?>>
  59.  
  60. <?php $app->action('before_page'); ?>
  61.  
  62. <?php if(has_nav_menu($location = 'top')): ?>
  63. <div class="nav nav-top">
  64. <div class="page-content">
  65. <?php $app->Menu($location = 'top', $classes = 'slide-down'); ?>
  66. </div>
  67. </div>
  68. <?php endif; ?>
  69.  
  70. <!-- page -->
  71. <div id="page">
  72.  
  73. <?php $app->action('top'); ?>
  74.  
  75. <div id="page-ext">
  76.  
  77. <!-- header -->
  78. <div id="header">
  79. <div class="page-content">
  80. <div id="site-title" class="clear-block">
  81. <?php $app->Logo(); ?>
  82. <?php if(get_bloginfo('description')): ?><div class="headline"><?php bloginfo('description'); ?></div><?php endif; ?>
  83. </div>
  84.  
  85.  
  86. <!-- Caroussel -->
  87. <div class="carousel" style="">
  88. <?php
  89. //The Query
  90. $my_query = new WP_Query('posts_per_page=24&orderby=rand');
  91. while ($my_query->have_posts()) : $my_query->the_post(); ?>
  92. <?php get_the_image( array( 'image_scan' => true, 'width' => '100px', 'height' => '140px') ); ?>
  93. <?php endwhile; wp_reset_query();?>
  94. </div>
  95. </div>
  96.  
  97.  
  98. <div class="shadow-left page-content">
  99. <div class="shadow-right nav nav-main" role="navigation">
  100. <?php $app->Menu($location = 'primary', $classes = 'slide-down', $fallback = 'pageMenu'); ?>
  101. </div>
  102. <?php $app->SocialMediaLinks($classes = 'fadeThis', $nudge_direction = 'top', $nudge_amount = 10); ?>
  103. </div>
  104.  
  105. </div>
  106. <!-- /header -->
  107.  
  108. <?php $app->action('before_main'); ?>
  109.  
  110. <!-- main -->
  111. <div id="main" class="page-content">
  112. <div id="main-ext" class="clear-block">
  113.  
  114.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement