content-portfolio-single.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * The template used for displaying Jetpack Portfolio posts on single portfolio pages
  4. *
  5. * @package Lodestar
  6. */
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <?php if ( has_post_thumbnail() ) : ?>
  10. <div class="post-thumbnail">
  11. <?php the_post_thumbnail( 'lodestar-portfolio-featured-image' ); ?>
  12. </div>
  13. <?php endif; ?>
  14. <header class="entry-header">
  15. <?php if ( is_single() ) {
  16. the_title( '<h1 class="entry-title">', '</h1>' );
  17. } else {
  18. the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
  19. } ?>
  20. <div class="entry-meta">
  21. <?php lodestar_portfolio_meta(); ?>
  22. </div><!-- .entry-meta -->
  23. </header>
  24. <div class="entry-content">
  25. <?php
  26. the_content();
  27. wp_link_pages( array(
  28. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'lodestar' ),
  29. 'after' => '</div>',
  30. ) );
  31. ?>
  32. </div><!-- .entry-content -->
  33. <footer class="entry-footer">
  34. <?php lodestar_entry_footer(); ?>
  35. </footer><!-- .entry-footer -->
  36. <?php lodestar_author_bio(); ?>
  37. </article><!-- #post-<?php the_ID(); ?> -->