-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
executable file
·73 lines (73 loc) · 1.68 KB
/
index.php
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
include "_core.php";
$isMain=true;
include "_begin.php";
include "_header.php";
?>
<div class="container mt-3">
<?php include "_slider.php" ?>
<div class="row">
<div class="col-sm-12">
<center>
<h5><?= $translates[$lang]["index_h5_title"] ?></h5>
</center>
<?php if(!$amp) { ?>
<br>
<?php } ?>
<?php
ads(1, $amp);
$i=1;
$cats=array_merge($cats_app, $cats_game);
foreach($cats as $category) {
$apps=$db->selects("application", ["lang"=>$lang,"categoryID"=>$category["id"]], "ORDER BY `id` DESC LIMIT 6", $appModalFields);
if(isset($apps[0])) {
?>
<br>
<h2<?= isRTL($lang) ? " style=\"text-align: right;direction: rtl;\"" : ""?>><?= $translates[$lang]["index_category_title"]?> <?= $category["name".strtoupper($lang)] ?></h2>
<br>
<div class="row">
<?php
foreach($apps as $app) {
modalApp($app, 2, 4, 6, 6, $category["slug"], $category["isGame"]);
}
?>
</div>
<?php
if($i % 4 == 0) {
ads(1, $amp);
}
$i++;
}
}
?>
</div>
</div>
</div>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "<?= $site ?>/<?= $lang ?>/",
"potentialAction": {
"@type": "SearchAction",
"target": "<?= $site ?>/<?= $lang ?>/?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"name": "<?= $translates[$lang]["broad_title"] ?>",
"item": "<?= $site ?>/<?= $lang ?>/"
}]
}
</script>
<?php
include "_footer.php";
include "_close.php";
?>