blob: 4650e259ee22bf13c3d13a699a4bfe9ea829d35d (
plain)
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
74
75
76
77
78
79
80
81
82
83
|
<?php
include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php";
include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php";
$software = [
"Standalone clients" =>
[
[
"name" => "Tinyrino",
"author" => "ilotterytea",
"desc" => "Tinyrino is a fork of Chatterino7 (which is a fork of Chatterino 2). This fork supports TinyEmotes, a software that allows you to host your emotes on your own instances.",
"download_url" => "https://github.com/ilotterytea/tinyrino/releases",
"source_url" => "https://github.com/ilotterytea/tinyrino"
]
],
"Web extensions" => [],
"Chatbots" => [],
"Other tools" => []
];
?>
<html>
<head>
<title>Software - <?= CONFIG['instance']['name'] ?></title>
<link rel="stylesheet" href="/static/style.css">
<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
</head>
<body>
<div class="container">
<div class="wrapper">
<?php html_navigation_bar() ?>
<section class="content">
<?php
foreach ($software as $software_name => $sw) {
echo '<section class="box">';
echo "<div class='box navtab'>$software_name</div>";
echo '<div class="box content">';
if (empty($sw)) {
echo '<p>There are no software in this category! They will appear here as soon as they support TinyEmotes.</p>';
}
foreach ($sw as $s) {
$name_lower = strtolower($s["name"]);
echo '<div class="box row small-gap">';
echo "<div><img src='/static/img/software/$name_lower/icon.png' alt=''></div>";
echo '<div class="column grow small-gap">';
echo '<div class="row"><h1>' . $s["name"] . '</h1><p style="font-size:10px;">by ' . $s["author"] . '</p></div>';
echo '<p>' . $s["desc"] . '</p>';
$screenshot_path = "./static/img/software/$name_lower/screenshots";
if (is_dir($screenshot_path)) {
echo '<div class="row small-gap screenshots">';
foreach (new DirectoryIterator($screenshot_path) as $file) {
if ($file->isDot()) {
continue;
}
echo "<a href='$screenshot_path/$file' target='_blank'><img src='$screenshot_path/$file' alt=''></a>";
}
echo '</div>';
}
echo '</div>';
echo '<div class="column small-gap items-center">';
echo '<a href="' . $s["download_url"] . '" target="_blank" class="button green big">Download</a>';
echo '<a href="' . $s["source_url"] . '" target="_blank">[ Source code ]</a>';
echo '</div></div>';
}
echo '</div></section>';
}
?>
</section>
</div>
</div>
</body>
</html>
|