Files
argus-wp-defence/admin/views/partials/pagination.php
T
root df0f2fccb8 ARGUS WordPress Defence 1.0.0 — first production release
Automatic WordPress security: local firewall, malware and file-integrity
scanning, vulnerability protection, quarantine, scheduled backups, an
optional page cache, and automatic global threat intelligence.

See README.md for installation, update, and uninstall instructions.
2026-08-09 13:40:16 +00:00

33 lines
856 B
PHP

<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$argus_page_param = $argus_page_param ?? 'paged';
if ( $total_pages <= 1 ) {
return;
}
?>
<div class="argus-wpd-pagination">
<?php if ( $page > 1 ) : ?>
<a href="<?php echo esc_url( add_query_arg( $argus_page_param, $page - 1, $base_url ) ); ?>" class="argus-wpd-page-link">&larr; <?php esc_html_e( 'Previous', 'argus-wordpress-defence' ); ?></a>
<?php endif; ?>
<span class="argus-wpd-page-info">
<?php
printf(
esc_html__( 'Page %1$d of %2$d', 'argus-wordpress-defence' ),
(int) $page,
(int) $total_pages
);
?>
</span>
<?php if ( $page < $total_pages ) : ?>
<a href="<?php echo esc_url( add_query_arg( $argus_page_param, $page + 1, $base_url ) ); ?>" class="argus-wpd-page-link"><?php esc_html_e( 'Next', 'argus-wordpress-defence' ); ?> &rarr;</a>
<?php endif; ?>
</div>