README.md
1# ZerolineCSS Plugin for DokuWiki
2
3Inlines CSS into the page
4
5All documentation for this plugin can be found at
6https://www.dokuwiki.org/plugin:zerolinecss
7
8If you install this plugin manually, make sure it is installed in
9lib/plugins/inlinedcss/ - if the folder is called different it
10will not work!
11
12Please refer to http://www.dokuwiki.org/plugins for additional info
13on how to install plugins in DokuWiki.
14
15
16## Usage
17
18**Requires the metaheaders - plugin!**
19
20In your template place the following script before the `tpl_metaheaders()` call:
21
22 <?php
23 global $headers, $clear, $updateVersion;
24
25 $headers['link'][] = array(
26 'rel' => 'zerolinecss',
27 'type' => 'text/css',
28 'href' => '/lib/exe/css.php?t=' . $conf['template'] . '&tseed=' . md5($updateVersion)
29 );
30
31 $clear[] = array ( 'rel' => 'stylesheet');
32 $clear[] = array ( 'type' => 'text/javascript');
33 $clear[] = array ( 'name' => 'generator');
34 $clear[] = array ( 'name' => 'date');
35 tpl_metaheaders();
36 ?>
37
38----
39Copyright (C) i-net software / Gerry Weißbach <tools@inetsoftware.de>
40
41This program is free software; you can redistribute it and/or modify
42it under the terms of the GNU General Public License as published by
43the Free Software Foundation; version 2 of the License
44
45This program is distributed in the hope that it will be useful,
46but WITHOUT ANY WARRANTY; without even the implied warranty of
47MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48GNU General Public License for more details.
49
50See the COPYING file in your DokuWiki folder for details
51