Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get number of slides or set the default
- if ( $thumbnum = of_get_option('of_thumbnail_number') ) { $thumbnum = ($thumbnum + 1); } else { $thumbnum = 7;}
- if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : // if the post has a WP 2.9+ Thumbnail
- get_post_info($slide_crop, $post->ID, $slide_crop, $thumbnum); ?>
- <div class="featuredimage">
- <div class="slider-wrapper theme-default">
- <div <?php
- if( MultiPostThumbnails::get_the_post_thumbnail('post', 'second-slide', NULL, 'portfoliolarge') != '' ) {
- echo ($auto_play == 'No' || $auto_play == 'no' ) ? 'class="slider nivoSlider"' : 'class="sliderautoplay nivoSlider"';
- }?> >
- <?php if ($popup == 'On') { ?><a href="<?php echo $full[0]; ?>" rel="prettyPhoto[pp_gal]" title="<?php if ($alt) { echo str_replace('"', "", $alt); } else { echo the_title(); } ?>"><?php }?><img src="<?php echo $thumb[0]; ?>" alt="<?php if ($alt) { echo str_replace('"', "", $alt); } else { echo the_title(); } ?>" title="<?php print_r($caption); ?>" class="scale-with-grid" data-thumb="<?php echo $thumb[0]; ?>"/><?php if ($popup == 'On') { ?></a><?php }?>
- <?php $counter = 2;
- while ($counter < ($thumbnum)) :
- if ( ${'thumb' . $counter}) : ?>
- <?php if ($popup == 'On') { ?><a href="<?php echo ${'full' . $counter}[0]; ?>" rel="prettyPhoto[pp_gal]" title="<?php if (${'alt' . $counter}) { echo str_replace('"', "", ${'alt' . $counter}); } else { echo the_title(); } ?>"><?php }?><img src="<?php echo ${'thumb' . $counter}[0]; ?>" alt="<?php if (${'alt' . $counter}) { echo str_replace('"', "", ${'alt' . $counter}); } ?>" title="<?php if (${'caption' . $counter}) { echo str_replace('"', "", ${'caption' . $counter}); } ?>" class="scale-with-grid" data-thumb="<?php echo $thumb[0]; ?>"/><?php if ($popup == 'On') { ?></a><?php }?>
- <?php endif; $counter++;
- endwhile; ?>
- </div>
- </div>
- </div>
- <?php endif;
- endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement