HEX
Server: Apache
System: Linux top 5.8.11-1.el7.elrepo.x86_64 #1 SMP Tue Sep 22 18:18:35 EDT 2020 x86_64
User: www (1000)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.018111.cn/wp-content/themes/jian/parts/pagination.php
<?php
  $pagination = _cao( 'pagination', 'infinite_button' );

  switch ( $pagination ) {
  	case 'numeric' :
      global $wp_query;

      $total = $wp_query->max_num_pages;
      $big = 999999999;
      
      if ( $total > 1 ) {
        if ( ! $current_page = get_query_var( 'paged' ) ) {
          $current_page = 1;
        }
      
        if ( get_option( 'permalink_structure' ) ) {
          $format = 'page/%#%/';
        } else {
          $format = '&paged=%#%';
        }
      
        echo '<div class="numeric-pagination">';
        echo paginate_links( array(
          'base'      => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
          'format'    => $format,
          'current'   => max( 1, get_query_var( 'paged' ) ),
          'total'     => $total,
          'mid_size'  => 3,
          'type'      => 'list',
          'prev_text' => '<i class="mdi mdi-chevron-left"></i>',
          'next_text' => '<i class="mdi mdi-chevron-right"></i>',
        ) );
        echo '</div>';
      }
      break;

    default :
      the_posts_navigation(
        array('prev_text' => '下一页', 'next_text' => '上一页')
      );
  }
?>

<?php if ( strpos( $pagination, 'infinite' ) !== false ) : ?>
  <div class="infinite-scroll-status">
    <div class="infinite-scroll-request"></div>
  </div>
  <div class="infinite-scroll-action">
    <div class="infinite-scroll-button button">加载更多</div>
  </div>
<?php endif; ?>