aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/Template/Factory.php
blob: 3b409984e264a99b77a68d886ebae714fc09c9bf (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.'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;
	}
}
?>