[ Index ]

PHP Cross Reference of DokuWiki




/inc/ -> StyleUtils.php (summary)

(no description)

File Size: 194 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

StyleUtils:: (5 methods):

Class: StyleUtils  - X-Ref

Class StyleUtils

Reads and applies the template's style.ini settings
__construct($tpl = '', $preview = false, $reinit = false)   X-Ref
StyleUtils constructor.

param: string $tpl template name: if not passed as argument, the default value from $conf will be used
param: bool $preview
param: bool $reinit whether static style conf should be reinitialized

cssStyleini()   X-Ref
Load style ini contents

Loads and merges style.ini files from template and config and prepares
the stylesheet modes

author: Andreas Gohr <andi@splitbrain.org>
author: Anna Dabrowska <info@cosmocode.de>
return: array with keys 'stylesheets' and 'replacements'

getValidatedStyles($stylesheets, $file, $mode, $incbase, $webbase)   X-Ref
Checks if configured style files exist and, if necessary, adjusts file extensions in config

param: array $stylesheets
param: string $file
param: string $mode
param: string $incbase
param: string $webbase
return: mixed

getWebbase($config_group)   X-Ref
Returns the web base path for the given level/group in config cascade.
Style resources are relative to the template directory for the main (default) styles
but relative to DOKU_BASE for everything else"

param: string $config_group
return: string

cssFixreplacementurls($replacements, $location)   X-Ref
Amend paths used in replacement relative urls, refer FS#2879

author: Chris Smith <chris@jalakai.co.uk>
param: array $replacements with key-value pairs
param: string $location
return: array