diff options
author | friendica <info@friendica.com> | 2012-08-22 19:51:08 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-22 19:51:08 -0700 |
commit | a9dabd8eb918436b57d9263ad3d635774455f28f (patch) | |
tree | 9f6a3c9fc4eaf3b48f4f953dcff8f09bac66f2c4 | |
parent | 136380fedec2037f004d6db2ff5384228797b3ee (diff) | |
download | volse-hubzilla-a9dabd8eb918436b57d9263ad3d635774455f28f.tar.gz volse-hubzilla-a9dabd8eb918436b57d9263ad3d635774455f28f.tar.bz2 volse-hubzilla-a9dabd8eb918436b57d9263ad3d635774455f28f.zip |
per module code file for themes
-rw-r--r-- | index.php | 4 | ||||
-rw-r--r-- | mod/zregister.php | 1 | ||||
-rw-r--r-- | view/php/mod_zregister.php | 3 |
3 files changed, 7 insertions, 1 deletions
@@ -324,6 +324,10 @@ if($a->module != 'install') { require_once(theme_include('theme_init.php')); + +if(($p = theme_include('mod_' . $a->module . '.php')) != '') + require_once($p); + require_once('include/js_strings.php'); head_add_css(((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.css'); diff --git a/mod/zregister.php b/mod/zregister.php index e8fdafae2..a9a622213 100644 --- a/mod/zregister.php +++ b/mod/zregister.php @@ -3,7 +3,6 @@ require_once('include/account.php'); function zregister_init(&$a) { - $a->page['template'] = 'full'; $result = null; $cmd = ((argc() > 1) ? argv(1) : ''); diff --git a/view/php/mod_zregister.php b/view/php/mod_zregister.php new file mode 100644 index 000000000..e7709cbd8 --- /dev/null +++ b/view/php/mod_zregister.php @@ -0,0 +1,3 @@ +<?php + +$a->page['template'] = 'full'; |