Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: PHP  |  size: 1.95 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?>>
  3. <head>
  4. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  5. <title><?php the_title(); ?></title>
  6. <link rel="profile" href="http://gmpg.org/xfn/11" />
  7. <style type="text/css" media="screen">
  8. @import url( <?php bloginfo('stylesheet_url'); ?> );
  9. </style>
  10. <style type="text/css" media="print">
  11. @import url( <?php bloginfo('stylesheet_url'); ?> );
  12. </style>
  13. <?php if(detect_ie()): ?>
  14. <style type="text/css" media="screen">
  15. @import url('<?php bloginfo('template_url'); ?>/style_ie7.css');
  16. </style>
  17. <?php endif; ?>
  18.  
  19.  
  20. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  21. <script src="<?php bloginfo('template_directory'); ?>/javascript/jquery-1.4.2.js" type="text/javascript"></script>
  22.  
  23. <script type="text/javascript">
  24. $(document).ready(function() {
  25.   //var background = $('#photo-area .background-image');
  26.   //var ratio = background.width() / background.height();
  27.   //background.removeClass('background-image').addClass('background');
  28.  
  29.   $(window).resize(function() {
  30.     //background.css('height', Math.round(background.width() / ratio) + 'px');
  31.  
  32.     var photo_and_wrapper = ($('#photo-area').height() + $('#wrapper:not(.gallery)').height());
  33.     if($(window).height() > photo_and_wrapper) {
  34.       $('#wrapper:not(.gallery)').css('padding-top', ($(window).height() - photo_and_wrapper) + 'px');
  35.     }
  36.   });
  37.   setTimeout(function() {
  38.     $(window).resize();
  39.   }, 1);
  40.  
  41.   $('*:not(input)').keydown(function(event) {
  42.     if(event.keyCode == '39') {
  43.       featured_next();
  44.     } else if(event.keyCode == '37') {
  45.       featured_previous();
  46.     }
  47.   });
  48.  
  49.   $('#nav_up').hover(function() {
  50.     $('#nav_up .pages li:not(.current_page_item)').show(400, function() {$('#nav_up').removeClass('minimized');});
  51.   }, function() {
  52.     $('#nav_up .pages li:not(.current_page_item)').hide(400, function() {$('#nav_up').addClass('minimized');});
  53.   });
  54. });
  55. </script>
  56. <?php wp_head();?>
  57. </head>
  58. <body>