content-status.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * Template part for displaying posts with the Status format.
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Scratchpad
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <span class="paper-top"></span>
  12. <?php scratchpad_sticky(); ?>
  13. <header class="entry-header">
  14. <?php
  15. if ( is_single() ) {
  16. scratchpad_categories();
  17. the_title( '<h1 class="entry-title">', '</h1>' );
  18. } else {
  19. the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
  20. }
  21. ?>
  22. </header><!-- .entry-header -->
  23. <div class="entry-content">
  24. <?php
  25. the_content( sprintf(
  26. /* translators: %s: Name of current post. */
  27. wp_kses( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'scratchpad' ), array( 'span' => array( 'class' => array() ) ) ),
  28. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  29. ) );
  30. wp_link_pages( array(
  31. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'scratchpad' ),
  32. 'after' => '</div>',
  33. 'link_before' => '<span>',
  34. 'link_after' => '</span>',
  35. ) );
  36. ?>
  37. </div><!-- .entry-content -->
  38. <div class="entry-meta">
  39. <?php scratchpad_post_format(); ?>
  40. <?php scratchpad_posted_on(); ?>
  41. <?php
  42. edit_post_link(
  43. sprintf(
  44. /* translators: %s: Name of current post */
  45. esc_html__( 'Edit %s', 'scratchpad' ),
  46. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  47. ),
  48. '<span class="edit-link"><span class="sep">&bull;</span>',
  49. '</span>'
  50. );
  51. ?>
  52. </div><!-- .entry-meta -->
  53. <?php get_template_part( 'images/inline', 'pen.svg' ); ?>
  54. </article><!-- #post-## -->