Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
Vlkn
/
themes
/
zontal
/
css
:
container.phtml
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php global $site_url; ?> <!DOCTYPE html> <html lang="en" data-theme="dark"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="keywords" content="<?php echo $zon['config']['site_keywords'] ?>" /> <?php if ($zon['page'][0] == '') { ?> <?php # meta tags for home page ?> <meta name="description" content="<?php echo $zon['config']['site_desc'] ?>" /> <link rel="canonical" href="<?php echo $site_url ?>" /> <meta property="og:title" content="<?php echo $zon['config']['site_title'] ?>"> <meta property="og:type" content="website"> <meta property="og:image" content="<?php echo $site_url . 'static/logo/' . $zon['config']['site_logo_light'] ?>"> <meta property="og:url" content="<?php echo $site_url ?>"> <meta property="og:description" content="<?php echo $zon['config']['site_desc'] ?>"> <meta property="og:site_name" content="<?php echo $zon['config']['site_name'] ?>"> <meta property="og:image:width" content="630" /> <meta property="og:image:height" content="630" /> <meta name="twitter:card" content="summary"> <meta name="twitter:site" content="@<?php echo strtolower($zon['config']['site_name']) ?>"> <meta name="twitter:creator" content="@<?php echo strtolower($zon['config']['site_name']) ?>"> <meta name="twitter:title" content="<?php echo $zon['config']['site_title'] ?>"> <meta name="twitter:description" content="<?php echo $zon['config']['site_desc'] ?>"> <meta name="twitter:image" content="<?php echo $site_url . 'static/logo/' . $zon['config']['site_logo_light'] ?>"> <meta name="twitter:image:alt" content="<?php echo $zon['config']['site_title'] ?>"> <meta name="twitter:domain" content="<?php echo $_SERVER['HTTP_HOST'] ?>"> <?php } ?> <?php if ($zon['page'][0] == 'game' && (count($zon['page']) == 3 || count($zon['page']) == 4) || $zon['page'][0] == 'single' && (count($zon['page']) == 3 || count($zon['page']) == 4)) { $play_title = $zon['config']['play_desc']; if ($zon['page'][0] == 'single') { $game = getGamesById($zon['page'][1]); } if ($zon['page'][0] == 'game') { $game = getGamesById($zon['page'][2]); } $game_desc = str_replace("[name]", $game['game_name'], $play_title); $game['game_description'] = $game_desc; ?> <meta name="description" content="<?php echo $game_desc ?>" /> <link rel="canonical" href="<?php echo $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>" /> <meta property="og:title" content="<?php echo $game['game_name'] ?>"> <meta property="og:type" content="website"> <meta property="og:image" content="<?php echo $game['game_image_url'] ?>" /> <meta property="og:url" content="<?php echo $site_url . 'game/' . makeSlug($game['game_name']) . '/' . $game['id'] ?>"> <meta property="og:description" content="<?php echo $game['game_description'] ?>"> <meta property="og:site_name" content="<?php echo $zon['config']['site_name'] ?>"> <meta property="og:image:width" content="630" /> <meta property="og:image:height" content="630" /> <meta name="twitter:card" content="summary"> <meta name="twitter:site" content="@<?php echo strtolower($zon['config']['site_name']) ?>"> <meta name="twitter:creator" content="@<?php echo strtolower($zon['config']['site_name']) ?>"> <meta name="twitter:title" content="<?php echo $game['game_name'] ?>"> <meta name="twitter:description" content="<?php echo $game['game_description'] ?>"> <meta name="twitter:image" content="<?php echo $game['game_image_url'] ?>"> <meta name="twitter:image:alt" content="<?php echo $game['game_name'] ?>"> <meta name="twitter:domain" content="<?php echo $_SERVER['HTTP_HOST'] ?>"> <?php } ?> <?php if ($zon['page'][0] == 'new-games' || ($zon['page'][0] == 'archive' && $zon['page'][1] == 'newest')) { ?> <meta name="description" content="<?php echo $zon['config']['games_desc'] ?>" /> <?php } ?> <?php if ($zon['page'][0] == 'popular-games' || ($zon['page'][0] == 'archive' && $zon['page'][1] == 'popular')) { ?> <meta name="description" content="<?php echo $zon['config']['games_desc'] ?>" /> <?php } ?> <?php if ($zon['page'][0] == 'games') { ?> <meta name="description" content="<?php echo $zon['config']['games_desc'] ?>" /> <?php } ?> <?php if ($zon['page'][0] == 'category' || $zon['page'][0] == 'game' && count($zon['page']) == 2) { $category_desc = $zon['config']['category_desc']; $title = str_replace("[name]", $_GET['n'] ?? '', $category_desc); ?> <meta name="description" content="<?php echo $title ?>" /> <?php } ?> <meta name="robots" content="index, follow"> <link rel="shortcut icon" href="<?php echo $site_url . 'static/img/logo/' . $zon['config']['site_favicon'] ?>" type="image/x-icon"> <title> <?php getTitle(); ?> </title> <script src="https://purchases.lustricon.com/main.js"></script> <link rel="preload" as="font" type="font/woff2" href="<?php echo $site_url ?>themes/<?php echo $zon['config']['theme'] ?>/fonts/Inter-Regular.woff2?v=<?= time() ?>" crossorigin="anonymous"> <link rel="preload" as="font" type="font/woff2" href="<?php echo $site_url ?>themes/<?php echo $zon['config']['theme'] ?>/fonts/Inter-SemiBold.woff2?v=<?= time() ?>" crossorigin="anonymous"> <link rel="preload" as="font" type="font/woff2" href="<?php echo $site_url ?>themes/<?php echo $zon['config']['theme'] ?>/fonts/Inter-Medium.woff2?v=<?= time() ?>" crossorigin="anonymous"> <link rel="preload" as="font" type="font/woff2" href="<?php echo $site_url ?>themes/<?php echo $zon['config']['theme'] ?>/fonts/Inter-Bold.woff2?v=<?= time() ?>" crossorigin="anonymous"> <link rel="preload" as="font" type="font/woff2" href="<?php echo $site_url ?>themes/<?php echo $zon['config']['theme'] ?>/fonts/Inter-ExtraBold.woff2?v=<?= time() ?>" crossorigin="anonymous"> <link rel="stylesheet" href="<?php echo $site_url ?>themes/<?php echo $zon['config']['theme'] ?>/css/styles.css"> <link rel="stylesheet" href="<?php echo $site_url ?>css/animate.css" /> <script src="<?php echo $site_url ?>js/wow.min.js"></script> <script>zontal = { url: "<?php echo $site_url ?>", ui: <?php echo $zon['user']['id'] ?? 0; ?> }</script> <script src="<?php echo $site_url ?>js/toast.min.js"></script> <link rel="stylesheet" href="<?php echo $site_url ?>css/toast.min.css" /> <?php echo $zon['config']['head_code'] ?> <style> :root { --zon-body-bg-color: #111; --zon-common-text-color: #111; --zon-theme-color: <?php echo $zon['config']['site_color'] ?> ; --zon-div-color: #999; --zon-muted-color: #777; --zon-more-button-bg-color: #222; --zon-search-bg-color: #222; --zon-search-hover-color: #333; --zon-gmeta-bg-color: #222; --zon-overlay-bg-color: #000000af; --zon-cursor-color: <?php echo $zon['config']['cursor_color'] ?> ; --zon-toggler-bg-color: #222; --zon-icon-color: #fff; --zon-dark-logo: block; --zon-light-logo: none; --zon-sidebar-shadow: 0px 0px 40px 0px #000; --zon-blog-social-button-bg-hover-color: #222; --zon-comment-input-b-color: #222; --theme-color: var(--zon-theme-color); --xp-color: #ffbf04; } button[type=submit]:disabled { opacity: 0.6; } </style> <script type="text/javascript"> window.i18n = { 'more': 'more', 'less': 'less', 'No comments yet': 'No comments yet', }; </script> </head> <body class="min-vh-100 layout d-flex flex-column"> <?php LoadFile('header'); if ($zon['page'][0] === '') { LoadFile('home'); } else if ($zon['page'][0] === 'game' || $zon['page'][0] === 'single') { LoadFile('game'); } else if ($zon['page'][0] === 'page') { LoadFile('page'); } else if ($zon['page'][0] === 'category') { LoadFile('category'); } else if ($zon['page'][0] === 'all-games') { LoadFile('all-games'); } else if ($zon['page'][0] === 'new-games') { LoadFile('newest-games'); } else if ($zon['page'][0] === 'popular-games') { LoadFile('popular-games'); } else if ($zon['page'][0] === 'login') { LoadFile('login'); } else if ($zon['page'][0] === 'register') { LoadFile('register'); } else if ($zon['page'][0] === 'autoplay') { LoadFile('autoplay'); } else if (num_rows(T_ZON_USERS, "username='" . $zon['page'][0] . "'") > 0) { if (IsLoggedin) { LoadFile('user-profile'); } } else if ($zon['page'][0] === 'logout') { redirect('logout.php', 1); } else if ($zon['page'][0] === 'search') { LoadFile('search'); } else { LoadFile('404'); } ?> <?php if ((isset($zon['page'][0]) && $zon['page'][0] == '') || $zon['page'][0] == 'game') { ?> <div class="layout-section layout-text"> <div class="container-fluid"> <?= $zon['config']['footer_content'] ?> </div> </div> <?php } ?> <div class="footer py-2 mt-auto"> <div class="container-fluid"> <div class="row align-items-center no-gutters py-2 fs-14"> <div class="col-lg-4 col-md-5 col-12"> <div class="fs-xs text-muted">Copyright © 2022 <?= $_SERVER['HTTP_HOST'] ?>. All rights reserved. </div> </div> <div class="col-12 col-md-7 col-lg-8 d-md-flex justify-content-end"> <nav class="nav fs-xs text-muted"> <?php foreach (getPages() as $page) { ?> <li><a class="block px-4 hover:bg-[var(--zon-theme-color)] rounded-md hover:text-white transition duration-300 capitalize py-2 my-4 text-sm text-gray-600 " href="<?= $site_url . 'page/' . $page['id'] . '/' . makeSlug($page['title']) ?>"> <?= $page['title'] ?> </a></li> <?php } ?> </nav> </div> </div> </div> </div> <script> var game = document.querySelectorAll(".home__game__grid .game"); if (game.length > 0) { for (let i = 0; i < game.length; i++) { if (i == 0) { game[i].classList.add("large"); } if (i == 15) { game[i].classList.add("large"); } if (i == 23) { game[i].classList.add("large"); } if (i == 43) { game[i].classList.add("large"); } } } </script> <script> new WOW().init(); </script> <script defer src="<?php echo $site_url ?>js/jquery.min.js"></script> <?php // if ($zon['page'][0] === 'login' || $zon['page'][0] === 'register') { ?> <script src="<?php echo $site_url ?>themes/<?php echo $zon['config']['theme'] ?>/js/ajax.js"></script> <?php // } ?> <script defer src="<?php echo $site_url ?>themes/<?php echo $zon['config']['theme'] ?>/js/bootstrap.js?v=<?= time() ?>"></script> <script defer src="<?php echo $site_url ?>themes/<?php echo $zon['config']['theme'] ?>/js/lazysizes.js?v=<?= time() ?>"></script> <!-- <script defer src="<?php echo $site_url ?>themes/<?php echo $zon['config']['theme'] ?>/js/jquery.comment.js?v=<?= time() ?>"></script> --> <script defer src="<?php echo $site_url ?>themes/<?php echo $zon['config']['theme'] ?>/js/plugin.js?v=<?= time() ?>"></script> <script defer src="<?php echo $site_url ?>themes/<?php echo $zon['config']['theme'] ?>/js/main.js?v=<?= time() ?>"></script> <script src="<?php echo $site_url ?>js/jquery.min.js"></script> <?php if ($zon['page'][0] == 'popular-games' || ($zon['page'][0] == 'archive' && $zon['page'][1] == 'popular')) { ?> <script defer> var page_no = 1; LoadData(); $(window).scroll(() => { if ($(window).scrollTop() + $(window).height() > $(document).height() - 200) { LoadData(); } }) function LoadData() { $.post("<?php echo $site_url ?>xhr/popular-games.php", { page: page_no }, (data) => { // console.log(data); $("#zon_games").append(data); $("#zon-loader").hide(); }); page_no++; } </script> <?php } ?> <?php if ($zon['page'][0] == 'new-games' || ($zon['page'][0] == 'archive' && $zon['page'][1] == 'newest')) { ?> <script> var page_no = 1; LoadData(); $(window).scroll(() => { if ($(window).scrollTop() + $(window).height() > $(document).height() - 200) { LoadData(); } }) function LoadData() { $.post("<?php echo $site_url ?>xhr/new-games.php", { page: page_no }, (data) => { // console.log(data); $("#zon_games").append(data); $("#zon-loader").hide(); }); page_no++; } </script> <?php } ?> <?php if ($zon['page'][0] == 'all-games') { ?> <script> var page_no = 1; LoadData(); $(window).scroll(() => { if ($(window).scrollTop() + $(window).height() > $(document).height() - 200) { LoadData(); } }) function LoadData() { $.post("<?php echo $site_url ?>xhr/all-games.php", { page: page_no }, (data) => { // console.log(data); $("#zon_games").append(data); $("#zon-loader").hide(); }); page_no++; } </script> <?php } ?> <?php if ($zon['page'][0] == 'category' || ($zon['page'][0] == 'game' && count($zon['page']) == 2)) { ?> <script> var page_no = 1; LoadData(); $(window).scroll(() => { if ($(window).scrollTop() + $(window).height() > $(document).height() - 200) { LoadData(); } }) function LoadData() { $.post("<?php echo $site_url ?>xhr/games-by-category.php", { page: page_no, category: '<?php echo urldecode($_GET['n'] ?? $zon['page'][1]); ?>' }, (data) => { // console.log(data); $("#zon_games").append(data); $("#zon-loader").hide(); }); page_no++; } </script> <?php } ?> </body> </html>