This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

FVP LEAF: home.php

By: a guest on Dec 18th, 2012  |  syntax: PHP  |  size: 1.11 KB  |  views: 95  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.                                         <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
  2.  
  3.                                                 <?php $no_duplicates[] = get_the_ID(); ?>
  4.  
  5. <!-- featured-video-plus plugin -->
  6. <?php if ( has_post_video() ) { ?>
  7.  
  8.                                                 <a href="<?php the_permalink(); ?>">
  9. <?php the_post_video(array(720,320)); ?>
  10.                                                         <span class="iview-caption caption3" data-x="15" data-y="212" data-transition="expandright"><h2><?php the_title(); ?></h2></span>
  11.                                                         <span class="iview-caption caption1" data-x="15" data-y="258" data-transition="expandleft"><?php echo '<p>' . wp_trim_words( get_the_excerpt(), 35, null ) . '</p>'; ?></span>
  12.                                                 </a>
  13. <?php } else { ?>
  14.  
  15.                                                 <a href="<?php the_permalink(); ?>" data-iview:image="<?php echo leaf_get_post_image( null,null,true,null, 'slider' ); ?>">
  16.                                                         <span class="iview-caption caption3" data-x="15" data-y="212" data-transition="expandright"><h2><?php the_title(); ?></h2></span>
  17.                                                         <span class="iview-caption caption1" data-x="15" data-y="258" data-transition="expandleft"><?php echo '<p>' . wp_trim_words( get_the_excerpt(), 35, null ) . '</p>'; ?></span>
  18.                                                 </a>
  19.  
  20. <?php } ?>
  21.  
  22.                                         <?php endwhile; ?>
clone this paste RAW Paste Data