The Hubzilla
 All Classes Namespaces Files Functions Variables Pages
Zotlabs\Render\Theme Class Reference

Public Member Functions

 debug ()
 

Static Public Member Functions

static current ()
 Figure out the best matching theme and return it. More...
 
static url ($installing=false)
 Return full URL to theme which is currently in effect. More...
 

Static Public Attributes

static $system_theme = null
 
static $system_mobile_theme = null
 
static $session_theme = null
 
static $session_mobile_theme = null
 
static $base_themes = array('redbasic')
 Array with base or fallback themes. More...
 

Member Function Documentation

static Zotlabs\Render\Theme::current ( )
static

Figure out the best matching theme and return it.

The theme will depend on channel settings, mobile, session, core compatibility, etc.

Returns
array

Referenced by Zotlabs\Render\SmartyInterface\__construct(), construct_page(), Zotlabs\Web\Router\Dispatch(), and theme_include().

Zotlabs\Render\Theme::debug ( )
static Zotlabs\Render\Theme::url (   $installing = false)
static

Return full URL to theme which is currently in effect.

Provide a sane default if nothing is chosen or the specified theme does not exist.

Parameters
bool$installing(optional) default false, if true return the name of the first base theme
Returns
string

Member Data Documentation

Zotlabs\Render\Theme::$base_themes = array('redbasic')
static

Array with base or fallback themes.

Zotlabs\Render\Theme::$session_mobile_theme = null
static
Zotlabs\Render\Theme::$session_theme = null
static
Zotlabs\Render\Theme::$system_mobile_theme = null
static
Zotlabs\Render\Theme::$system_theme = null
static

The documentation for this class was generated from the following file: