Метод | Описание | |
---|---|---|
__construct ( |
||
availableThemes ( boolean $force = false ) : array | Looks through the themes directory for valid themes. | |
clearThemeCache ( ) | Deprecated. | |
currentTheme ( ) : mixed | ||
desktopTheme ( ) : mixed | ||
disableTheme ( ) | ||
enableTheme ( $ThemeName, boolean $IsMobile = false ) : boolean | ||
enabledTheme ( ) : Gdn_Config | mixed | ||
enabledThemeInfo ( boolean $ReturnInSourceFormat = false ) : array | mixed | ||
findThemeFiles ( ) : array | Deprecated. | |
getMobilePreview ( ) : string | Returns the folder name (aka slug) of the previewed mobile theme, or an empty string if there is no previewed mobile theme. | |
getPreview ( ) : string | Returns the folder name (aka slug) of the previewed theme, or an empty string if there is no previewed theme. | |
getThemeInfo ( $ThemeName ) : mixed | ||
hasMobilePreview ( ) : boolean | Returns whether there's a mobile theme being previewed. | |
hasPreview ( ) : boolean | Returns whether there's a theme being previewed. | |
indexSearchPath ( $SearchPath, &$ThemeInfo, null $PathListing = null ) : boolean | string | ||
mobileTheme ( ) : mixed | ||
searchPaths ( ) | Deprecated. | |
start ( $Force = false ) | Sets up the theme framework | |
testTheme ( string $themeName ) : boolean | Test a theme for dependencies and parse errors. | |
themeFromType ( $Type ) : mixed |
Метод | Описание | |
---|---|---|
asset ( string $path, string $withDomain ) : string | Clear the dependencies on {@link asset()} for unit testing. | |
findThemeFilesOld ( string $themePath ) : array | false | Find the files associated with the theme. | |
scanThemeFileOld ( string $ThemeFile, string $VariableName = '' ) : null | array | Deprecated. | |
themeHook ( string $themeName, string $forAction, boolean $callback = false ) : void | Hooks to the various actions, i.e. enable, disable and load. |
public __construct ( |
||
$addonManager |
public availableThemes ( boolean $force = false ) : array | ||
$force | boolean | Deprecated. |
Результат | array | Returns the available themes in an array. |
public enableTheme ( $ThemeName, boolean $IsMobile = false ) : boolean | ||
$ThemeName | ||
$IsMobile | boolean | |
Результат | boolean |
public enabledTheme ( ) : Gdn_Config | mixed | ||
Результат | Gdn_Config | mixed |
public findThemeFiles ( ) : array | ||
Результат | array | Deprecated. |
public getMobilePreview ( ) : string | ||
Результат | string | The folder name of the previewed mobile theme or an empty string. |
public getPreview ( ) : string | ||
Результат | string | The folder name of the previewed mobile theme or an empty string. |
public getThemeInfo ( $ThemeName ) : mixed | ||
$ThemeName | ||
Результат | mixed |
public hasMobilePreview ( ) : boolean | ||
Результат | boolean | Whether there's a mobile theme being previewed. |
public hasPreview ( ) : boolean | ||
Результат | boolean | Whether there's a theme being previewed. |
public start ( $Force = false ) |