Advertisement
Guest User

index.php

a guest
Jun 5th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <!-- #content -->
  3. <div id="content">
  4. <!-- start of .post -->
  5. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6. <div class="post<?php if(!has_post_thumbnail()) echo " no-featured"; ?>">
  7. <?php if(has_post_thumbnail()): ?>
  8. <div class="featured">
  9. <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(array(700,9999)); ?></a>
  10.  
  11. <div class="credit"></div>
  12. </div>
  13. <?php endif; ?>
  14. <div class="detail">
  15. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  16. <?php if (the_post_thumbnail_caption()) { echo '<p class="wp-caption-text">' . the_post_thumbnail_caption() . '<p>'; }?>
  17. <div class="meta">
  18. <div class="top"></div>
  19. <p><?php _e('by'); ?> <strong><?php the_author(); ?></strong></p>
  20. <p><?php _e('posted'); ?> <strong><?php echo get_the_date(); ?></strong></p>
  21. <p><?php _e('category'); ?> <?php the_category(', '); ?></p>
  22. <div class="bottom"></div>
  23. </div>
  24. <div class="excerpt">
  25. <?php the_excerpt(); ?>
  26. </div>
  27.  
  28. <?php
  29. $args = array(
  30. 'post_type' => 'attachment',
  31. 'numberposts' => -1,
  32. 'post_status' => null,
  33. 'post_parent' => $post->ID
  34. );
  35. $attachments = get_posts($args);
  36. if(count($attachments) > 1):
  37. ?>
  38. <div class="pic-excerpt">
  39. <div class="top"></div>
  40. <div class="outer">
  41. <h3><?php _e('Pictures In This Set'); ?></h3>
  42. <div class="pic">
  43. <?php the_image_excerpt(wpop_get_option('pic_excerpt')); ?>
  44. </div>
  45. </div>
  46. <div class="bottom"></div>
  47. </div> <!-- pic-excerpt -->
  48. <?php endif; ?>
  49.  
  50. </div>
  51. </div>
  52.  
  53. <?php endwhile;?>
  54. <div class="paging">
  55. <div class="alignleft"><?php next_posts_link('&laquo; Older Entries', 0); ?></div>
  56. <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;', 0); ?></div>
  57. <div class="clear"></div>
  58. </div>
  59. <?php endif;?>
  60. <!-- end of .post -->
  61. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement