Guest User

Untitled

a guest
Feb 12th, 2013
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.  
  4. <div id="main">
  5. <div id="featured_content">
  6. <?php
  7. $args = "cat=".$intaglio->option['featured']."&showposts=1";
  8. query_posts($args);
  9. while(have_posts()) : the_post();
  10. ?>
  11. <a href="<?php the_permalink(); ?>">
  12. <?php
  13. $featured_thumb = get_post_meta($post->ID,'thumbnail', TRUE);
  14.  
  15. if($featured_thumb!=""){
  16. ?>
  17. <img src="<? echo get_post_meta($post->ID,'thumbnail', TRUE); ?>" alt="<?php the_title(); ?>"/>
  18. <?php
  19. }else{
  20. ?>
  21. <img src="<?php echo get_settings('home'); ?>wp-content/themes/intaglio/images/thumb.gif" alt="<?php the_title(); ?>"/>
  22. <?php
  23. }
  24. ?>
  25.  
  26. </a>
  27. <div id="post_summary">
  28. <h3>Featured Content</h3>
  29. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  30. <?php the_excerpt(); ?>
  31. </div>
  32. <?php endwhile; ?>
  33. <div class="clear"></div>
  34. </div>
  35. <div id="content">
  36. <div id="reading">
  37.  
  38. <?php
  39. query_posts('showposts=5');
  40. while(have_posts()) : the_post(); ?>
  41. <div class="post_excerpt">
  42. <span class="date"><?php the_time('<\e\m>j</\e\m> M <\e\m>Y</\e\m>'); ?></span>
  43. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><span class="comment_count"><?php comments_popup_link('0', '1', '%'); ?></span></h2>
  44. <span class="post_meta">Posted in: <?php the_category('&bull;'); ?></span>
  45. <span class="post_meta_tags"><br/><?php the_tags('Tags: ', ' &bull; ', '<br />'); ?></span>
  46. <img src="<?php get_thumbnail(); ?>" alt="<?php the_title(); ?>" class="post_thumb" />
  47. <?php the_excerpt(); ?>
  48. <a href="<?php the_permalink(); ?>" class="read_more">Read More</a>
  49. </div>
  50. <?php endwhile; ?>
  51.  
  52. </div>
  53.  
  54.  
  55. <?php get_sidebar(); ?>
  56.  
  57. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment