File manager - Edit - /home/newsbmcs.com/public_html/play1/content/themes/arcade-two/home.php
Back
<?php // Include header include TEMPLATE_PATH . "/includes/header.php"; ?> <div id="popup-blur"> <?php widget_aside('header'); ?> <div class="container"> <!-- Category list --> <div class="category-list-global"> <?php $categories = fetch_all_categories(); echo '<ul class="category-list-wrapper">'; foreach ($categories as $cat) { $icon = get_category_icon($cat->slug, $category_icons); echo '<a href="' . get_permalink('category', $cat->slug) . '">'; echo '<li class="cat-item"> <span class="icon-category"> <img src="' . get_template_path() . '/images/icon/' . $icon . '.svg" alt="' . _t($cat->name) . '" width="40" height="40"> </span> <div class="cat-info text-ellipsis"> <span class="cat-name">' . _t(esc_string($cat->name)) . '</span> <div class="cat-game-amount">' . _t('%a games', Category::getCategoryCount($cat->id)) . '</div> </div> </li>'; echo '</a>'; } echo '</ul>'; ?> </div> <!-- Trending section --> <?php $games = fetch_games_by_type('trending', 25, 0, false)['results']; if (count($games) > 3) { ?> <h3 class="section-title"><?php _e('Trending'); ?></h3> <div class="row-list-1 grid-container"> <div class="list-1-wrapper"> <?php foreach ($games as $game) { ?> <?php include TEMPLATE_PATH . "/includes/list1.php"; ?> <?php } ?> </div> <button type="button" class="b-left btn btn-default btn-circle btn-lg" id="t-prev"> <i class="bi bi-caret-left-fill"></i> </button> <button type="button" class="b-right btn btn-default btn-circle btn-lg" id="t-next"> <i class="bi bi-caret-right-fill"></i> </button> </div> <?php } ?> <!-- New games section --> <h3 class="section-title"><?php _e('New games'); ?></h3> <div class="row grid-container" id="new-games-section"> <?php $games = fetch_games_by_type('new', 16, 0, false)['results']; foreach ($games as $game) { ?> <?php include TEMPLATE_PATH . "/includes/grid1.php"; ?> <?php } ?> </div> <!-- Popular games section --> <h3 class="section-title"><?php _e('Popular games'); ?></h3> <div class="row grid-container"> <?php $games = fetch_games_by_type('popular', 12, 0, false)['results']; foreach ($games as $game) { ?> <?php include TEMPLATE_PATH . "/includes/grid3.php"; ?> <?php } ?> </div> <?php widget_aside('center-ads'); ?> <!-- Random games section --> <h3 class="section-title"><?php _e('You may like'); ?></h3> <div class="row grid-container"> <?php $games = fetch_games_by_type('random', 16, 0, false)['results']; foreach ($games as $game) { ?> <?php include TEMPLATE_PATH . "/includes/grid1.php"; ?> <?php } ?> </div> </div> </div> <!-- Modal Popup --> <div id="popup-container" style="height: auto !important; display: flex;"> <div id="popup-content"> <?php widget_aside('pop-ads'); ?> <!-- Close Button --> <button id="close-popup">X</button> <div id="ads-txt-pop-up" style="position:absolute;top:3%;left:90%;width:35px;border:none;border-radius:0;background:#f4433600;color:#fff;white-space:nowrap;">Ad</div> </div> </div> <?php // Include footer include TEMPLATE_PATH . "/includes/footer.php"; ?> <script> $(document).ready(function () { const $popupContainer = $('#popup-container'); const $closePopupButton = $('#close-popup'); const $body = $('body'); // Show popup setTimeout(() => { $popupContainer.css('display', 'flex'); $body.addClass('popup-active'); }, 500); // clos popup $closePopupButton.on('click', function () { $popupContainer.css('display', 'none'); $body.removeClass('popup-active'); }); }); </script>
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings