CSS_URL_REGEX
CSS_URL_REGEX
This class provides an interface to handling CSS stylesheets for Horde applications.
Copyright 2010-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
$_cssFiles : array
A list of additional stylesheet files to add to the output.
None found |
$_cssThemeFiles : array
A list of additional themed stylesheet files to add to the output.
None found |
addStylesheet(string $file, string $url)
Adds an external stylesheet to the output.
string | $file | The CSS filepath. |
string | $url | The CSS URL. |
None found |
addThemeStylesheet(string $file)
Adds a themed stylesheet to the output.
string | $file | The stylesheet name. |
None found |
getStylesheetUrls(array $opts = array()) : array
Generate the stylesheet URLs needed to display the current page.
Honors configuration choices as to stylesheet caching.
array | $opts | Additional options: - app: (string) The current application. - nobase: (boolean) If true, don't load base stylesheets. - nocache: (boolean) If true, don't load files from cache. - nohorde: (boolean) If true, don't load files from Horde. - sub: (string) A subdirectory containing additional CSS files to load as an overlay to the base CSS files. - subonly: (boolean) If true, only load the files in 'sub', not the default theme files. - theme: (string) Use this theme instead of the default. - themeonly: (boolean) If true, only load the theme files. |
The list of URLs to display (Horde_Url objects).
None found |
getStylesheets(mixed $theme = '', array $opts = array()) : array
Return the list of base stylesheets to display.
mixed | $theme | The theme to use; specify an empty value to retrieve the theme from user preferences, and false for no theme. |
array | $opts | Additional options: - app: (string) The current application. - nobase: (boolean) If true, don't load base stylesheets. - nohorde: (boolean) If true, don't load files from Horde. - sub: (string) A subdirectory containing additional CSS files to load as an overlay to the base CSS files. - subonly: (boolean) If true, only load the files in 'sub', not the default theme files. - themeonly: (boolean) If true, only load the theme files. |
An array of 2-element array arrays containing 2 keys:
- app: (string) App of the CSS file. - fs: (string) Filesystem location of stylesheet. - uri: (string) URI of stylesheet.
None found |