<?php

// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

// phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
?>
<div class="pods-pagination-paginate <?php echo esc_attr( $params->class ); ?>">
	<?php
	$args = array(
		'base'      => $params->base,
		'format'    => $params->format,
		'total'     => $params->total,
		'current'   => $params->page,
		'end_size'  => $params->end_size,
		'mid_size'  => $params->mid_size,
		'prev_next' => $params->prev_next,
		'prev_text' => $params->prev_text,
		'next_text' => $params->next_text,
		'type'      => 'list',
	);

	echo paginate_links( $args ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	?>
</div>
