1
0

content-page.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Template part for displaying page content in page.php.
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Akina
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <?php
  12. if(should_show_title()) { ?>
  13. <header class="entry-header">
  14. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  15. </header><!-- .entry-header -->
  16. <?php } ?>
  17. <?php get_template_part('layouts/sidebox'); ?>
  18. <div class="entry-content">
  19. <?php
  20. the_content();
  21. wp_link_pages( array(
  22. 'before' => '<div class="page-links">' . __( 'Pages:', 'sakurairo' ),
  23. 'after' => '</div>',
  24. ) );
  25. ?>
  26. </div><!-- .entry-content -->
  27. <footer class="entry-footer">
  28. <?php
  29. edit_post_link(
  30. sprintf(
  31. /* translators: %s: Name of current post */
  32. __( 'Edit %s', 'sakurairo' ),
  33. the_title( '<span class="screen-reader-text">"', '"</span>', false )
  34. ),
  35. '<span class="edit-link">',
  36. '</span>'
  37. );
  38. ?>
  39. </footer><!-- .entry-footer -->
  40. </article><!-- #post-## -->