Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <section>
- <ul id="mycarousel" class="jcarousel-skin-tango">
- <?php while ( have_posts() ) : the_post(); ?>
- <?php
- $thumb_ID = get_post_thumbnail_id( $post->ID );
- if ( $images = get_children(array(
- 'post_parent' => get_the_ID(),
- 'post_type' => 'attachment',
- 'post_mime_type' => 'image',
- 'exclude' => $thumb_ID,
- ))) : ?>
- <?php foreach($images as $image) {
- $attachment=wp_get_attachment_image_src($image->ID, $size); ?>
- <li style="list-style:none; width: 180px; height: 230px;float:left;margin-right:10px; background-color:#FFF;">
- <a href="#image-1"><img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo $attachment[0]; ?>&h=230&w=180&a=t&zc=1" />
- <div class="lb-overlay" id="image-1"></a>
- <img src="images/full/1.jpg" alt="image01" />
- <div>
- <a href="#image-<?php previous_image_link(); ?>" class="lb-prev">Prev</a>
- <a href="#image-<?php next_image_link(); ?>" class="lb-next">Next</a>
- </div>
- <a href="#page" class="lb-close">x Close</a>
- </div>
- </li>
- <?php } ?>
- <?php else: // No images ?>
- <!-- This post has no attached images -->
- <?php endif; ?>
- <?php endwhile; // end of the loop. ?>
- </ul>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement