1
difenduandada
2024-10-15 7fd2948ee35c8e147ed35ce6d8502f94a98ddd22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php include  TEMPLATE_PATH . "/includes/header.php" ?>
<div class="container">
    <div class="game-container">
        <?php widget_aside('top-content') ?>
        <div class="content-wrapper">
            <h3 class="item-title"><?php _e('%a Games', esc_string($archive_title)) ?></h3>
            <p><?php _e('%a games in total.', esc_int($total_games)) ?> <?php _e('Page %a of %b', esc_int($cur_page), esc_int($total_page)) ?></p>
            <?php
            if($category->description != ''){
                echo '<p class="category-description">';
                echo "$category->description</p>";
            }
            ?>
            <div class="game-container">
                <div class="grid-layout grid-wrapper">
                    <?php foreach ( $games as $game ) { ?>
                    <?php include  TEMPLATE_PATH . "/includes/grid.php" ?>
                    <?php } ?>
                </div>
            </div>
            <div class="pagination-wrapper">
                <nav aria-label="Page navigation example">
                    <?php
                    $cur_page = 1;
                    if(isset($_GET['page'])){
                        $cur_page = esc_int($_GET['page']);
                    }
                    render_pagination($total_page, $cur_page, 8, 'category', $_GET['slug']);
                    ?>
                </nav>
            </div>
        </div>
        <?php widget_aside('bottom-content') ?>
    </div>
</div>
<?php include  TEMPLATE_PATH . "/includes/footer.php" ?>