content-page.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Template part for displaying page content in page.php
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  6. *
  7. * @package UIU_DEPARTMENTAL
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <header class="entry-header">
  12. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  13. </header><!-- .entry-header -->
  14. <?php uiu_departmental_post_thumbnail(); ?>
  15. <div class="entry-content">
  16. <?php
  17. the_content();
  18. wp_link_pages(
  19. array(
  20. 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'uiu-departmental' ),
  21. 'after' => '</div>',
  22. )
  23. );
  24. ?>
  25. </div><!-- .entry-content -->
  26. <?php if ( get_edit_post_link() ) : ?>
  27. <footer class="entry-footer">
  28. <?php
  29. edit_post_link(
  30. sprintf(
  31. wp_kses(
  32. /* translators: %s: Name of current post. Only visible to screen readers */
  33. __( 'Edit <span class="screen-reader-text">%s</span>', 'uiu-departmental' ),
  34. array(
  35. 'span' => array(
  36. 'class' => array(),
  37. ),
  38. )
  39. ),
  40. wp_kses_post( get_the_title() )
  41. ),
  42. '<span class="edit-link">',
  43. '</span>'
  44. );
  45. ?>
  46. </footer><!-- .entry-footer -->
  47. <?php endif; ?>
  48. </article><!-- #post-<?php the_ID(); ?> -->