getLaunchData(); if ($launchData->hasVariable(static::LTI_CUSTOM_THEME_VARIABLE)) { return $launchData->getVariable(static::LTI_CUSTOM_THEME_VARIABLE); } } return ''; } /** * Tells if the page has to be headless: without header and footer. * * @return bool|mixed * @throws \common_exception_Error * @throws \oat\taoLti\models\classes\LtiVariableMissingException */ public function isHeadless() { $currentSession = \common_session_SessionManager::getSession(); if ($currentSession instanceof TaoLtiSession) { $launchData = $currentSession->getLaunchData(); $presentationTarget = $launchData->hasVariable(static::LTI_PRESENTATION_TARGET) ? $launchData->getVariable(self::LTI_PRESENTATION_TARGET) : ''; return $presentationTarget == 'frame' || $presentationTarget == 'iframe'; } return true; } }