content-portfolio.php 743 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * @package Sketch
  4. */
  5. $thumbsize = sketch_post_thumbnail_class();
  6. ?>
  7. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  8. <div class="entry-thumbnail <?php echo $thumbsize; ?>">
  9. <a href="<?php the_permalink(); ?>">
  10. <span class="screen-reader-text"><?php the_title(); ?></span>
  11. <?php if ( has_post_thumbnail() ) : ?>
  12. <?php the_post_thumbnail( $thumbsize ); ?>
  13. <?php endif; ?>
  14. </a>
  15. <?php edit_post_link( __( 'Edit', 'sketch' ), '<span class="edit-link">', '</span>' ); ?>
  16. </div>
  17. <header class="entry-header">
  18. <?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
  19. </header><!-- .entry-header -->
  20. </article><!-- #post-## -->