document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2. /*
  3. Template Name: Blog
  4. */
  5. ?>
  6.  
  7. <?php get_header(); ?>
  8.  
  9. <div id="casing">
  10.  
  11. <div class="incasing">
  12.  
  13. <div class="topbar">
  14. <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  15. </div>
  16.  
  17. <div id="content">
  18.  
  19. <?php
  20. $temp = $wp_query;
  21. $wp_query= null;
  22. $wp_query = new WP_Query();
  23. $wp_query->query('paged='.$paged);
  24. ?>
  25. <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
  26.  
  27. <div class="post" id="post-<?php the_ID(); ?>">
  28.  
  29. <div class="title">
  30. <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
  31. </div>
  32. <div class="postmeta">
  33. <span class="author">Posted by <?php the_author(); ?> </span> <span class="clock"> <?php the_time('M - j - Y'); ?></span> <span class="comm"><?php comments_popup_link('0 Comment', '1 Comment', '% Comments'); ?></span>
  34. </div>
  35.  
  36. <div class="entry">
  37.  
  38. <?php
  39. if ( has_post_thumbnail() ) { ?>
  40. <a href="<?php the_permalink() ?>"><img class="postimg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&amp;h=200&amp;w=470&amp;zc=1" alt=""/></a>
  41. <?php } else { ?>
  42. <a href="<?php the_permalink() ?>"><img class="postimg" src="<?php bloginfo('template_directory'); ?>/images/dummy.png" alt="" /></a>
  43. <?php } ?>
  44. <?php the_excerpt(); ?>
  45. <div class="clear"></div>
  46. </div>
  47.  
  48. </div>
  49.  
  50. <?php endwhile; ?>
  51.  
  52. <div class="clear"></div>
  53.  
  54. <?php getpagenavi(); ?>
  55.  
  56. <?php $wp_query = null; $wp_query = $temp;?>
  57.  
  58. </div>
  59.  
  60. <?php get_sidebar(); ?>
  61. <div class="clear"></div>
  62.  
  63. </div>
  64.  
  65. <div class="clear"></div>
  66. </div>
  67.  
  68.  
  69.  
  70. <?php get_footer(); ?>
');