Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- OPEN .flexslider -->
- <div class="flexslider">
- <ul class="slides">
- <?php foreach ($attachments as $attachment) : ?>
- <?php $src = wp_get_attachment_image_src( $attachment->ID, 'showcase-image'); ?>
- <?php $lightbox_img_src = wp_get_attachment_image_src( $attachment->ID, 'large'); ?>
- <li>
- <a class="figure-img gallery-post" data-gal="prettyPhoto[pp_gal_article]" href="<?php echo $lightbox_img_src[0]; ?>" title="<?php echo apply_filters('the_title', $attachment->post_title); ?>">
- <img height="<?php echo $src[2]; ?>" width="<?php echo $src[1]; ?>" title="<?php echo apply_filters('the_title', $attachment->post_title); ?>" alt="<?php echo apply_filters('the_title', $attachment-post_title); ?>" src="<?php echo $src[0]; ?>" />
- </a>
- </li>
- <?php endforeach; ?>
- </ul>
- <!-- CLOSE .flexslider -->
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement