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.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user