diff options
author | mtbrains <mtbrains@comcast.net> | 2006-04-17 02:31:53 +0200 |
---|---|---|
committer | mtbrains <mtbrains@comcast.net> | 2006-04-17 02:31:53 +0200 |
commit | ea40e5ef11f1e1b18fa3b82f065b8918c4bc7edd (patch) | |
tree | bbc08e43e9080b17232e77199bc628c54bff1c98 /lib/exe/css.php | |
parent | 5f9846d0a9c83fe0debcf52fa9f6ad9aea4871fa (diff) | |
download | rpg-ea40e5ef11f1e1b18fa3b82f065b8918c4bc7edd.tar.gz rpg-ea40e5ef11f1e1b18fa3b82f065b8918c4bc7edd.tar.bz2 |
Allow styles sheets that apply to "all" media
darcs-hash:20060417003153-a90f0-4792fd7b946f62d3696b979f8debfa73587d353a.gz
Diffstat (limited to 'lib/exe/css.php')
-rw-r--r-- | lib/exe/css.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php index d0b9461eb..48b5e2804 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -47,6 +47,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($print){ // load plugin, template, user styles $files = array_merge($files, css_pluginstyles('print')); @@ -235,9 +236,11 @@ function css_pluginstyles($mode='screen'){ foreach ($plugins as $p){ if($mode == 'print'){ $list[DOKU_PLUGIN."$p/print.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; |