Guest User

Untitled

a guest
May 11th, 2015
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package Alizee
  4. */
  5. ?>
  6.  
  7. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  8.  
  9. <?php if ( has_post_thumbnail() ) : ?>
  10. <div class="entry-thumb">
  11. <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" >
  12. <div class="thumb-icon"><i class="fa fa-link"></i></div>
  13. <?php the_post_thumbnail('alizee-thumb'); ?>
  14. </a>
  15. <span class="cat-link">
  16. <?php
  17. $category = get_the_category();
  18. if($category[0]){
  19. echo '<a href="' . esc_url(get_category_link($category[0]->term_id )) . '">' . esc_attr($category[0]->cat_name) . '</a>';
  20. }
  21. ?>
  22. </span>
  23. </div>
  24. <?php endif; ?>
  25.  
  26. <?php if (( get_theme_mod('home_layout') == 'one_col' ) && ( has_post_thumbnail() )) : //check if we have a thumbnail, if not add a class to the content ?>
  27. <div class="post-content">
  28. <?php else : ?>
  29. <div class="post-content no-thumb">
  30. <?php endif; ?>
  31. <header class="entry-header">
  32. <?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
  33.  
  34. <?php if ( 'post' == get_post_type() ) : ?>
  35. <div class="entry-meta">
  36. <?php alizee_posted_on(); ?>
  37. </div><!-- .entry-meta -->
  38. <?php endif; ?>
  39. </header><!-- .entry-header -->
  40.  
  41. <div class="entry-summary">
  42. <?php the_excerpt(); ?>
  43. </div>
  44. </div>
  45.  
  46. </article><!-- #post-## -->
Advertisement
Add Comment
Please, Sign In to add comment