admin theme manager

This commit is contained in:
apuc committed 2024-09-11 17:38:46 +03:00
1 parent 69b27d4975
commit 42b28df07d
129 files changed
+16335 -53

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace kernel\helpers;
class Manifest
{
public static function getWithVars(string $manifestJson): array
{
$manifest = json_decode($manifestJson, true);
$keys = ["{slug}" => $manifest['slug']];
foreach($keys as $key => $value)
{
$manifestJson = str_replace($key, $value, $manifestJson);
}
return json_decode($manifestJson, true);
}
}