File "content.phtml"

Full Path: /www/wwwroot/turbocarclub.com/themes/asur/layout/search/content.phtml
File size: 2.49 KB
MIME-type: --
Charset: utf-8

<?php
global $socket, $site_url;
$games = getGamesByQuery(ms_secure($_GET['g']), 100);
// print_r($_GET['g']);
?>
<!-- <div class="zon-container">
    <h1 class="text-3xl capitalize mb-8 mt-3 block capitalize font-bold page-heading">
        results from (<?php echo ms_secure($_GET['g']) ?>)
    </h1>
    <div class="game__grid home__game__grid">
        <?php foreach ($games as $game) { ?>
            <div class="game wow <?php echo $zon['config']['animate_class'] ?>">
                <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="game__thumb">
                    <img src="<?= $game['game_image_url'] ?>" alt="<?= $game['game_name'] ?>" />
                </a>
                <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" class="game_name">
                    <?= $game['game_name'] ?>
                </a>
            </div>
        <?php } ?>
    </div>
</div> -->


<div class="layout-section">
    <div class="container-fluid">
        <div class="layout-heading mb-4">
            <div>
                <h1 class="h2">
                    Search result "<?= ms_secure($_GET['g']) ?>" </h1>
                <div class="fs-sm text-muted">
                    <?= count($games) ?> games in total
                </div>
            </div>
        </div>
        <div class="card-masonry mb-4">
            <?php foreach ($games as $game) { ?>
                <a href="<?= $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>"
                    class="card wow <?php echo $zon['config']['animate_class'] ?> <?= isFeaturedGame($game['id']) ? 'large' : '' ?>">
                    <picture>
                        <source data-srcset="<?= $game['game_image_url'] ?>" type="image/webp" class="img-fluid"
                            srcset="<?= $game['game_image_url'] ?>">
                        <source data-srcset="<?= $game['game_image_url'] ?>" type="image/png" class="img-fluid"
                            srcset="<?= $game['game_image_url'] ?>">
                        <img data-src="<?= $game['game_image_url'] ?>" alt="Fidget Spinner Creator"
                            class="lazyload img-fluid" width="500" height="500">
                    </picture>
                    <div class="card-body">
                        <h3><?= $game['game_name'] ?></h3>
                    </div>
                </a>
            <?php } ?>
        </div>
    </div>
</div>