public function getThemeEnabled()
    {
        $plugins = $this->getLoadedPlugins();

        $theme = false;
        foreach ($plugins as $plugin) {
            /* @var $plugin Plugin */
            if ($plugin->isTheme()
                && $this->isPluginActivated($plugin->getPluginName())
            ) {
                if ($plugin->getPluginName() != self::DEFAULT_THEME) {
                    return $plugin; // enabled theme (not default)
                }
                $theme = $plugin; // default theme
            }
        }
        return $theme;
    }
public function getThemeEnabled()
    {
        $plugins = $this->getLoadedPlugins();

        $theme = false;
        foreach ($plugins as $plugin) {
            /* @var $plugin Plugin */
            if ($plugin->isTheme()
                && $this->isPluginActivated($plugin->getPluginName())
            ) {
                if ($plugin->getPluginName() != self::DEFAULT_THEME) {
                    return $plugin; // enabled theme (not default)
                }
                $theme = $plugin; // default theme
            }
        }
        return $theme;
    }
public function getThemeEnabled ( ) { $ plugins = $ this -> getLoadedPlugins ( ) ; $ theme = false ; foreach ( $ plugins as $ plugin ) { /* @var $plugin Plugin */ if ( $ plugin -> isTheme ( ) && $ this -> isPluginActivated ( $ plugin -> getPluginName ( ) ) ) { if ( $ plugin -> getPluginName ( ) != self :: DEFAULT_THEME ) { return $ plugin ; // enabled theme (not default) } $ theme = $ plugin ; // default theme } } return $ theme ; }
Returns the currently enabled theme.

If no theme is enabled, the **Morpheus** plugin is returned (this is the base and default theme).

@return Plugin
@api
Returns the currently enabled theme .