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

class Factory extends \Factory implements \FactoryInterface {
	public static function build($template): Template {
		$Template = new Template(ROOT.'template/'.\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;
	}
}
?>