content-pagination.php 492 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Template part for displaying the content pagination.
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  6. *
  7. * @package Pen
  8. */
  9. ob_start( 'trim' );
  10. if ( function_exists( 'wp_pagenavi' ) ) {
  11. wp_pagenavi();
  12. } else {
  13. the_posts_navigation();
  14. }
  15. $pager = ob_get_clean();
  16. if ( $pager ) {
  17. ?>
  18. <div id="pen_pager" class="clearfix <?php pen_class_animation( 'list_pager' ); /* phpcs:ignore */ ?>">
  19. <?php
  20. echo $pager; /* phpcs:ignore */
  21. ?>
  22. </div>
  23. <?php
  24. }