diff --git a/system/functions.php b/system/functions.php
index 903570db..f3bff021 100644
--- a/system/functions.php
+++ b/system/functions.php
@@ -472,33 +472,16 @@ function template_place_holder($type)
*/
function template_header($is_admin = false)
{
- global $title_full, $config;
+ global $title_full, $config, $twig;
$charset = isset($config['charset']) ? $config['charset'] : 'utf-8';
- $ret = '
-
-
- ';
- if(!$is_admin)
- $ret .= '
-
-
' . $title_full . '';
-
- $ret .= '
-
-
-
-
-
-
-';
-
- if($config['recaptcha_enabled'])
- $ret .= "";
- return $ret;
+ return $twig->render('templates.header.html.twig',
+ [
+ 'charset' => $charset,
+ 'title' => $title_full,
+ 'is_admin' => $is_admin
+ ]
+ );
}
/**
@@ -565,10 +548,8 @@ function template_form()
foreach($templates as $key => $value)
$options .= '';
- return '';
+ global $twig;
+ return $twig->render('forms.change_template.html.twig', ['options' => $options]);
}
function getStyle($i)
diff --git a/system/templates/forms.change_template.html.twig b/system/templates/forms.change_template.html.twig
new file mode 100644
index 00000000..a0006483
--- /dev/null
+++ b/system/templates/forms.change_template.html.twig
@@ -0,0 +1,4 @@
+
\ No newline at end of file
diff --git a/system/templates/templates.header.html.twig b/system/templates/templates.header.html.twig
new file mode 100644
index 00000000..6438076a
--- /dev/null
+++ b/system/templates/templates.header.html.twig
@@ -0,0 +1,21 @@
+
+
+
+{% if not is_admin %}
+
+{{ title }}
+{% endif %}
+
+
+
+
+
+
+{% if config.recaptcha_enabled %}
+
+{% endif %}
\ No newline at end of file