Guest User

Untitled

a guest
Oct 5th, 2011
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. <?php if ( have_posts() ) : ?>
  2.  
  3. <div id="loop" class="<?php if ($_COOKIE['mode'] == 'list') echo 'list'; else echo 'grid'; ?> clear">
  4.  
  5. <?php while ( have_posts() ) : the_post(); ?>
  6.  
  7. <div <?php post_class('post clear'); ?> id="post_<?php the_ID(); ?>">
  8. <?php if ( has_post_thumbnail() ) :?>
  9. <a href="<?php echo($permalink); ?>" class="thumb"><?php the_post_thumbnail('thumbnail', array(
  10. 'alt' => trim(strip_tags( $post->post_title )),
  11. 'title' => trim(strip_tags( $post->post_title )),
  12. )); ?></a>
  13. <?php endif; ?>
  14.  
  15. <?php
  16. $meta = get_post_custom();
  17. if($meta['external-link'][0]) {
  18. $permalink = $meta['external-link'][0];
  19. } else {
  20. $permalink = get_permalink();
  21. }
  22. ?>
  23.  
  24. <div class="post-category"><?php the_category(' / '); ?></div>
  25. <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  26.  
  27. <div class="post-meta">by <span class="post-author"><a
  28. href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>" title="Posts by <?php the_author(); ?>"><?php the_author(); ?></a></span>
  29. on <span
  30. class="post-date"><?php the_time(__('M j, Y')) ?></span> <em>&bull; </em><?php comments_popup_link(__('No Comments'), __('1 Comment'), __('% Comments'), '', __('Comments Closed')); ?> <?php edit_post_link( __( 'Edit entry'), '<em>&bull; </em>'); ?>
  31. </div>
  32. <div class="post-content"><?php if (function_exists('smart_excerpt')) smart_excerpt(get_the_excerpt(), 55); ?></div>
  33. </div>
  34.  
  35. <?php endwhile; ?>
  36.  
  37. </div>
  38.  
  39. <?php endif; ?>
  40.  
  41.  
Advertisement
Add Comment
Please, Sign In to add comment