aboutsummaryrefslogtreecommitdiffstats
path: root/doc/DerivedTheme1.md
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-31 16:06:03 -0700
committerredmatrix <git@macgirvin.com>2016-03-31 16:06:03 -0700
commit9abd95fad3784a10fc48bc40f9b8a75d7d74edda (patch)
tree3cf2eec6a29f384b80a8c607aa97172b84e37e62 /doc/DerivedTheme1.md
parent256c228efd249f2ce93405db8e36f52030aa4876 (diff)
downloadvolse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.tar.gz
volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.tar.bz2
volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.zip
static App
Diffstat (limited to 'doc/DerivedTheme1.md')
-rw-r--r--doc/DerivedTheme1.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/DerivedTheme1.md b/doc/DerivedTheme1.md
index 3db86b6e7..b120c628c 100644
--- a/doc/DerivedTheme1.md
+++ b/doc/DerivedTheme1.md
@@ -38,7 +38,7 @@ Inside it, put the following information - edit as needed
function mytheme_init(&$a) {
- $a->theme_info['extends'] = 'redbasic';
+ App::$theme_info['extends'] = 'redbasic';
}
@@ -79,7 +79,7 @@ If you want to use the redbasic schemas for your derived theme, you have to do a
Do everything as above, but don't create view/theme/mytheme/php/style.php, but copy instead view/theme/redbasic/php/style.php to view/theme/mytheme/php/style.php. Modify that file and remove (or comment out) these two lines:
- if(local_channel() && $a->channel && $a->channel['channel_theme'] != 'redbasic')
+ if(local_channel() && App::$channel && App::$channel['channel_theme'] != 'redbasic')
set_pconfig(local_channel(), 'redbasic', 'schema', '---');
Also add this line at the bottom: