X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fthemes.md;h=786f3d5afe579d784b684becd534545369fb4b25;hb=4329f5381b73a90ba1b3649f7fa8f1576ed0e749;hp=b7bb2e226208113c4b290507599ee3ccca855a2f;hpb=a9af0ca26e55b748fb22c9a41be867217c634fad;p=friendica.git diff --git a/doc/themes.md b/doc/themes.md index b7bb2e2262..786f3d5afe 100644 --- a/doc/themes.md +++ b/doc/themes.md @@ -170,9 +170,8 @@ The content of this file should be something like use Friendica\App; function duepuntozero_lr_init(App $a) { - $a-> theme_info = array( - 'extends' => 'duepuntozero'. - ); + $a->setThemeInfoValue('extends', 'duepuntozero'); + $a->set_template_engine('smarty3'); /* and more stuff e.g. the JavaScript function for the header */ } @@ -272,9 +271,7 @@ If you like to use another templating engine, please implement it. When you want to inherit stuff from another theme you have to *announce* this in the theme_info: - $a->theme_info = array( - 'extends' => 'duepuntozero', - ); + $a->setThemeInfoValue('extends', 'duepuntozero'); which declares *duepuntozero* as parent of the theme.