HEX
Server: Apache/2.4.41
System: Linux mainweb 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: nationalmedicaregrp (1119)
PHP: 8.3.7
Disabled: exec,passthru,shell_exec,system,popen,proc_open,pcntl_exec
Upload Files
File: /home/mjlclaims/public_html/wp-content/themes/go/partials/pagination.php
<?php
/**
 * A template partial to output pagination.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Go
 */

$posts_pagination = get_the_posts_pagination(
	array(
		'mid_size'  => 2,
		/**
		 * Translators:
		 * This text contains HTML to allow the text to be shorter on small screens.
		 * The text inside the span with the class nav-short will be hidden on small screens.
		 */
		'prev_text' => sprintf(
			'%s <span class="nav-prev-text">%s</span>',
			'&larr;',
			__( 'Newer <span class="nav-short">Posts</span>', 'go' )
		),
		'next_text' => sprintf(
			'<span class="nav-next-text">%s</span> %s',
			__( 'Older <span class="nav-short">Posts</span>', 'go' ),
			'&rarr;'
		),
	)
);

// If we're only showing one of the next or previous links, add a class indicating so.
if ( strpos( $posts_pagination, 'prev page-numbers' ) === false ) {
	$pagination_classes = ' only-next';
} elseif ( strpos( $posts_pagination, 'next page-numbers' ) === false ) {
	$pagination_classes = ' only-prev';
} else {
	$pagination_classes = '';
}

if ( $posts_pagination ) { ?>

	<div class="pagination-wrapper m-auto max-w-wide px">

		<?php echo $posts_pagination; /* @codingStandardsIgnoreLine -- already escaped during generation. */ ?>

	</div>

	<?php
}