Class humhub\modules\ui\view\helpers\ThemeHelper

Inheritancehumhub\modules\ui\view\helpers\ThemeHelper
Subclasseshumhub\libs\ThemeHelper
Available since version1.3

ThemeHelper

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$_themes humhub\modules\ui\view\components\Theme[] Loaded themes humhub\modules\ui\view\helpers\ThemeHelper

Property Details

$_themes protected static property

Loaded themes

Method Details

getAllVariables() public static method

public static array getAllVariables ( humhub\modules\ui\view\components\Theme $theme )
$theme humhub\modules\ui\view\components\Theme
getThemeByName() public static method

Returns a Theme by given name

public static humhub\modules\ui\view\components\Theme getThemeByName ( $name )
$name string

Of the theme

getThemeByPath() public static method

Return a Theme instance by given path

public static humhub\modules\ui\view\components\Theme|null getThemeByPath ( $path, $options = [] )
$path
$options array

Additional options for Theme instance

getThemeParent() public static method

public static humhub\modules\ui\view\components\Theme|null getThemeParent ( humhub\modules\ui\view\components\Theme $theme )
$theme humhub\modules\ui\view\components\Theme
getThemeTree() public static method

Returns an array of all used themes

public static humhub\modules\ui\view\components\Theme[] getThemeTree ( humhub\modules\ui\view\components\Theme $theme, $includeBaseTheme true )
$theme humhub\modules\ui\view\components\Theme
$includeBaseTheme boolean

Should the given theme also included in the theme tree

return humhub\modules\ui\view\components\Theme[]

The parent themes

getThemes() public static method

Returns an array of all available themes.

public static humhub\modules\ui\view\components\Theme[] getThemes ( )
return humhub\modules\ui\view\components\Theme[]

The themes

getThemesByPath() public static method

Returns an array of Theme instances of a given directory

public static humhub\modules\ui\view\components\Theme[] getThemesByPath ( $path, $additionalOptions = [] )
$path string

The theme directory

$additionalOptions array

Options for Theme instance

isFluid() public static method

public static void isFluid ( humhub\modules\ui\view\components\Theme $theme null )
$theme