X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fthemes.md;h=7abd787e6cd31f3de867d291fa2b57dc5645a6aa;hb=4829c240e9fde18fa1c61113adac716f970e66da;hp=b7bb2e226208113c4b290507599ee3ccca855a2f;hpb=06a18abf5a746232c99b5271d907687b30e72651;p=friendica.git diff --git a/doc/themes.md b/doc/themes.md index b7bb2e2262..7abd787e6c 100644 --- a/doc/themes.md +++ b/doc/themes.md @@ -4,7 +4,7 @@ To change the look of friendica you have to touch the themes. The current default theme is [Vier](https://github.com/friendica/friendica/tree/stable/view/theme/vier) but there are numerous others. -Have a look at [friendica-themes.com](http://friendica-themes.com) for an overview of the existing themes. +Have a look at [github.com/bkil/friendica-themes](https://github.com/bkil/friendica-themes) for an overview of the existing themes. In case none of them suits your needs, there are several ways to change a theme. So, how to work on the UI of friendica. @@ -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.