From 226516aca48e97d3dc4e4df213bc2023e64b1afd Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 27 Mar 2022 21:29:24 +0200 Subject: Initial commit --- _frame/library.internal/index.php | 7 ++ _frame/library.internal/main.php | 60 ++++++++++++++ _frame/library.internal/view.php | 161 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 228 insertions(+) create mode 100644 _frame/library.internal/index.php create mode 100644 _frame/library.internal/main.php create mode 100644 _frame/library.internal/view.php (limited to '_frame/library.internal') diff --git a/_frame/library.internal/index.php b/_frame/library.internal/index.php new file mode 100644 index 0000000..04f766e --- /dev/null +++ b/_frame/library.internal/index.php @@ -0,0 +1,7 @@ + + + + + + Argon + + + + + + + + + + + +
+
+ +
+
+ +
+ +
';" class="frame-library-item" id="frame-library-item--"> +
+
+ <?= l(" class="frame-library-item-cover-inner" src="/api/get_image.php?_="> +
+
+
+
+
·
+ +
+ +
+ +
+
+
+ +
+ $song): ?> +
onclick="location.href='/_frame/library/';" class="frame-library-item-set-song frame-library-item-part-song frame-library-item-set-song-wip" id="frame-library-item-set-song----"> +
+ <?= l(" class="frame-library-item-set-song-cover-inner frame-library-item-part-song" src="/api/get_image.php?_=">
+
+
+ +
+ +
+ +
+
+
+ + \ No newline at end of file diff --git a/_frame/library.internal/view.php b/_frame/library.internal/view.php new file mode 100644 index 0000000..b66a4ca --- /dev/null +++ b/_frame/library.internal/view.php @@ -0,0 +1,161 @@ + + + + + + Argon + + + + + + + + + + + +
+
+ +
+
+
');"> +
> +
+
+ <?= l(" src="/api/get_image.php?_="> +
+
+
+
+
· setPattern('d MMMM yyyy'); + echo $fmt->format(new DateTime($selected["release"])); + ?> + $song) { + if ($song["_released"]) { + if ($firstPlayableIndex === -1) $firstPlayableIndex = $index; + $playable = true; + } else { + $notPlayableCount++; + } + } + } else if (!str_starts_with($selected["_id"], "_")) { + $playable = true; + } + + ?> + + · 1 || $views[$selected["_id"]] === 0 ? "s" : "" ?>· 1 || $listens === 0 ? "s" : "" ?> + +
+ +
';"> · " . $selected["original"] . "" ?>
+ +
tracks
+ + + + 0 && $playable): ?> + 1 ? "s" : "" ?> 1 ? "ne sont pas accessibles en ce moment." : "n'est pas accessible en ce moment") ?> + + +
+ +
+
+
+
+
+
+ + + + + +
+ + $sid) { + if (isset($data["songs"][$sid])) $set["songs"][$index] = $data["songs"][$sid]; + } + } + ?> +
+ $song): ?> +
onclick="location.href='/_frame/library/';" class="frame-library-item-set-song frame-library-item-part-song frame-library-item-set-song-wip" id="frame-library-item-set-song----"> +
+ <?= l(" class="frame-library-item-set-song-cover-inner frame-library-item-part-song" src="/api/get_image.php?_=">
+
" . $song["name"] . "" : $song["name"] ?>
+
+ +
+ +
+
+ + \ No newline at end of file -- cgit