Skip to content
Docs

Class and function reference

Theme

List of public methods of the Zittme\Framework\Theme class. This document was automatically generated from the Zittme core source.

Source: common/framework/Theme.php

Public methods

  • static function getAppliedTheme(int $domain_srl = 0)
  • The theme currently applied to this site.
  • static function clearCache()
  • Clears the info cache. Call it after installing or deleting a theme.
  • static function getNames()
  • List of installed theme names.
  • static function getList()
  • List of installed theme info.
  • static function getInfo(string $name)
  • Info for a single theme.
  • static function getPath(string $name)
  • Theme folder path (with a trailing /).
  • static function isValidName(string $name)
  • Checks whether a value can be used as a theme name.
  • static function split($value)
  • Checks whether a stored value points to a theme component and splits it.
  • static function combine(string $theme, string $name)
  • Combines a theme name and a component name into a stored value.
  • static function getModulePath(string $theme, string $module_name)
  • Base lookup path for module skins inside a theme.
  • static function getWidgetPath(string $theme, string $widget_name)
  • Path of a widget inside a theme.
  • static function getLayoutPath(string $theme, string $layout_name, string $layout_type = 'P')
  • Path of a layout inside a theme.
  • static function resolveSkinPath(string $base_path, string $skin, string $dir = 'skins')
  • Converts a skin value into the actual template path.
  • static function toRelativePath(string $path)
  • Converts the location of a component into a relative path used inside the theme folder.
  • static function getModuleSkins(string $module_name, string $dir = 'skins')
  • List of skins for a given module across all themes.
  • static function getLayouts(string $layout_type = 'P')
  • List of layouts across all themes.