X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fthemes.md;h=6193fa2d22c04919f5075d50750f5390ae8ca25e;hb=b6e93c83fc9a093c3c87c91440a1f8c65f3e0b3b;hp=d0d74a92c6b6e2c4b32a37952ecf18c7e75ed989;hpb=f937dabc9eedd4e86efce31f3552114bbfd068b1;p=friendica.git diff --git a/doc/themes.md b/doc/themes.md index d0d74a92c6..6193fa2d22 100644 --- a/doc/themes.md +++ b/doc/themes.md @@ -142,7 +142,7 @@ There you'll find somethink alike $colorset = Config::get('duepuntozero', 'colorset'); if ($colorset) { if ($colorset == 'greenzero') - $a->page['htmlhead'] .= ''."\n"; + DI::page()['htmlhead'] .= ''."\n"; /* some more variants */ } @@ -181,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. @@ -281,7 +281,7 @@ which declares *duepuntozero* as parent of the theme. If you want to add something to the HTML header of the theme, one way to do so is by adding it to the theme.php file. To do so, add something alike - $a->page['htmlhead'] .= <<< EOT + DI::page()['htmlhead'] .= <<< EOT /* stuff you want to add to the header */ EOT;