Guest User

Untitled

a guest
Oct 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. <script>
  2. $("ul.banner-list").tabs(".banners > div.banner", {
  3. autoplay: true,
  4. effect: 'fade',
  5. fadeOutSpeed: "slow",
  6. rotate: true
  7. }).slideshow();
  8. </script>
  9.  
  10. <div id="branding-area">
  11. <div class="banners">
  12.  
  13. <?php
  14. $loop = new WP_Query(array('post_type' => 'banner', 'posts_per_page' => -1, 'orderby'=> 'ASC'));
  15. $bannerCount = 0;
  16. ?>
  17. <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
  18.  
  19. <div class="banner">
  20. <div class="content">
  21. <h3>LMCI Video Series:</h3>
  22. <h2><?php the_title(); ?></h2>
  23. <?php the_content();?>
  24. <p><a href="<?php the_permalink(); ?>" class="more" title="<?php the_title(); ?>">> Learn More</a></p>
  25. </div>
  26. <div class="image">
  27. <?php $url = get_post_meta($post->ID, "url", true);
  28. if($url!='') {
  29. echo '<a href="'.$url.'">';
  30. echo the_post_thumbnail('full');
  31. echo '</a>';
  32. } else {
  33. echo the_post_thumbnail('full');
  34. } ?>
  35. </div>
  36. </div>
  37. <?php $bannerCount++ ?>
  38. <?php endwhile; ?>
  39. <?php wp_reset_query(); ?>
  40.  
  41. <ul class="banner-list">
  42. <?php for($i=0; $i < $bannerCount; $i++) {
  43. echo '<li><a href="javascript:void(0);">'.$bannerCount.'</a></li>';
  44. } ?>
  45. </ul>
  46.  
  47. </div><!-- end banners -->
  48. </div><!-- end branding area -->
Add Comment
Please, Sign In to add comment