aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-21 23:17:45 -0700
committerfriendica <info@friendica.com>2012-07-21 23:17:45 -0700
commit6d74c2c594fd00c32f38f5ad8d7dd66e9e58b077 (patch)
tree9e95853349b8d0e505afab450f5b8bf458bf56ce /index.php
parentc1fe66bec5fb2fe3ce3be2985036c0c8b006d7fd (diff)
downloadvolse-hubzilla-6d74c2c594fd00c32f38f5ad8d7dd66e9e58b077.tar.gz
volse-hubzilla-6d74c2c594fd00c32f38f5ad8d7dd66e9e58b077.tar.bz2
volse-hubzilla-6d74c2c594fd00c32f38f5ad8d7dd66e9e58b077.zip
page templating and css management
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/index.php b/index.php
index 858795201..7c0a26f7b 100644
--- a/index.php
+++ b/index.php
@@ -358,15 +358,17 @@ if($a->module != 'install') {
$page_css = 'view/theme/' . current_theme() . '/'
- . ((x($a->page,'layout')) ? $a->page['layout'] : 'layout' ) . '.css';
+ . ((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.css';
if(! file_exists($page_css))
$page_css = str_replace('theme/' . current_theme() . '/', '', $page_css);
$module_css = 'view/theme/' . current_theme() . '/mod_' . $a->module . '.css';
+
if(! file_exists($module_css))
$module_css = str_replace('theme/' . current_theme() . '/', '', $module_css);
-if(! file_exists($module_css))
+
+if(! file_exists($module_css))
$module_css = null;
$interval = ((local_user()) ? get_pconfig(local_user(),'system','update_interval') : 40000);
@@ -386,7 +388,7 @@ if(! file_exists($module_css))
'$showfewer' => t('show fewer'),
'$update_interval' => $interval,
'$page_css' => $a->get_baseurl() . '/' . $page_css,
- '$module_css' => $a->get_baseurl() . '/' . $module_css,
+ '$module_css' => (($module_css) ? $a->get_baseurl() . '/' . $module_css : null),
'$stylesheet' => current_theme_url(),
'$theme' => current_theme()
));