aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/Template/Factory.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/namespace/Template/Factory.php')
-rw-r--r--core/namespace/Template/Factory.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/namespace/Template/Factory.php b/core/namespace/Template/Factory.php
new file mode 100644
index 0000000..a90c61e
--- /dev/null
+++ b/core/namespace/Template/Factory.php
@@ -0,0 +1,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;
+ }
+}
+?> \ No newline at end of file