From 7aaa4c4643ed8f22cd32ce1018e56fc58b46ea89 Mon Sep 17 00:00:00 2001 From: "martin.tschofen" Date: Sun, 11 Feb 2007 03:41:10 +0100 Subject: all style sheet addition darcs-hash:20070211024110-7f317-c094764db4d4c9b7e1cad01fc016f354d91aa39e.gz --- lib/exe/css.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/exe/css.php') diff --git a/lib/exe/css.php b/lib/exe/css.php index c73093d56..c1e2744eb 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -31,6 +31,7 @@ function css_out(){ global $conf; global $lang; switch ($_REQUEST['s']) { + case 'all': case 'print': case 'feed': $style = $_REQUEST['s']; @@ -55,7 +56,7 @@ function css_out(){ // Array of needed files and their web locations, the latter ones // are needed to fix relative paths in the stylesheets $files = array(); - if (isset($tplstyles['all'])) $files = array_merge($files, $tplstyles['all']); + //if (isset($tplstyles['all'])) $files = array_merge($files, $tplstyles['all']); if(!empty($style)){ $files[DOKU_INC.'lib/styles/'.$style.'.css'] = DOKU_BASE.'lib/styles/'; // load plugin, template, user styles @@ -247,16 +248,15 @@ function css_pluginstyles($mode='screen'){ $list = array(); $plugins = plugin_list(); foreach ($plugins as $p){ - if($mode == 'print'){ - $list[DOKU_PLUGIN."$p/print.css"] = DOKU_BASE."lib/plugins/$p/"; + if($mode == 'all'){ $list[DOKU_PLUGIN."$p/all.css"] = DOKU_BASE."lib/plugins/$p/"; + }elseif($mode == 'print'){ + $list[DOKU_PLUGIN."$p/print.css"] = DOKU_BASE."lib/plugins/$p/"; }elseif($mode == 'feed'){ $list[DOKU_PLUGIN."$p/feed.css"] = DOKU_BASE."lib/plugins/$p/"; - $list[DOKU_PLUGIN."$p/all.css"] = DOKU_BASE."lib/plugins/$p/"; }else{ $list[DOKU_PLUGIN."$p/style.css"] = DOKU_BASE."lib/plugins/$p/"; $list[DOKU_PLUGIN."$p/screen.css"] = DOKU_BASE."lib/plugins/$p/"; - $list[DOKU_PLUGIN."$p/all.css"] = DOKU_BASE."lib/plugins/$p/"; } } return $list; -- cgit v1.2.3