Advertisement
Guest User

Untitled

a guest
Sep 13th, 2011
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4.  
  5. <?php if (have_posts()) : ?>
  6.  
  7. <?php if (is_category()) { ?>
  8. <h2 class="title"><?php single_cat_title(); ?></h2>
  9. <?php } elseif (is_month()) { ?>
  10. <h2 class="title">Posts from <?php the_time('F, Y'); ?></h2>
  11. <?php } elseif (is_year()) { ?>
  12. <h2 class="title">Posts from <?php the_time('Y'); ?></h2>
  13. <?php } ?>
  14.  
  15. <?php while (have_posts()) : the_post(); ?>
  16.  
  17. <div <?php post_class(); ?>>
  18. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  19.  
  20. <?php if (has_post_thumbnail() ) { ?>
  21. <a href="<?php the_permalink(); ?>" class="post-thumbnail"><?php the_post_thumbnail (); ?></a>
  22. <?php } else { ?>
  23. <a href="<?php the_permalink(); ?>" class="post-thumbnail"><img src="<?php bloginfo('max&muse_url'); ?>" /> </a>
  24. <?php } ?>
  25.  
  26. <?php the_content(''); ?>
  27. <div class="post-text">
  28. <ul>
  29. <li class="date"><?php the_time('jS F Y'); ?> </li>
  30. <li class="category">Posted in <a href=" "><?php the_category(); ?></a></li>
  31. <li class="comment-count"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></li>
  32. <li class="read-more"><a href="<?php the_permalink() ?>#more-<?php the_ID(); ?>">Continue reading</a></li>
  33. </ul>
  34. </div><!--end post-text-->
  35. </div><!--end post-->
  36.  
  37. <?php endwhile; ?>
  38.  
  39. <div id="pagenav">
  40. <div class="pagenav">
  41. <ul>
  42. <li><a href="#" class="prevnext disablelink">« previous<?php next_posts_link ('Older articles'); ?></a></li>
  43. <li><a href="#" class="currentpage">1</a></li>
  44. <li><a href="#">2</a></li>
  45. <li><a href="#">3</a></li>
  46. <li><a href="#">4</a></li>
  47. <li><a href="#" class="prevnext">next »<?php previous_posts_link ('Newer articles'); ?></a></li>
  48. </ul>
  49. </div><!--end pagenav-->
  50. </div>
  51.  
  52. <?php else : ?>
  53. <div class="nothing">
  54. <h2>Nothing Found</h2>
  55. <p>Sorry, but you are looking for something that isn't here.</p>
  56. <p><a href="<?php echo get_option ('blog'); ?>">Return to blog page</a></p>
  57. <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  58. </div><?php endif; ?>
  59.  
  60. </div><!--end content-->
  61.  
  62. <?php get_sidebar(); ?>
  63. </div><!--end container-->
  64. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement