Advertisement
nadadeda

Untitled

Jun 8th, 2011
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <ul class="mcol">
  4. <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
  5. <li class="article" id="post-<?php the_ID(); ?>">
  6.  
  7. <?php
  8. if ( has_post_thumbnail() ) { ?>
  9. <?php
  10. $imgsrcparam = array(
  11. 'alt' => trim(strip_tags( $post->post_excerpt )),
  12. 'title' => trim(strip_tags( $post->post_title )),
  13. );
  14. $thumbID = get_the_post_thumbnail( $post->ID, 'background', $imgsrcparam ); ?>
  15. <div class="preview"><a href="<?php the_permalink() ?>"><?php echo "$thumbID"; ?></a></div>
  16.  
  17.  
  18. <?php } else {?>
  19. <div class="preview"><a href="<?php the_permalink() ?>"><img src="<?php bloginfo('template_url'); ?>/images/default-thumbnail.jpg" alt="<?php the_title(); ?>" /></a></div>
  20. <?php } ?>
  21.  
  22. <div class="article-over">
  23. <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  24. <?php the_excerpt(); ?>
  25. <div class="postmetadata">
  26. Posted: <?php the_time(__('F jS, Y', 'kubrick')) ?>&nbsp;&#721;&nbsp;
  27. <?php comments_popup_link(__('No Comments'), __('1 Comment'), __('% Comments'), '', __('Comments Closed') ); ?><br />
  28. <?php printf(__('Filled under: %s'), get_the_category_list(', ')); ?>
  29. </div>
  30. </div>
  31. </li> <?php ?>
  32. <?php endwhile; ?>
  33. <?php else : ?>
  34.  
  35.  
  36. <?php endif; ?>
  37. </ul>
  38.  
  39. <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
  40. <?php endwhile; ?>
  41. <?php else : ?>
  42. <h1 id="error"><?php _e("Sorry, but you are looking for something that isn&#8217;t here."); ?></h1>
  43. <?php endif; ?>
  44.  
  45.  
  46. <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
  47. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement