Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head profile="http://gmpg.org/xfn/11">
- <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
- <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
- <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->
- <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
- <link rel="stylesheet" href="http://blog.jimmylindblom.se/wp-content/themes/blog/mosaic.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="http://blog.jimmylindblom.se/wp-content/themes/blog/Old-Standard-TT-fontfacekit/stylesheet.css" type="text/css" media="screen" />
- <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
- <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
- <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
- <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
- <?php wp_get_archives('type=monthly&format=link'); ?>
- <?php //comments_popup_script(); // off by default ?>
- <?php wp_enqueue_script('jquery'); ?>
- <?php wp_head(); ?>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script type="text/javascript" src="http://blog.jimmylindblom.se/wp-content/themes/blog/jquery.scrollTo-1.4.2.js"></script>
- <script type="text/javascript">
- jQuery.fn.topLink = function(settings) {
- settings = jQuery.extend({
- min: 1,
- fadeSpeed: 200,
- ieOffset: 50
- }, settings);
- return this.each(function() {
- //listen for scroll
- var el = $(this);
- el.css('display','none'); //in case the user forgot
- $(window).scroll(function() {
- if(!jQuery.support.hrefNormalized) {
- el.css({
- 'position': 'absolute',
- 'top': $(window).scrollTop() + $(window).height() - settings.ieOffset
- });
- }
- if($(window).scrollTop() >= settings.min)
- {
- el.fadeIn(settings.fadeSpeed);
- }
- else
- {
- el.fadeOut(settings.fadeSpeed);
- }
- });
- });
- };
- $(document).ready(function() {
- $('#top-link').topLink({
- min: 400,
- fadeSpeed: 500
- });
- //smoothscroll
- $('#top-link').click(function(e) {
- e.preventDefault();
- $.scrollTo(0,300);
- });
- });
- </script>
- <script language="javascript" type="text/javascript" src="<?php bloginfo('template_url'); ?>/jquery.masonry.min.js"></script>
- <script type="text/javascript">
- jQuery(document).ready(function($){
- $('#container').masonry({ singleMode: true });
- });
- </script>
- <script type="text/javascript">
- $(document).ready(function() {
- $("body").css("display", "none");
- });
- </script>
- <script type="text/javascript">
- $(document).ready(function() {
- $("body").css("display", "none");
- $("body").fadeIn(1000);
- $("a.transition").click(function(event){
- event.preventDefault();
- linkLocation = this.href;
- $("body").fadeOut(1000, redirectPage);
- });
- function redirectPage() {
- window.location = linkLocation;
- }
- });
- </script>
- </head>
- <body>
- <a name="top" id="top"></a>
- <div id="wrapper">
- <div id="container">
- <?php if (have_posts()) : ?>
- <?php while ( have_posts() ) : the_post() ?>
- <div class="thumbnail">
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <?php if( in_category('forsale') ) { ?>
- <?php if ( has_post_thumbnail() ) the_post_thumbnail();
- else the_content('Read the rest of this entry »'); ?>
- <?php } elseif(in_category('photos') ) { ?>
- <?php if ( has_post_thumbnail() ) the_post_thumbnail();
- else the_content('Read the rest of this entry »'); ?>
- <?php } elseif(in_category('mobile') ) { ?>
- <?php if ( has_post_thumbnail() ) the_post_thumbnail();
- else the_content('Read the rest of this entry »'); ?>
- <?php } elseif(in_category('portfolio') ) { ?>
- <?php if ( has_post_thumbnail() ) the_post_thumbnail();
- else the_content('Read the rest of this entry »'); ?>
- <?php } elseif(in_category('tweets') ) { ?>
- <?php if ( has_post_thumbnail() ) the_post_thumbnail();
- else the_content('Read the rest of this entry »'); ?>
- <?php } elseif(in_category('blog') ) { ?>
- <?php if ( has_post_thumbnail() ) the_post_thumbnail();
- else the_content('Read the rest of this entry »'); ?>
- <?php } else { ?>
- <?php the_title(); ?> - no category!
- <?php } ?>
- </div>
- </div>
- <?php endwhile ?>
- <?php endif ?>
- </div>
- <p> </p>
- <div id="top-link">
- <p><a href="#top"><img id="down" src="http://blog.jimmylindblom.se/wp-content/themes/blog/img/arrow.png"/></a>
- </p></div>
- </div>
- <div style="text-align:center;" class="navigation">
- <div class="first">
- <?php posts_nav_link(' or ', 'LOAD', 'LOAD'); ?>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement