프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_cacheid | string | The theme cache ID. | |
$_cssFiles | array | A list of additional stylesheet files to add to the output. | |
$_cssThemeFiles | array | A list of additional themed stylesheet files to add to the output. |
메소드 | 설명 | |
---|---|---|
addStylesheet ( string $file, string $url ) | Adds an external stylesheet to the output. | |
addThemeStylesheet ( string $file ) | Adds a themed stylesheet to the output. | |
getBaseStylesheetList ( ) : array | Returns the list of base stylesheets, based on the current language and browser settings. | |
getStylesheetUrls ( array $opts = [] ) : array | Generate the stylesheet URLs needed to display the current page. | |
getStylesheets ( mixed $theme = '', array $opts = [] ) : array | Return the list of base stylesheets to display. | |
loadCssFiles ( array $files ) : string | Loads CSS files, cleans up the input, and concatenates to a string. |
public addStylesheet ( string $file, string $url ) | ||
$file | string | The CSS filepath. |
$url | string | The CSS URL. |
public addThemeStylesheet ( string $file ) | ||
$file | string | The stylesheet name. |
public getBaseStylesheetList ( ) : array | ||
리턴 | array | A list of base CSS files to load. |
public getStylesheetUrls ( array $opts = [] ) : array | ||
$opts | array | 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. |
리턴 | array | The list of URLs to display (Horde_Url objects). |
public getStylesheets ( mixed $theme = '', array $opts = [] ) : array | ||
$theme | mixed | The theme to use; specify an empty value to retrieve the theme from user preferences, and false for no theme. |
$opts | array | 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. |
리턴 | array | 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. |
public loadCssFiles ( array $files ) : string | ||
$files | array | List of CSS files as returned from getStylesheets(). |
리턴 | string | CSS data. |
protected array $_cssFiles | ||
리턴 | array |
protected array $_cssThemeFiles | ||
리턴 | array |