sticky.php 1.3 KB

1234567891011121314151617181920212223242526
  1. <?php if (!Yusi_is_mobile() ): ?>
  2. <div id="wowslider-container1">
  3. <div class="ws_images"><ul>
  4. <?php $sticky = get_option('sticky_posts'); rsort( $sticky );
  5. query_posts( array( 'post__in' => $sticky, 'caller_get_posts' => 1, 'showposts' => dopt('d_sticky_count')?dopt('d_sticky_count'):4 ) );
  6. while (have_posts()) : the_post();
  7. echo '<li><a target="_blank" href="'.get_permalink().'" title="'.get_the_title().'">';
  8. echo '<img src="';echo post_thumbnail_src();echo '" title="'.get_the_title().'" alt="'.get_the_title().'" /></a></li>';
  9. endwhile;
  10. wp_reset_query();
  11. ?>
  12. </ul>
  13. </div>
  14. <div class="ws_thumbs">
  15. <div>
  16. <?php $sticky = get_option('sticky_posts'); rsort( $sticky );
  17. query_posts( array( 'post__in' => $sticky, 'caller_get_posts' => 1, 'showposts' => dopt('d_sticky_count')?dopt('d_sticky_count'):4 ) );
  18. while (have_posts()) : the_post();
  19. echo '<a target="_blank" href="#" title="'.get_the_title().'">';
  20. echo '<img src="'.get_bloginfo("template_url").'/timthumb.php?src=';echo post_thumbnail_src();echo '&h=62&w=120&q=90&zc=1&ct=1" /></a>';
  21. endwhile;
  22. wp_reset_query();
  23. ?>
  24. </div></div><div class="ws_shadow"></div>
  25. </div><script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/slider.js"></script><?php endif ;?>