[ 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: 343 lines (11 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 1 file
 inc/init.php

Defines 10 functions

  css_out()
  css_applystyle()
  css_interwiki()
  css_filetypes()
  css_loadfile()
  css_datauri()
  css_pluginstyles()
  css_moveimports()
  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_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_datauri($match)   X-Ref
Converte local image URLs to data URLs if the filesize is small

Callback for preg_replace_callback

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

author: Andreas Gohr <andi@splitbrain.org>

css_moveimports($css)   X-Ref
Move all @import statements in a combined stylesheet to the top so they
aren't ignored by the browser.

author: Gabriel Birke <birke@d-scribe.de>

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: Wed May 23 03:00:10 2012 Cross-referenced by PHPXref 0.7
WikiForumIRCBugsGitXRefTranslate