Themes
class Themes
Constants
DEFAULT_THEME |
The "default" theme adapts based on the latest recommendation from civicrm.org by switching to DEFAULT_THEME at runtime. |
FALLBACK_THEME |
Fallback is a pseudotheme which can be included in "search_order". It locates files in the core/extension (non-theme) codebase. |
PASSTHRU |
|
Methods
Determine the name of active theme.
Get the definition of the theme.
Get a list of all known themes, including hidden base themes.
Get a list of available themes, excluding hidden base themes.
Get the URL(s) for a themed CSS file.
Construct the list of available themes.
Apply defaults for a given them.
No description
Details
at line 74
__construct(CRM_Utils_Cache_Interface $cache = NULL)
Theme constructor.
at line 84
string
getActiveThemeKey()
Determine the name of active theme.
at line 114
array|NULL
get(string $themeKey)
Get the definition of the theme.
at line 127
array
getAll()
Get a list of all known themes, including hidden base themes.
at line 151
array
getAvailable()
Get a list of available themes, excluding hidden base themes.
This is the same as getAll(), but abstract themes like "fallback" or "newyork_base" are omitted.
at line 180
array
resolveUrls(string $active, string $cssExt, string $cssFile)
Get the URL(s) for a themed CSS file.
This implements a prioritized search, in order: - Check for the specified theme. - If that doesn't exist, check for the default theme. - If that doesn't exist, use the 'none' theme.
at line 212
protected array
buildAll()
Construct the list of available themes.
at line 263
protected array
build(string $themeKey, array $theme)
Apply defaults for a given them.