From ea40e5ef11f1e1b18fa3b82f065b8918c4bc7edd Mon Sep 17 00:00:00 2001
From: mtbrains <mtbrains@comcast.net>
Date: Mon, 17 Apr 2006 02:31:53 +0200
Subject: [PATCH] Allow styles sheets that apply to "all" media

darcs-hash:20060417003153-a90f0-4792fd7b946f62d3696b979f8debfa73587d353a.gz
---
 lib/exe/css.php | 3 +++
 1 file changed, 3 insertions(+)

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;
-- 
GitLab