Guest User

content.php

a guest
Sep 3rd, 2019
94
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. * Template part for displaying posts
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Bold_Photography
  8. */
  9.  
  10. ?>
  11.  
  12. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
  13. <div class="post-wrapper hentry-inner">
  14. <?php bold_photography_archive_image(); ?>
  15.  
  16. <div class="entry-container">
  17. <header class="entry-header">
  18. <?php if ( is_sticky() ) { ?>
  19. <span class="sticky-post">
  20. <span class="screen-reader-text"><?php esc_html_e( 'Featured', 'bold-photography' ); ?></span>
  21. </span>
  22. <?php } ?>
  23.  
  24. <?php
  25. if ( is_singular() ) :
  26. the_title( '<h1 class="entry-title">', '</h1>' );
  27. else :
  28. the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
  29. endif;?>
  30.  
  31. <?php if ( 'post' === get_post_type() ) : ?>
  32. <div class="entry-meta">
  33. <?php bold_photography_posted_on(); ?>
  34. <?php bold_photography_by_line(); ?>
  35. <?php echo get_comments_number() . ' comments'; ?>
  36. </div><!-- .entry-meta -->
  37. <?php
  38. endif; ?>
  39. </header><!-- .entry-header -->
  40.  
  41. <div class="entry-summary">
  42. <?php
  43. the_excerpt();
  44. ?>
  45. </div><!-- .entry-summary -->
  46. </div><!-- .entry-container -->
  47. </div><!-- .hentry-inner -->
  48. </article><!-- #post-<?php the_ID(); ?> -->
RAW Paste Data