Advertisement
Guest User

Untitled

a guest
Nov 12th, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.18 KB | None | 0 0
  1.         // Get number of slides or set the default
  2.         if ( $thumbnum = of_get_option('of_thumbnail_number') ) { $thumbnum = ($thumbnum + 1); } else { $thumbnum = 7;}
  3.  
  4.           if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : // if the post has a WP 2.9+ Thumbnail  
  5.           get_post_info($slide_crop, $post->ID, $slide_crop, $thumbnum); ?>
  6.          
  7.           <div class="featuredimage">    
  8.               <div class="slider-wrapper theme-default">
  9.                 <div <?php
  10.                   if( MultiPostThumbnails::get_the_post_thumbnail('post', 'second-slide', NULL,  'portfoliolarge') != '' ) {
  11.                     echo ($auto_play == 'No' || $auto_play == 'no' ) ? 'class="slider nivoSlider"' : 'class="sliderautoplay nivoSlider"';
  12.                   }?> >
  13.    
  14.                 <?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 }?>
  15.                   <?php $counter = 2;
  16.                   while ($counter < ($thumbnum)) :
  17.                     if ( ${'thumb' . $counter}) : ?>
  18.                       <?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 }?>
  19.                     <?php endif; $counter++;
  20.                   endwhile; ?>
  21.                 </div>
  22.               </div>
  23.           </div>
  24.           <?php endif;
  25.  
  26.         endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement