Advertisement
Guest User

Untitled

a guest
May 10th, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 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.  
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.  
  5. <head profile="http://gmpg.org/xfn/11">
  6.  
  7. <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
  8.  
  9. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  10. <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->
  11. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  12. <link rel="stylesheet" href="http://blog.jimmylindblom.se/wp-content/themes/blog/mosaic.css" type="text/css" media="screen" />
  13. <link rel="stylesheet" href="http://blog.jimmylindblom.se/wp-content/themes/blog/Old-Standard-TT-fontfacekit/stylesheet.css" type="text/css" media="screen" />
  14. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
  15. <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
  16. <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
  17. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  18.  
  19. <?php wp_get_archives('type=monthly&format=link'); ?>
  20.  
  21. <?php //comments_popup_script(); // off by default ?>
  22.  
  23. <?php wp_enqueue_script('jquery'); ?>
  24.  
  25. <?php wp_head(); ?>
  26.  
  27.  
  28. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  29. <script type="text/javascript" src="http://blog.jimmylindblom.se/wp-content/themes/blog/jquery.scrollTo-1.4.2.js"></script>
  30. <script type="text/javascript">
  31. jQuery.fn.topLink = function(settings) {
  32. settings = jQuery.extend({
  33. min: 1,
  34. fadeSpeed: 200,
  35. ieOffset: 50
  36. }, settings);
  37. return this.each(function() {
  38. //listen for scroll
  39. var el = $(this);
  40. el.css('display','none'); //in case the user forgot
  41. $(window).scroll(function() {
  42. if(!jQuery.support.hrefNormalized) {
  43. el.css({
  44. 'position': 'absolute',
  45. 'top': $(window).scrollTop() + $(window).height() - settings.ieOffset
  46. });
  47. }
  48. if($(window).scrollTop() >= settings.min)
  49. {
  50. el.fadeIn(settings.fadeSpeed);
  51. }
  52. else
  53. {
  54. el.fadeOut(settings.fadeSpeed);
  55. }
  56. });
  57. });
  58. };
  59.  
  60. $(document).ready(function() {
  61. $('#top-link').topLink({
  62. min: 400,
  63. fadeSpeed: 500
  64. });
  65. //smoothscroll
  66. $('#top-link').click(function(e) {
  67. e.preventDefault();
  68. $.scrollTo(0,300);
  69. });
  70. });
  71.  
  72.  
  73. </script>
  74.  
  75.  
  76.  
  77.  
  78. <script language="javascript" type="text/javascript" src="<?php bloginfo('template_url'); ?>/jquery.masonry.min.js"></script>
  79.  
  80. <script type="text/javascript">
  81. jQuery(document).ready(function($){
  82. $('#container').masonry({ singleMode: true });
  83. });
  84. </script>
  85.  
  86. <script type="text/javascript">
  87. $(document).ready(function() {
  88. $("body").css("display", "none");
  89. });
  90. </script>
  91.  
  92. <script type="text/javascript">
  93. $(document).ready(function() {
  94. $("body").css("display", "none");
  95.  
  96. $("body").fadeIn(1000);
  97.  
  98. $("a.transition").click(function(event){
  99. event.preventDefault();
  100. linkLocation = this.href;
  101. $("body").fadeOut(1000, redirectPage);
  102. });
  103.  
  104. function redirectPage() {
  105. window.location = linkLocation;
  106. }
  107. });
  108. </script>
  109.  
  110. </head>
  111.  
  112. <body>
  113.  
  114. <a name="top" id="top"></a>
  115.  
  116. <div id="wrapper">
  117.  
  118. <div id="container">
  119.  
  120.  
  121. <?php if (have_posts()) : ?>
  122.  
  123. <?php while ( have_posts() ) : the_post() ?>
  124. <div class="thumbnail">
  125. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  126.  
  127. <?php if( in_category('forsale') ) { ?>
  128. <?php if ( has_post_thumbnail() ) the_post_thumbnail();
  129. else the_content('Read the rest of this entry &raquo;'); ?>
  130.  
  131. <?php } elseif(in_category('photos') ) { ?>
  132. <?php if ( has_post_thumbnail() ) the_post_thumbnail();
  133. else the_content('Read the rest of this entry &raquo;'); ?>
  134.  
  135.  
  136. <?php } elseif(in_category('mobile') ) { ?>
  137. <?php if ( has_post_thumbnail() ) the_post_thumbnail();
  138. else the_content('Read the rest of this entry &raquo;'); ?>
  139.  
  140. <?php } elseif(in_category('portfolio') ) { ?>
  141. <?php if ( has_post_thumbnail() ) the_post_thumbnail();
  142. else the_content('Read the rest of this entry &raquo;'); ?>
  143.  
  144. <?php } elseif(in_category('tweets') ) { ?>
  145. <?php if ( has_post_thumbnail() ) the_post_thumbnail();
  146. else the_content('Read the rest of this entry &raquo;'); ?>
  147.  
  148. <?php } elseif(in_category('blog') ) { ?>
  149. <?php if ( has_post_thumbnail() ) the_post_thumbnail();
  150. else the_content('Read the rest of this entry &raquo;'); ?>
  151.  
  152. <?php } else { ?>
  153. <?php the_title(); ?> - no category!
  154.  
  155. <?php } ?>
  156. </div>
  157. </div>
  158. <?php endwhile ?>
  159.  
  160.  
  161.  
  162.  
  163. <?php endif ?>
  164.  
  165.  
  166.  
  167.  
  168. </div>
  169.  
  170. <p>&nbsp;</p>
  171. <div id="top-link">
  172. <p><a href="#top"><img id="down" src="http://blog.jimmylindblom.se/wp-content/themes/blog/img/arrow.png"/></a>
  173. </p></div>
  174. </div>
  175. <div style="text-align:center;" class="navigation">
  176. <div class="first">
  177. <?php posts_nav_link(' or ', 'LOAD', 'LOAD'); ?>
  178. </div>
  179. </div>
  180.  
  181.  
  182. </body>
  183.  
  184. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement