HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/pvruk.co.uk/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
}