From bf401a5afaca8f96606b22e219bd595646ac9dab Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 2 Mar 2014 00:24:29 -0800 Subject: allow templates to have multiple styles - this would be a bit like having a schema for a template file. At first you'll think this is insane and overly complicated, you'll just have to wait and see what I'm up to. Then it will start to make sense. --- boot.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index d080b7774..1c7e5f147 100755 --- a/boot.php +++ b/boot.php @@ -1852,7 +1852,11 @@ function construct_page(&$a) { require_once('include/js_strings.php'); - head_add_css(((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.css'); + if(x($a->page,'template_style')) + head_add_css($a->page['template_style'] . '.css'); + else + head_add_css(((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.css'); + head_add_css('mod_' . $a->module . '.css'); head_add_css(current_theme_url($installing)); -- cgit v1.2.3