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 );
169 return Html::linkedStyle( $this->parent->getUrl( [
'css' => 1 ] ) );
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" />
250 <?php echo Html::linkedScript(
'config.js' ) .
"\n"; ?>
253<?php echo Html::openElement(
'body', [
'class' => $this->
getLanguage()->getDir() ] ) .
"\n"; ?>
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">
265 echo Html::closeElement(
'body' ) . Html::closeElement(
'html' );
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>';
303 echo Html::closeElement(
'body' ) . Html::closeElement(
'html' );
311 <meta name=
"robots" content=
"noindex, nofollow" />
312 <meta http-equiv=
"Content-type" content=
"text/html; charset=utf-8" />
316 <?php echo Html::linkedScript(
'config.js' ) .
"\n"; ?>
319<body style=
"background-image: none">
331 return Html::linkedScript(
"../resources/lib/jquery/jquery.js" );
const MW_VERSION
The running version of MediaWiki.
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
WebRequest clone which takes values from a provided array.
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.