Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
- <?php $no_duplicates[] = get_the_ID(); ?>
- <!-- featured-video-plus plugin -->
- <?php if ( has_post_video() ) { ?>
- <a href="<?php the_permalink(); ?>">
- <?php the_post_video(array(720,320)); ?>
- <span class="iview-caption caption3" data-x="15" data-y="212" data-transition="expandright"><h2><?php the_title(); ?></h2></span>
- <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>
- </a>
- <?php } else { ?>
- <a href="<?php the_permalink(); ?>" data-iview:image="<?php echo leaf_get_post_image( null,null,true,null, 'slider' ); ?>">
- <span class="iview-caption caption3" data-x="15" data-y="212" data-transition="expandright"><h2><?php the_title(); ?></h2></span>
- <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>
- </a>
- <?php } ?>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement