content-quote.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Template part for displaying posts with the Quote 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. <?php scratchpad_sticky(); ?>
  12. <div class="entry-content">
  13. <?php get_template_part( 'images/inline', 'quote.svg' ); ?>
  14. <?php
  15. the_content( sprintf(
  16. /* translators: %s: Name of current post. */
  17. wp_kses( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'scratchpad' ), array( 'span' => array( 'class' => array() ) ) ),
  18. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  19. ) );
  20. wp_link_pages( array(
  21. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'scratchpad' ),
  22. 'after' => '</div>',
  23. 'link_before' => '<span>',
  24. 'link_after' => '</span>',
  25. ) );
  26. ?>
  27. </div><!-- .entry-content -->
  28. <header class="entry-header">
  29. <?php
  30. the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
  31. ?>
  32. <div class="entry-meta">
  33. <?php scratchpad_post_format(); ?>
  34. <?php scratchpad_posted_on(); ?>
  35. <?php
  36. edit_post_link(
  37. sprintf(
  38. /* translators: %s: Name of current post */
  39. esc_html__( 'Edit %s', 'scratchpad' ),
  40. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  41. ),
  42. '<span class="edit-link"><span class="sep">&bull;</span>',
  43. '</span>'
  44. );
  45. ?>
  46. </div><!-- .entry-meta -->
  47. </header><!-- .entry-header -->
  48. </article><!-- #post-## -->