Advertisement
Guest User

index.php

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