src/View/Theme/ThemeManager.php
public static function theme($theme = null)
    {
        if (!self::$_initialized) {
            self::init();
        }

        if ($theme !== null) {
            if (!isset(self::$_themes[$theme])) {
                throw new Exception(__d('wasabi_cms', 'Theme "{0}" does not exist.', $theme));
            }
            self::$_theme = self::$_themes[$theme];
        }

        return self::$_theme;
    }
public static function theme($theme = null)
    {
        if (!self::$_initialized) {
            self::init();
        }

        if ($theme !== null) {
            if (!isset(self::$_themes[$theme])) {
                throw new Exception(__d('wasabi_cms', 'Theme "{0}" does not exist.', $theme));
            }
            self::$_theme = self::$_themes[$theme];
        }

        return self::$_theme;
    }
public static function theme ( $ theme = null ) { if ( ! self :: $ _initialized ) { self :: init ( ) ; } if ( $ theme !== null ) { if ( ! isset ( self :: $ _themes [ $ theme ] ) ) { throw new Exception ( __d ( 'wasabi_cms' , 'Theme "{0}" does not exist.' , $ theme ) ) ; } self :: $ _theme = self :: $ _themes [ $ theme ] ; } return self :: $ _theme ; }
Get or set the currently active theme.

@param string $theme the id of the theme
@return Theme
Get or set the currently active theme .