SHARE
TWEET

Loop In Loop

velocegatto Apr 21st, 2013 186 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--******************************************-->
  2. <!-- BEGIN CENTER HIGH YIELD REGULAR CAROUSEL -->
  3. <!--******************************************-->
  4. <div class="ts2fl-wrapper ts2fl-carousel ts2fl-sub-carousel ts2fl-duo">
  5.   <div class="ts2fl-container">
  6.     <div class="ts2fl-carousel-wrapper">
  7.       <h2>THE LATEST VIDEOS</h2>
  8.       <div class="ts2fl-carousel-container duo-flexslider">
  9.      
  10.      
  11.                
  12.         <ul class="slides">
  13.        
  14.        
  15.         <?php $args = array(
  16.   'post_type' => 'post',
  17.   'post_status' => 'publish',
  18.   'posts_per_page' => 8,
  19.   'order' => 'ASC',
  20. ); ?>
  21.  
  22.  
  23.        
  24.        <?php $my_query = new WP_Query();
  25. $my_query->query($args);
  26. $skip = 2;
  27. echo '<li class="ts2fl-slide">';
  28. echo '<div class="ts2fl-grid">';
  29. echo '<div class="ts2fl-thumb-grid">';
  30. echo '<div class="ts2fl-thumb-grid-container">';
  31.  
  32.  
  33. while ($my_query->have_posts()) {
  34.   $my_query->the_post();
  35.   echo '<div class="ts2fl-thumb ts2fl-episode-block" style="display: block" data-videoid="'.the_ID().'">';
  36.   echo '<div class="ts2fl-thumb-image ts2fl-rollover" data-powertiptarget="'.the_ID().'">';
  37.   echo '<a href="'.the_permalink().'" class="ts2fl-thumbnail ts2fl-zoom-effect" data-videoid="'.the_ID().'">';
  38.   echo '<img alt="'.the_title().'" class="ts2fl-video-thumb" src="'.get_post_meta($post->ID, 'med_thumb', true).'" />';
  39.   echo '<div class="ts2fl-thumbnail-play">Play</div>';
  40.   echo '</a>';
  41.   echo '</div>';
  42.  
  43.   echo '<p class="ts2fl-thumb-title">';
  44.   echo '<a href="'.the_permalink().'" class="ts2fl-video-ajax" data-videoid="'.the_ID().'">'.the_title().'</a>';
  45.   echo '</p>';
  46.                        
  47.                        
  48.                         echo '<div class="ts2fl-thumb-rollover" id="'.the_ID().'">';
  49.                         echo '<div class="ts2fl-thumb-rollover-box">';
  50.                         echo '<span class="ts2fl-rollover-category">'.get_post_meta($post->ID, 'boom_rollover_tag', true).'</span>';
  51.                        
  52.                        
  53.                         echo '<span class="ts2fl-rollover-name">'.get_post_meta($post->ID, 'boom_rollover_title', true).'</span>';
  54.                          
  55.                         echo '<span class="ts2fl-rollover-description">'.get_post_meta($post->ID, 'boom_rollover_desc', true).'</span>';
  56.                        
  57.                         echo '<!--   <div class="ts2fl-rollover-meta">';
  58.                         echo '<span class="ts2fl-time">'.the_time('g:i a').'</span>';
  59.                        
  60.                         echo '<span class="ts2fl-date">'.the_date('l, F j, Y').'</span>';
  61.                         echo '</div>';
  62.                        
  63.                         echo '<div class="ts2fl-rollover-featuring">';
  64.                         echo '<b>Featuring:</b>';
  65.                        
  66.                         echo '</div> -->';
  67.                    
  68.                        
  69.                        
  70.                        echo '</div>';
  71.                       echo '</div>';
  72.                      echo '</div>';
  73.  
  74.   if ( ( ($my_query->current_post-1) % $skip ) == 0) {
  75.     break;
  76.   }
  77. }
  78. echo '</div>';
  79. echo '</div>';
  80. echo '</div>';
  81. echo '</li>';
  82.       ?>
  83.    
  84.          
  85.         </ul>
  86.          
  87.       </div>
  88.     </div>
  89.     <div class="ts2fl-carousel-controls ts2fl-duo-controls"></div>
  90.   </div>
  91. </div>
  92. <!--****************************************-->
  93. <!-- END CENTER HIGH YIELD REGULAR CAROUSEL -->
  94. <!--****************************************-->
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top