Advertisement
Guest User

Untitled

a guest
Dec 21st, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. <section>
  2. <ul id="mycarousel" class="jcarousel-skin-tango">
  3. <?php while ( have_posts() ) : the_post(); ?>
  4. <?php
  5. $thumb_ID = get_post_thumbnail_id( $post->ID );
  6. if ( $images = get_children(array(
  7. 'post_parent' => get_the_ID(),
  8. 'post_type' => 'attachment',
  9. 'post_mime_type' => 'image',
  10. 'exclude' => $thumb_ID,
  11. ))) : ?>
  12. <?php foreach($images as $image) {
  13. $attachment=wp_get_attachment_image_src($image->ID, $size); ?>
  14. <li style="list-style:none; width: 180px; height: 230px;float:left;margin-right:10px; background-color:#FFF;">
  15. <a href="#image-1"><img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo $attachment[0]; ?>&amp;h=230&amp;w=180&a=t&amp;zc=1" />
  16. <div class="lb-overlay" id="image-1"></a>
  17. <img src="images/full/1.jpg" alt="image01" />
  18. <div>
  19. <a href="#image-<?php previous_image_link(); ?>" class="lb-prev">Prev</a>
  20. <a href="#image-<?php next_image_link(); ?>" class="lb-next">Next</a>
  21. </div>
  22. <a href="#page" class="lb-close">x Close</a>
  23. </div>
  24. </li>
  25. <?php } ?>
  26. <?php else: // No images ?>
  27. <!-- This post has no attached images -->
  28. <?php endif; ?>
  29. <?php endwhile; // end of the loop. ?>
  30. </ul>
  31. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement