Moved the templates to their own folders

This commit is contained in:
Yağızhan 2023-01-07 13:49:47 +03:00
parent 44dcbb7cfe
commit d153dc9a46
5 changed files with 3 additions and 2 deletions

View file

@ -87,8 +87,9 @@ class AntCMS
{
$currentConfig = AntConfig::currentConfig();
$themePath = antThemePath . '/' . $currentConfig['activeTheme'];
$themeContent['default_layout'] = file_get_contents($themePath . '/default_layout.html');
$themeContent['nav_layout'] = file_get_contents($themePath . '/nav_layout.html');
$templatePath = $themePath . '/' . 'Templates';
$themeContent['default_layout'] = file_get_contents($templatePath . '/default_layout.html');
$themeContent['nav_layout'] = file_get_contents($templatePath . '/nav_layout.html');
if (!$themeContent['nav_layout']) {
$themeContent['default_layout'] = '';