Returns the current
platform theme.

@return Theme
771053
public function getCurrentTheme()
    {
        $name = ucwords(str_replace('-', ' ', $this->config->getParameter('theme')));

        return $this->om->getRepository('ClarolineCoreBundle:Theme\Theme')
            ->findOneBy(['name' => $name]);
    }
114652
public function getTheme()
    {
        if($this->_theme === null)
            $this->_theme = new \erdiko\core\Theme($this->getThemeName(), null, $this->getThemeTemplate());

        return $this->_theme;
    }
789603
public function themeInConfigFile()
    {
        $blThemeSet = isset(\OxidEsales\Eshop\Core\Registry::getConfig()->sTheme);
        $blCustomThemeSet = isset(\OxidEsales\Eshop\Core\Registry::getConfig()->sCustomTheme);

        return ($blThemeSet || $blCustomThemeSet);
    }
228435
public function getCollectionThemeID()
    {
        if ($this->vObj->pThemeID < 1 && $this->cID != HOME_CID) {
            $c = static::getByID(HOME_CID);

            return $c->getCollectionThemeID();
        } else {
            return $this->vObj->pThemeID;
        }
    }
1105524
public function getPlatformInfo()
    {
        if (isset($this->queriesResultCache[ 'platformInfo' ])) {
            return $this->queriesResultCache[ 'platformInfo' ];
        }

        return $this->queriesResultCache[ 'platformInfo' ] = $this->platformGetPlatformInfoHandler();
    }
527482
protected function getTheme()
    {
        if ($this->theme == null) {
            $this->theme = new Theme($this->app['view'], $this->options['theme'], $this->options['custom']);
        }

        return $this->theme;
    }
346004
public function get()
    {
        if ($this->argument instanceof Argument && ! $this->argument->has('color')) {
            return $this->text;
        }

        $text = '';
        if ($this->foregroundColor !== '') {

            //~ Highlight
            $highlight = $this->hasHighlightedForeground ? static::HIGH_FOREGROUND : static::REGULAR_FOREGROUND;

            //~ Decoration
            $decoration = $this->isBold ? static::DECORATION_BOLD : '';
            $decoration .= $this->isUnderline ? static::DECORATION_UNDERLINE : '';
            $decoration = ! empty($decoration) ? $decoration : static::DECORATION_NONE;

            //~ Apply style
            $text .= self::BEGIN . $decoration . $highlight . $this->foregroundColor . self::END;
        }

        if ($this->backgroundColor !== '') {
            $highlight = $this->hasHighlightedBackground ? static::HIGH_BACKGROUND : static::REGULAR_BACKGROUND;
            $text .= self::BEGIN . $highlight . $this->backgroundColor . self::END;
        }

        $text .= $this->text . self::DESACTIVATE;

        return $text;
    }
84215
public function getAdminThemeService()
    {
        if (null === $this->adminActionService) {
            $this->adminActionService = $this->getServiceLocator()->get('playgrounddesign_theme_service');
        }

        return $this->adminActionService;
    }
610721
public function getStyle()
    {
        if ($this->style === null) {
            $this->style = new SymfonyStyle($this->input, $this->output);
        }

        return $this->style;
    }
359324
public static function getThemesForSelect()
    {
        if (!self::$_initialized) {
            self::init();
        }

        $results = [];
        foreach (self::$_themes as $theme) {
            $results[$theme->id()] = $theme->name();
        }

        return $results;
    }
406279
public function all()
	{
		$themes = array();
		foreach ($this->paths as $path)
		{
			$iterator = new \GlobIterator($path.'*');
			foreach($iterator as $theme)
			{
				$themes[] = $theme->getFilename();
			}
		}
		sort($themes);

		return $themes;
	}
280607
protected function getThemeIdFromThemeDetailsProviders()
    {
        $providers = $this->getThemeDetailsProviders();
        foreach ($providers as $provider) {
            if ($provider instanceof ThemeDetailsProviderInterface) {
                $themeId = $provider->getThemeId();
                if (!empty($themeId) && $themeId !== ' ') {
                    if ($this->hasTheme($themeId)) {
                        return $themeId;
                    }

                    \common_Logger::i(
                        'The requested theme ' . $themeId .
                        ' requested by the ' . get_class($provider) . ' provider does not exist!'
                    );
                }
            }
        }

        return '';
    }
865997
public function getConsoleColor()
    {
        if ($this->colorMode === Configuration::COLOR_MODE_AUTO) {
            return $this->getDefaultConsoleColor();
        } elseif ($this->colorMode === Configuration::COLOR_MODE_FORCED) {
            return $this->getForcedConsoleColor();
        } elseif ($this->colorMode === Configuration::COLOR_MODE_DISABLED) {
            return $this->getDisabledConsoleColor();
        }
    }
490667
public function getTheme()
    {
        $themeId = $this->getThemeIdFromThemeDetailsProviders();
        if (empty($themeId)) {
            $themeId = $this->getCurrentThemeId();
        }

        return $this->getThemeById($themeId);
    }
540781
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;
    }
1254612
protected function loadThemeConfig()
    {
        $xml = $this->getXml();

        foreach ($xml->xpath('./resources/themes/theme[@name != "" and @path != ""]') as $node) {
            $path = (string)$node['path'];
            $name = (string)$node['name'];

            $this->manifest['application_config']['rampage']['themes'][$name]['path'] = $this->getModulePath($path);

            if (isset($node['fallbacks'])) {
                $fallbacks = explode(',', (string)$node['fallbacks']);
                $fallbacks = array_filter(array_map('trim', $fallbacks));

                $this->manifest['application_config']['rampage']['themes'][$name]['fallbacks'] = $fallbacks;
            }
        }

        return $this;
    }
463330
public static function getLinkUrl()
    {
        $theme = self::getCurrentTheme();
        if (
            $theme instanceof ConfigurableTheme ||
            $theme instanceof ConfigurablePlatformTheme
        ) {
            $link = $theme->getLink();
            if (! empty($link)) {
                return $link;
            }
        }


        //move this into the standard template setData()
        switch (TAO_RELEASE_STATUS) {
            case 'alpha':
            case 'demoA':
            case 'beta':
            case 'demoB':
                $link = 'https://forum.taocloud.org/';
                break;
            default:
                $link = 'http://taotesting.com';
                break;
        }

        return $link;
    }