Shortcodes: add home blocks and global custom CSS setting

This commit is contained in:
AudioCore Bot committed 2026-03-05 17:09:01 +00:00
1 parent 93e829bd19
commit af6bb638ac
7 files changed
+273 -227

No files matched your search

+4
View File
@@ -78,6 +78,10 @@ Shortcodes::register('releases', static function (array $attrs = []): string {
return '<section class="ac-shortcode-releases"><div class="ac-shortcode-release-grid">' . $cards . '</div></section>';
});
Shortcodes::register('latest-releases', static function (array $attrs = []): string {
return Shortcodes::render('[releases limit="' . max(1, min(20, (int)($attrs['limit'] ?? 8))) . '"]');
});
return function (Router $router): void {
$controller = new ReleasesController();
$router->get('/releases', [$controller, 'index']);