simplify by making Smarty include directives behave like Friendica native ones
This commit is contained in:
parent
6603758a5e
commit
11c06e21b7
73 changed files with 376 additions and 587 deletions
|
|
@ -75,15 +75,8 @@ function cleanzero_form(&$a, $color,$font_size,$resize,$theme_width){
|
|||
"wide"=>"wide",
|
||||
);
|
||||
|
||||
// $t = file_get_contents( dirname(__file__). "/theme_settings.tpl" );
|
||||
$t = get_markup_template("theme_settings.tpl" );
|
||||
|
||||
$includes = array(
|
||||
'$field_select' => 'field_select.tpl',
|
||||
);
|
||||
$includes = set_template_includes($a->theme['template_engine'], $includes);
|
||||
|
||||
$o .= replace_macros($t, $includes + array(
|
||||
$o .= replace_macros($t, array(
|
||||
'$submit' => t('Submit'),
|
||||
'$baseurl' => $a->get_baseurl(),
|
||||
'$title' => t("Theme settings"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue