aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-22 19:51:08 -0700
committerfriendica <info@friendica.com>2012-08-22 19:51:08 -0700
commita9dabd8eb918436b57d9263ad3d635774455f28f (patch)
tree9f6a3c9fc4eaf3b48f4f953dcff8f09bac66f2c4
parent136380fedec2037f004d6db2ff5384228797b3ee (diff)
downloadvolse-hubzilla-a9dabd8eb918436b57d9263ad3d635774455f28f.tar.gz
volse-hubzilla-a9dabd8eb918436b57d9263ad3d635774455f28f.tar.bz2
volse-hubzilla-a9dabd8eb918436b57d9263ad3d635774455f28f.zip
per module code file for themes
-rw-r--r--index.php4
-rw-r--r--mod/zregister.php1
-rw-r--r--view/php/mod_zregister.php3
3 files changed, 7 insertions, 1 deletions
diff --git a/index.php b/index.php
index 15458e631..84fa1593a 100644
--- a/index.php
+++ b/index.php
@@ -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';