fePreview || $controller->doWorkspacePreview() || ($controller->config['config']['disablePreviewNotification'] ?? false)) { return; } if ($controller->config['config']['message_preview']) { $message = $controller->config['config']['message_preview']; } else { $label = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_tsfe.xlf:preview'); $styles = []; $styles[] = 'position: fixed'; $styles[] = 'top: 15px'; $styles[] = 'right: 15px'; $styles[] = 'padding: 8px 18px'; $styles[] = 'background: #fff3cd'; $styles[] = 'border: 1px solid #ffeeba'; $styles[] = 'font-family: sans-serif'; $styles[] = 'font-size: 14px'; $styles[] = 'font-weight: bold'; $styles[] = 'color: #856404'; $styles[] = 'z-index: 20000'; $styles[] = 'user-select: none'; $styles[] = 'pointer-events: none'; $styles[] = 'text-align: center'; $styles[] = 'border-radius: 2px'; $message = '
' . htmlspecialchars($label) . '
'; } if (!empty($message)) { $controller->content = str_ireplace('', $message . '', $controller->content); } } /** * @return LanguageService */ protected function getLanguageService() { return $GLOBALS['LANG']; } }