From 4847536d94671d91187d8ba602f74ec09261a808 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Mon, 5 May 2025 00:15:09 +0500 Subject: feat: software page --- public/software.php | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 public/software.php (limited to 'public/software.php') diff --git a/public/software.php b/public/software.php new file mode 100644 index 0000000..3e0dc5a --- /dev/null +++ b/public/software.php @@ -0,0 +1,83 @@ + + [ + [ + "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" => [] +]; +?> + + + + + Software - <?php echo INSTANCE_NAME ?> + + + + + +
+
+ +
+ $sw) { + echo '
'; + echo ""; + echo '
'; + + if (empty($sw)) { + echo '

There are no software in this category! They will appear here as soon as they support TinyEmotes.

'; + } + + foreach ($sw as $s) { + $name_lower = strtolower($s["name"]); + echo '
'; + echo "
"; + + echo '
'; + echo '

' . $s["name"] . '

by ' . $s["author"] . '

'; + echo '

' . $s["desc"] . '

'; + + $screenshot_path = "./static/img/software/$name_lower/screenshots"; + if (is_dir($screenshot_path)) { + echo '
'; + foreach (new DirectoryIterator($screenshot_path) as $file) { + if ($file->isDot()) { + continue; + } + + echo ""; + } + echo '
'; + } + + echo '
'; + + echo '
'; + echo '[ Download ]'; + echo '[ Source code ]'; + echo '
'; + } + + echo '
'; + } + ?> +
+
+
+ + + \ No newline at end of file -- cgit v1.2.3