feat: готовый бренд ZoomStage и минимальный доменный подвал (refs #12)
deploy-preland / deploy zoomstage.online (push) Successful in 44s

This commit is contained in:
Panfilov Konstantin committed 2026-10-21 17:24:14 +03:00
1 parent a2c3197a16
commit ec087ea636
24 files changed
+365 -237

No files matched your search

+2 -2
View File
@@ -2,8 +2,8 @@
/** Версия логотипа по содержимому исключает старый бренд из браузерного кеша. */
function prelandAssetUrl(string $path): string
{
global $assetsUriPrefix;
$file = dirname(__DIR__) . '/' . $path;
$version = is_file($file) ? substr(hash_file('sha256', $file), 0, 16) : 'missing';
return htmlspecialchars(rtrim($assetsUriPrefix, '/') . '/' . $path . '?v=' . $version, ENT_QUOTES, 'UTF-8');
// Бренд всегда принадлежит текущему преленду, даже если общая статика на CDN/API.
return htmlspecialchars('/' . $path . '?v=' . $version, ENT_QUOTES, 'UTF-8');
}