[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/exe/ -> css.php (summary)

DokuWiki StyleSheet creator

Author: Andreas Gohr
License: GPL 2 (http://www.gnu.org/licenses/gpl.html)
File Size: 313 lines (10 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 4 files
 inc/pageutils.php
 inc/init.php
 inc/confutils.php
 inc/io.php

Defines 9 functions

  css_out()
  css_cacheok()
  css_applystyle()
  css_interwiki()
  css_filetypes()
  css_loadfile()
  css_pluginstyles()
  css_compress()
  css_comment_cb()

Functions
Functions that are not part of a class:

css_out()   X-Ref
Output all needed Styles

author: Andreas Gohr <andi@splitbrain.org>

css_cacheok($cache,$files,$tplinc)   X-Ref
Checks if a CSS Cache file still is valid

author: Andreas Gohr <andi@splitbrain.org>

css_applystyle($css,$tplinc)   X-Ref
Does placeholder replacements in the style according to
the ones defined in a templates style.ini file

author: Andreas Gohr <andi@splitbrain.org>

css_interwiki()   X-Ref
Prints classes for interwikilinks

Interwiki links have two classes: 'interwiki' and 'iw_$name>' where
$name is the identifier given in the config. All Interwiki links get
an default style with a default icon. If a special icon is available
for an interwiki URL it is set in it's own class. Both classes can be
overwritten in the template or userstyles.

author: Andreas Gohr <andi@splitbrain.org>

css_filetypes()   X-Ref
Prints classes for file download links

author: Andreas Gohr <andi@splitbrain.org>

css_loadfile($file,$location='')   X-Ref
Loads a given file and fixes relative URLs with the
given location prefix


css_pluginstyles($mode='screen')   X-Ref
Returns a list of possible Plugin Styles (no existance check here)

author: Andreas Gohr <andi@splitbrain.org>

css_compress($css)   X-Ref
Very simple CSS optimizer

author: Andreas Gohr <andi@splitbrain.org>

css_comment_cb($matches)   X-Ref
Callback for css_compress()

Keeps short comments (< 5 chars) to maintain typical browser hacks

author: Andreas Gohr <andi@splitbrain.org>



Generated: Tue Dec 2 01:30:01 2008 Cross-referenced by PHPXref 0.7