Guest User

Article

a guest
May 5th, 2014
15
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <article class="masonry-entry" id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
  2. <a href="<?php the_permalink(' ') ?>" alt="<?php the_title(); ?>">
  3. <?php if ( has_post_thumbnail() ) : ?>
  4. <div class="masonry-thumbnail">
  5. <?php the_post_thumbnail('medium'); ?>
  6. </div>
  7. <?php endif; ?>
  8. <div class="masonry-details"><div class="detailstable"><div class="detailscell">
  9. <h1><?php if (strlen($post->post_title) > 17) {
  10. echo substr(the_title($before = '', $after = '', FALSE), 0, 17) . '...'; } else {
  11. the_title();
  12. } ?></h1>
  13. <h2><?php
  14. $category = get_the_category();
  15. echo $category[0]->cat_name;
  16. ?></h2>
  17. <h3><span><?php the_excerpt(); ?></span></h3>
  18. </div></div></div></a></article>
RAW Paste Data