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.
33 lines
856 B
PHP
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">← <?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' ); ?> →</a>
|
|
<?php endif; ?>
|
|
</div>
|