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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php include  TEMPLATE_PATH . "/includes/header.php" ?>
<div class="container">
    <div class="game-container">
        <?php widget_aside('top-content') ?>
        <h3 class="item-title"><i class="fa fa-plus" aria-hidden="true"></i><?php _e('NEW GAMES') ?></h3>
        <div class="row" id="section-new-games">
            <?php
            $games = fetch_games_by_type('new', 12, 0, false)['results'];
            foreach ( $games as $game ) { ?>
                <?php include  TEMPLATE_PATH . "/includes/grid.php" ?>
            <?php } ?>
        </div>
        <!-- Load more games -->
        <div class="load-more-games-wrapper">
            <!-- Template -->
            <div class="item-append-template" style="display: none;">
                <div class="col-md-2 col-sm-3 col-4 item-grid">
                    <a href="<?php echo get_permalink('game') ?>{{slug}}">
                    <div class="list-game">
                        <div class="list-thumbnail"><img src="<?php echo get_template_path(); ?>/images/thumb-placeholder1.png" data-src="{{thumbnail}}" class="small-thumb lazyload" alt="{{title}}"></div>
                        <div class="list-content">
                            <div class="star-rating text-center"><img src="<?php echo DOMAIN . TEMPLATE_PATH . '/images/star-{{rating}}.png' ?>" alt="rating"></div>
                            <div class="list-title">{{title}}</div>
                        </div>
                    </div>
                    </a>
                </div>
            </div>
            <!-- The button -->
            <div class="btn btn-primary btn-load-more-games">
                <?php _e('Load more games') ?> <i class="fa fa-chevron-down" aria-hidden="true"></i>
            </div>
        </div>
        <h3 class="item-title"><i class="fa fa-certificate" aria-hidden="true"></i><?php _e('POPULAR GAMES') ?></h3>
        <div class="row">
            <?php
            $games = fetch_games_by_type('popular', 12, 0, false)['results'];
            foreach ( $games as $game ) { ?>
                <?php include  TEMPLATE_PATH . "/includes/grid.php" ?>
            <?php } ?>
        </div>
        <h3 class="item-title"><i class="fa fa-gamepad" aria-hidden="true"></i><?php _e('YOU MAY LIKE') ?></h3>
        <div class="row">
            <?php
            $games = fetch_games_by_type('random', 12, 0, false)['results'];
            foreach ( $games as $game ) { ?>
                <?php include  TEMPLATE_PATH . "/includes/grid.php" ?>
            <?php } ?>
        </div>
        <?php widget_aside('bottom-content') ?>
    </div>
    <div class="mb-4 mt-4 hp-bottom-container">
        <?php widget_aside('homepage-bottom') ?>
    </div>
</div>
<?php include  TEMPLATE_PATH . "/includes/footer.php" ?>