Advertisement
Guest User

randomizepost

a guest
Jul 10th, 2011
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.72 KB | None | 0 0
  1. <!--Begind recent post-->
  2. <?php if (have_posts()) : while (have_posts()) : the_post();
  3.  
  4.   if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
  5.   <?php static $ctr = 0;
  6. if ($ctr == "$artsee_homepage_posts;") { break; }
  7. else { ?>
  8. <div class="home-post-wrap">   
  9. <div class="home-post-wrap-top">
  10. <div class="comment-buble">
  11. <?php comments_popup_link('0', '1', '%'); ?>
  12. </div>
  13. <div class="date">
  14. <?php the_time('j m, Y') ?>
  15. </div>
  16. </div>
  17. <div class="thumbnail-div">
  18. <?php
  19. // check for thumbnail
  20. $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true);
  21. // check for thumbnail class
  22. $thumb_class = get_post_meta($post->ID, 'Thumbnail Class', $single = true);
  23. // check for thumbnail alt text
  24. $thumb_alt = get_post_meta($post->ID, 'Thumbnail Alt', $single = true);
  25. ?>
  26. <?php // if there's a thumbnail
  27. if($thumb !== '') { ?>
  28. <img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $thumb; ?>&amp;h=175&amp;w=189&amp;q=50&amp;zc=1" alt="<?php if($thumb_alt !== '') { echo $thumb_alt; } else { echo the_title(); } ?>"  style="border: none;" />
  29. <?php } // end if statement
  30. // if there's not a thumbnail
  31. else { echo ''; } ?>
  32. <div class="overlay">
  33. </div>
  34. <div class="post-info2">
  35. <a href="<?php the_permalink() ?>" class="post-info-title" title="Permanent Link to <?php the_title(); ?>"><?php the_title2('', '...', true, '30') ?></a>
  36. Eklenme tarihi  <?php the_time('0j m, Y') ?> <br />  <?php comments_popup_link('Yorum yok', '1 yorum', '% yorum'); ?>
  37. </div>
  38. </div> 
  39. <img src="<?php bloginfo('stylesheet_directory'); ?>/images/post-bottom.gif" style="margin: 0px 0px 0px 0px; float: left;" alt="post bottom" />
  40. </div>
  41. <?php $ctr++; } ?>
  42. <?php endwhile; ?>
  43.  
  44. <!--end recent post-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement