content-portfolio.php 881 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * The template used for displaying projects on index view
  4. *
  5. * @package Illustratr
  6. */
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <?php if ( '' != get_the_post_thumbnail() ) : ?>
  10. <div class="portfolio-thumbnail">
  11. <a href="<?php the_permalink(); ?>">
  12. <?php the_post_thumbnail( 'illustratr-portfolio-featured-image' ); ?>
  13. </a>
  14. </div><!-- .portfolio-thumbnail -->
  15. <?php endif; ?>
  16. <header class="portfolio-entry-header">
  17. <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>
  18. <?php echo get_the_term_list( get_the_ID(), 'jetpack-portfolio-type', '<span class="portfolio-entry-meta">', _x(', ', 'Used between list items, there is a space after the comma.', 'illustratr' ), '</span>' ); ?>
  19. </header><!-- .portfolio-entry-header -->
  20. </article><!-- #post-## -->