AdminPanel updates - changelog

-Admin menu updates
-Moved getchangelogtype/where to functions file and added to twig
-Added changelog editor to admin panel and updated changelog page
-Renamed the changelog md reader to clmd and edited the version file.
This commit is contained in:
Lee
2021-01-04 12:23:36 +00:00
parent 6c6af59b22
commit bb3602073c
11 changed files with 477 additions and 50 deletions

View File

@@ -54,6 +54,20 @@ $function = new TwigFunction('getGuildLink', function ($s, $p) {
});
$twig->addFunction($function);
$function = new TwigFunction('truncate', function ($s, $n) {
return truncate($s, $n);
});
$twig->addFunction($function);
$function = new TwigFunction('getChangelogType', function ($n) {
return getChangelogType($n);
});
$twig->addFunction($function);
$function = new TwigFunction('getChangelogWhere', function ($n) {
return getChangelogWhere($n);
});
$twig->addFunction($function);
$function = new TwigFunction('hook', function ($hook) {
global $hooks;