X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fthemes.md;h=d2e4c59be3edee9fbcaf1f3454815eecefe02868;hb=6bc865ff4d68170c83a675cfc75cdc025a192b15;hp=59f9570ddc162ff8ed37b28bbd8b29607b2f1894;hpb=29f7ebe307c22b275466390937b82ccb3820fb1c;p=friendica.git diff --git a/doc/themes.md b/doc/themes.md index 59f9570ddc..d2e4c59be3 100644 --- a/doc/themes.md +++ b/doc/themes.md @@ -167,6 +167,8 @@ The content of this file should be something like theme_info = array( 'extends' => 'duepuntozero'. @@ -179,13 +181,13 @@ Next take the default.php file found in the /view direcotry and exchange the asi So the central part of the file now looks like this: - - -
+ + +
- - + + Finally we need a style.css file, inheriting the definitions from the parent theme and containing out changes for the new theme. @@ -246,6 +248,12 @@ These three pieces of information should be listed. If the original author is no longer working on the theme, but a maintainer has taken over, the maintainer should be listed as well. The information from the theme header will be displayed in the admin panel. +The first thing in file is to import the `App` class from `\Friendica\` namespace. + + use Friendica\App; + +This will make our job a little easier, as we don't have to specify the full name every time we need to use the `App` class. + The next crucial part of the theme.php file is a definition of an init function. The name of the function is _init. So in the case of quattro it is