content-status.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * Template part for displaying status format posts.
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Toujours
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <?php if ( is_sticky() && is_home() ) { ?>
  12. <span class="featured-post"><?php esc_html_e( 'Featured', 'toujours' ); ?></span>
  13. <?php } ?>
  14. <?php if ( '' !== $post->post_content ) { ?>
  15. <div class="entry-content">
  16. <?php
  17. the_content( sprintf(
  18. /* translators: %s: Name of current post. */
  19. wp_kses( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'toujours' ), array( 'span' => array( 'class' => array() ) ) ),
  20. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  21. ) );
  22. ?>
  23. <?php
  24. wp_link_pages( array(
  25. 'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'toujours' ) . '</span>',
  26. 'after' => '</div>',
  27. 'pagelink' => '<span class="page-links-num">%</span>'
  28. ) );
  29. ?>
  30. </div><!-- .entry-content -->
  31. <?php } ?>
  32. <footer class="entry-footer">
  33. <?php if ( ! is_single() ) {
  34. the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );
  35. } else {
  36. the_title( '<h2 class="entry-title">', '</h2>' );
  37. } ?>
  38. <div class="entry-meta">
  39. <?php
  40. toujours_post_format();
  41. toujours_posted_on();
  42. toujours_comment_link();
  43. edit_post_link(
  44. sprintf(
  45. /* translators: %s: Name of current post */
  46. esc_html__( 'Edit %s', 'toujours' ),
  47. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  48. ),
  49. '<span class="edit-link"><span class="sep">&bull;</span>','</span>'
  50. );
  51. ?>
  52. </div><!-- .entry-meta -->
  53. </footer><!-- .entry-footer -->
  54. </article><!-- #post-## -->