Advertisement
Guest User

Untitled

a guest
Nov 8th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ui.core.js"></script>
  2. <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/ui.tabs.js"></script>
  3. <script type="text/javascript">
  4. $(document).ready(function() {
  5. // Tabs
  6. $('#tabs').tabs({
  7. fx: {
  8. opacity: 'toggle'
  9. }
  10. }).tabs('rotate', 3000);
  11.  
  12. });
  13. </script>
  14. <?php $slidecat = get_option('swt_slide_category');
  15. $slidecount = get_option('swt_slide_count');
  16. ?>
  17.  
  18. <div id="Container">
  19. <!-- Tabs -->
  20. <div id="tabs">
  21. <?php $my_query = new WP_Query('category_name= '. $slidecat .'&showposts='.$slidecount.'');
  22. while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; $x++; ?>
  23. <div id="tabs-<?php echo $x; ?>" class="feature">
  24. <?php if ( has_post_thumbnail() ) { ?>
  25.  
  26. <?php get_the_image( array( 'custom_key' => array( 'bigimg' ), 'default_size' => 'full', 'width' => '944', 'height' => '374', 'link_to_post' => false ) ); ?>
  27.  
  28.  
  29. <div class="info">
  30. <h2 class="titlesl"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  31. <p>
  32. <?php truncate_post(200, true); ?>
  33. </p>
  34. </div>
  35.  
  36. <?php } else { ?>
  37. <div class="info2">
  38. <h3 class="titlesl"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
  39. <p>
  40. <?php truncate_post(400, true); ?>
  41. </p>
  42. </div>
  43. <?php } ?>
  44. </div>
  45. <?php endwhile; ?>
  46.  
  47. <ul id="tabby">
  48. <?php $my_query = new WP_Query('category_name= '. $slidecat .'&showposts='.$slidecount.'');
  49. while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID; $xb++;?>
  50. <li>
  51. <a href="#tabs-<?php echo $xb; ?>">
  52. <?php get_the_image( array( 'custom_key' => array( 'slimage' ), 'link_to_post' => false, 'default_size' => 'full', 'width' => '69', 'height' => '71' ) ); ?>
  53. </a>
  54. </li>
  55. <?php endwhile; ?>
  56. </ul>
  57. </div>
  58. </div>
  59. <div style="clear:both"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement