Advertisement
Guest User

header.php

a guest
Sep 19th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.24 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  3. <head profile="http://gmpg.org/xfn/11">
  4. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  5. <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
  6.  
  7. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  8. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/supersized.css" media="screen" />
  9. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/prettyphoto.css" media="screen" />
  10. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  11. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
  12. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  13.  
  14.  
  15. <?php
  16. wp_enqueue_script('jquery');
  17. wp_enqueue_script('superfish', get_stylesheet_directory_uri() .'/js/superfish.js');
  18. wp_enqueue_script('effects', get_stylesheet_directory_uri() .'/js/effects.js');
  19. wp_enqueue_script('supersized', get_stylesheet_directory_uri() .'/js/supersized.3.1.3.min.js');
  20. wp_enqueue_script('prettyphoto', get_stylesheet_directory_uri() .'/js/jquery.prettyPhoto.js');
  21. ?>
  22.  
  23. <?php wp_get_archives('type=monthly&format=link'); ?>
  24. <?php //comments_popup_script(); // off by default ?>
  25.  
  26. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); wp_head(); ?>
  27.  
  28.  
  29. <script type="text/javascript">
  30.  
  31. jQuery(function($){
  32. $.supersized({
  33.  
  34. //Functionality
  35. slideshow : 1, //Slideshow on/off
  36. autoplay : 1, //Slideshow starts playing automatically
  37. start_slide : 1, //Start slide (0 is random)
  38. random : 0, //Randomize slide order (Ignores start slide)
  39. slide_interval : 5000, //Length between transitions
  40. transition : 1, //0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left
  41. transition_speed : 1000, //Speed of transition
  42. new_window : 1, //Image links open in new window/tab
  43. pause_hover : 0, //Pause slideshow on hover
  44. keyboard_nav : 1, //Keyboard navigation on/off
  45. performance : 1, //0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit)
  46. image_protect : 1, //Disables image dragging and right click with Javascript
  47.  
  48. //Size & Position
  49. min_width : 0, //Min width allowed (in pixels)
  50. min_height : 0, //Min height allowed (in pixels)
  51. vertical_center : 1, //Vertically center background
  52. horizontal_center : 1, //Horizontally center background
  53. fit_portrait : 1, //Portrait images will not exceed browser height
  54. fit_landscape : 0, //Landscape images will not exceed browser width
  55.  
  56. //Components
  57. navigation : 1, //Slideshow controls on/off
  58. thumbnail_navigation : 1, //Thumbnail navigation
  59. slide_counter : 1, //Display slide numbers
  60. slide_captions : 1, //Slide caption (Pull from "title" in slides array)
  61. slides : [ //Slideshow Images
  62.  
  63. /* {image : '<?php bloginfo('stylesheet_directory'); ?>/slides/1.jpg'},
  64. {image : '<?php bloginfo('stylesheet_directory'); ?>/slides/2.jpg'},
  65. {image : '<?php bloginfo('stylesheet_directory'); ?>/slides/3.jpg'},
  66. {image : '<?php bloginfo('stylesheet_directory'); ?>/slides/4.jpg'},
  67. {image : '<?php bloginfo('stylesheet_directory'); ?>/slides/5.jpg'},
  68. {image : '<?php bloginfo('stylesheet_directory'); ?>/slides/6.jpg'},
  69. {image : '<?php bloginfo('stylesheet_directory'); ?>/slides/7.jpg'},
  70. {image : '<?php bloginfo('stylesheet_directory'); ?>/slides/8.jpg'},
  71. {image : '<?php bloginfo('stylesheet_directory'); ?>/slides/9.jpg'} */
  72.  
  73.  
  74.  
  75. <?php
  76. // The Query
  77. query_posts( 'post_type=slides&posts_per_page=-1&orderby=' );
  78. $i=0;
  79. while ( have_posts() ) : the_post();
  80. $simg=get_post_meta($post->ID, 'wtf_slide', true);
  81. if ($i > 0) : echo ','; else: echo ''; endif; //For IE sake add a coma BEFORE every image offsetting the first one.
  82. echo "{image : '".$simg."'}";
  83. $i++;
  84. endwhile;
  85. wp_reset_query();
  86. ?>
  87. ]
  88.  
  89. });
  90. });
  91. </script>
  92.  
  93.  
  94.  
  95. </head>
  96. <body>
  97.  
  98. <div id="masthead" class="clearfix"><!-- masthead begin -->
  99.  
  100. <div id="top">
  101. <h1 class="logo"><a href="<?php bloginfo('siteurl');?>/" title="<?php bloginfo('name');?>"><?php bloginfo('name');?></a></h1>
  102. </div>
  103.  
  104. <div id="botmenu" class="clearfix">
  105. <?php wp_nav_menu( array( 'container_id' => 'submenu', 'theme_location' => 'primary','menu_class'=>'sf-menu sf-vertical','fallback_cb'=> 'fallbackmenu' ) ); ?>
  106. </div>
  107.  
  108. <div class="strigger">
  109. <span class="trig"></span>
  110. </div>
  111.  
  112. </div><!--end masthead-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement