]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/diabook/config.php
Implement Smarty3
[friendica.git] / view / theme / diabook / config.php
index 88c073a44f70cf8a251a9fb5f82237e96db4bf69..5ea024ec5e7297c18a733af244d65fd4d0d1ce24 100644 (file)
@@ -147,8 +147,16 @@ function diabook_form(&$a, $font_size, $line_height, $resolution, $color, $TSear
 
 
 
-       $t = file_get_contents( dirname(__file__). "/theme_settings.tpl" );
-       $o .= replace_macros($t, array(
+//     $t = file_get_contents( dirname(__file__). "/theme_settings.tpl" );
+       $t = get_markup_template("theme_settings.tpl" );
+
+       $includes = array(
+               '$field_select' => 'field_select.tpl',
+               '$field_input' => 'field_input.tpl',
+       );
+       $includes = set_template_includes($a->theme['template_engine'], $includes);
+
+       $o .= replace_macros($t, $includes + array(
                '$submit' => t('Submit'),
                '$baseurl' => $a->get_baseurl(),
                '$title' => t("Theme settings"),