//TYPO3 4.5 //typo3/sysext/cms/tslib/class.tslib_fe.php function previewInfo() { $content = ''; if ($this->fePreview && (!isset($this->config['config']['disablePreviewNotification']) || intval($this->config['config']['disablePreviewNotification']) !== 1)) { if ($this->fePreview === 2) { $onclickForStoppingPreview = 'document.location="' . t3lib_div::getIndpEnv('TYPO3_SITE_URL') . 'index.php?ADMCMD_prev=LOGOUT&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')) . '";return false;'; $text = 'Preview of workspace "' . $this->whichWorkspace(TRUE) . '" (' . $this->whichWorkspace() . ')'; $html = $this->doWorkspacePreview() ? '
' : ''; } else { $text = 'PREVIEW!'; $html = ''; } $stdMsg = '
' . htmlspecialchars($text) . $html . '
'; if ($this->fePreview === 2) { $content = $this->config['config']['message_preview_workspace'] ? @sprintf($this->config['config']['message_preview_workspace'], $this->whichWorkspace(TRUE),$this->whichWorkspace()) : $stdMsg; } else { $content = $this->config['config']['message_preview'] ? $this->config['config']['message_preview'] : $stdMsg; } } return $content; }