Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2011
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. <!--BEGIN #BLOGNEWS. .inner-wrap -->
  2. <div id="recent-work" class="inner-wrap clearfix">
  3. <!--BEGIN .Our Services -->
  4. <div class="side-content">
  5. <h2>From The Blog</h2>
  6. <p>As a digital agency our talented team of designers and web developers deliver great results through professional websites and digital campaigns.</p>
  7. <!--END .side-content -->
  8. </div>
  9. <?php
  10.  
  11. $query = new WP_Query(array(
  12. 'orderby' => $tz_blog_order,
  13. 'posts_per_page' => $tz_blog_number
  14. )
  15. );
  16.  
  17. ?>
  18. <ul class="grid clearfix">
  19. <?php
  20.  
  21. if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post();
  22.  
  23. $thumb = get_post_meta(get_the_ID(), 'tz_portfolio_thumb', TRUE);
  24. $type = get_post_meta(get_the_ID(), 'tz_switch', TRUE);
  25.  
  26. if($thumb == '')
  27. $thumb = FALSE;
  28. ?>
  29. <li <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  30. <h3 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('%s', 'framework'), get_the_title()); ?>">
  31. <?php the_title(); ?>
  32. </a></h3>
  33. <div class="post-thumb"> <a href="<?php the_permalink(); ?>" title="<?php printf(__(' %s', 'framework'), get_the_title()); ?>">
  34. <?php if($thumb) : ?>
  35. <img width="205" height="154" src="<?php echo $thumb; ?>" alt="<?php the_title(); ?>" />
  36. <?php else: ?>
  37. <?php the_post_thumbnail('thumbnail-preview'); ?>
  38. <?php endif; ?>
  39. </a> </div>
  40. <div class="entry-excerpt">
  41. <?php the_excerpt(); ?>
  42. </div>
  43. </li>
  44. <?php endwhile; endif; ?>
  45. </ul>
  46. </div>
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement