/** * Returns the id of the current active theme or theme in preview * * @return string The id of the current active theme or theme in preview */ public function getID() { if (!isset(self::$cache['id'])) { $cookies = Cookies::getList(Cookies::TYPE_SERVER); self::$cache['id'] = isset($cookies['tmpr']) ? $cookies['tmpr'] : InternalData\Themes::getActiveThemeID(); } return self::$cache['id']; }