aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/Template/Factory.php
blob: 7e56a7967c2a517c7c1cb5fd1bc89ccd4d749e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
namespace Template;

class Factory extends \Factory implements \FactoryInterface {
	public static function build($template): Template {
		$Template = new Template(ROOT.'theme/'.\Application::get('TEMPLATE.NAME')."/html/{$template}.php");
		$Template->set('Language', \Application::getLanguage());
		$Template->set('BLOGMETA', [
			'NAME' => \Application::get('BLOGMETA.NAME'),
			'DESC' => \Application::get('BLOGMETA.DESC'),
			'MAIL' => \Application::get('BLOGMETA.MAIL'),
			'LANG' => \Application::get('BLOGMETA.LANG'),
		]);

		return $Template;
	}
}