HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/delstar/wp-content/plugins/easymega/templates/paging.php
<?php
if (! defined('ABSPATH')) exit; // Exit if accessed directly

$paged = $query->query_vars['paged'];
if (!$paged) {
    $paged = 1;
}
$next_page = intval($paged) + 1;
if ($next_page > $query->max_num_pages) {
    $next_page = 0;
}
$prev_page = $paged - 1;

if ($prev_page || $next_page) {
?>
    <div class="nav-tab-paging">
        <a href="#" data-paged="<?php echo esc_attr($prev_page); ?>" class="tab-paging back-page <?php echo ($prev_page > 0) ? 'active' : 'disable'; ?>"><span class="screen-reader-text"><?php esc_html_e('Previous', 'easymega'); ?></span></a>
        <a href="#" data-paged="<?php echo esc_attr($next_page); ?>" class="tab-paging next-page <?php echo ($next_page) ? 'active' : 'disable'; ?>"><span class="screen-reader-text"><?php esc_html_e('Next', 'easymega'); ?></span></a>
    </div>
<?php
}