89 $this->contents .= $html;
98 $this->
addHTML( $this->parent->parse( $text ) );
105 $this->contents .= $html;
115 throw new MWException( __METHOD__ .
' called after sending headers' );
117 $this->redirectTarget = $url;
123 if ( !$this->redirectTarget ) {
134 $resourceLoader = MediaWikiServices::getInstance()->getResourceLoader();
145 'interface-message-box'
148 'mw-config/config.css',
151 $module->setConfig( $resourceLoader->getConfig() );
155 $module->readStyleFiles(
156 $module->getStyleFiles( $rlContext ),
160 return implode(
"\n", $styles );
184 if ( !$this->redirectTarget && strlen( $this->contents ) ) {
187 $this->contents =
'';
199 : MediaWikiServices::getInstance()->getLanguageFactory()->getLanguage(
'en' );
223 $this->parent->request->response()->header(
'Content-Type: text/html; charset=utf-8' );
226 $this->parent->request->response()->header(
'X-Frame-Options: DENY' );
229 if ( $this->redirectTarget ) {
230 $this->parent->request->response()->header(
'Location: ' . $this->redirectTarget );
245 <meta name=
"robots" content=
"noindex, nofollow" />
246 <meta http-equiv=
"Content-type" content=
"text/html; charset=utf-8" />
254 <div
id=
"mw-page-base"></div>
255 <div
id=
"mw-head-base"></div>
256 <div
id=
"content" class=
"mw-body" role=
"main">
257 <div
id=
"bodyContent" class=
"mw-body-content">
274 <div
class=
"portal" id=
"p-logo">
275 <a href=
"https://www.mediawiki.org/" title=
"Main Page"></a>
278 $message =
wfMessage(
'config-sidebar' )->plain();
281 foreach ( explode(
'----', $message ) as $section ) {
282 echo
'<div class="portal"><div class="body">';
283 echo $this->parent->parse( $section,
true );
287 echo
'<div class="portal"><div class="body"><ul>';
289 'config-sidebar-relnotes' =>
'ReleaseNotes',
290 'config-sidebar-license' =>
'Copying',
291 'config-sidebar-upgrade' =>
'UpgradeDoc',
292 ] as $msgKey => $pageName ) {
293 echo $this->parent->makeLinkItem(
294 $this->parent->getDocUrl( $pageName ),
298 echo
'</ul></div></div>';
311 <meta name=
"robots" content=
"noindex, nofollow" />
312 <meta http-equiv=
"Content-type" content=
"text/html; charset=utf-8" />
319 <body style=
"background-image: none">
const MW_VERSION
The running version of MediaWiki.
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
if(!defined( 'MW_NO_SESSION') &&! $wgCommandLineMode) $wgLang
WebRequest clone which takes values from a provided array.
static linkedScript( $url, $nonce=null)
Output a "<script>" tag linking to the given URL, e.g., "<script src=foo.js></script>".
static linkedStyle( $url, $media='all')
Output a "<link rel=stylesheet>" linking to the given URL for the given media type (if any).
static htmlHeader(array $attribs=[])
Constructs the opening html-tag with necessary doctypes depending on global variables.
static openElement( $element, $attribs=[])
Identical to rawElement(), but has no third parameter and omits the end tag (and the self-closing '/'...
static closeElement( $element)
Returns "</$element>".
Context object that contains information about the state of a specific ResourceLoader web request.
Module for skin stylesheets.
static makeCombinedStyles(array $stylePairs)
Combines an associative array mapping media type to CSS into a single stylesheet with "@media" blocks...
Output class modelled on OutputPage.
addWikiTextAsInterface( $text)
bool $useShortHeader
Whether to use the limited header (used during CC license callbacks)
__construct(WebInstaller $parent)
string $contents
Buffered contents that haven't been output yet.
getCssUrl()
"<link>" to index.php?css=1 for the "<head>"
useShortHeader( $use=true)
getCSS()
Get the stylesheet of the MediaWiki skin.
bool $allowFrames
Does the current page need to allow being used as a frame? If not, X-Frame-Options will be output to ...
WebInstaller $parent
The WebInstaller object this WebInstallerOutput is used by.
bool $headerDone
Has the header (or short header) been output?
headerDone()
Get whether the header has been output.
allowFrames( $allow=true)
Class for the core installer web interface.