Go to the documentation of this file.
94 $this->
addHTML( $this->parent->parse( $text ) );
111 throw new MWException( __METHOD__ .
' called after sending headers' );
113 $this->redirectTarget = $url;
116 public function output() {
135 $moduleNames =
array(
136 'mediawiki.legacy.shared',
137 'mediawiki.skinning.interface',
138 'skins.vector.styles',
139 'mediawiki.legacy.config',
146 foreach ( $moduleNames
as $moduleName ) {
149 $cssFileNames = $module->getAllStyleFiles();
152 foreach ( $cssFileNames
as $cssFileName ) {
153 if ( !file_exists( $cssFileName ) ) {
158 if ( !is_readable( $cssFileName ) ) {
160 "Please check file permissions." );
166 if ( preg_match(
'/\.less$/', $cssFileName ) ) {
169 $cssFileContents = $compiler->compileFile( $cssFileName );
172 $cssFileContents = file_get_contents( $cssFileName );
175 if ( $cssFileContents ) {
178 $cssDirName = dirname( $cssFileName );
192 }
catch ( Exception
$e ) {
203 if (
$dir ==
'rtl' ) {
227 public function flush() {
231 if ( !$this->redirectTarget && strlen( $this->
contents ) ) {
234 $this->contents =
'';
241 public function getDir() {
277 $this->parent->request->response()->header(
'Content-Type: text/html; charset=utf-8' );
280 $this->parent->request->response()->header(
'X-Frame-Options: DENY' );
283 if ( $this->redirectTarget ) {
284 $this->parent->request->response()->header(
'Location: ' . $this->redirectTarget );
298 <meta http-equiv=
"Content-type" content=
"text/html; charset=utf-8" />
306 <div
id=
"mw-page-base"></div>
307 <div
id=
"mw-head-base"></div>
309 <div
id=
"bodyContent">
326 <div
class=
"portal" id=
"p-logo">
327 <a style=
"background-image: url(../skins/common/images/mediawiki.png);"
328 href=
"https://www.mediawiki.org/"
329 title=
"Main Page"></a>
331 <div
class=
"portal"><div
class=
"body">
333 echo $this->parent->parse(
wfMessage(
'config-sidebar' )->plain(),
true );
346 <meta http-equiv=
"Content-type" content=
"text/html; charset=utf-8" />
354 <body style=
"background-image: none">
360 echo
wfMessage(
'config-title', $wgVersion )->escaped();
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
static htmlHeader( $attribs=array())
Constructs the opening html-tag with necessary doctypes depending on global variables.
per default it will return the text for text based content
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses & $html
bool $useShortHeader
Whether to use the limited header (used during CC license callbacks)
bool $headerDone
Has the header (or short header) been output?
static formatException( $e)
Handle exception display.
static remap( $source, $local, $remote, $embedData=true)
Remaps CSS URL paths and automatically embeds data URIs for CSS rules or url() values preceded by an ...
getCssUrl()
"<link>" to index.php?css=foobar for the "<head>"
Class for the core installer web interface.
Some information about database access in MediaWiki By Tim January Database layout For information about the MediaWiki database such as a description of the tables and their contents
wfSuppressWarnings( $end=false)
Reference-counted warning suppression.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled also a ContextSource error or success such as when responding to a resource loader request or generating HTML output & $resourceLoader
__construct(WebInstaller $parent)
Output class modelled on OutputPage.
static closeElement( $element)
Returns "</$element>", except if $wgWellFormedXml is off, in which case it returns the empty string w...
to move a page</td >< td > &*You are moving the page across *A non empty talk page already exists under the new or *You uncheck the box below In those you will have to move or merge the page manually if desired</td >< td > be sure to &You are responsible for making sure that links continue to point where they are supposed to go Note that the page will &a page at the new title
headerDone()
Get whether the header has been output.
static openElement( $element, $attribs=array())
Identical to rawElement(), but has no third parameter and omits the end tag (and the self-closing '/'...
wfRestoreWarnings()
Restore error level to previous value.
WebInstaller $parent
The WebInstaller object this WebInstallerOutput is used by.
static linkedScript( $url)
Output a "<script>" tag linking to the given URL, e.g., "<script src=foo.js></script>".
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing after in associative array form externallinks including delete and has completed for all link tables default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage() -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "<
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
static makeComment( $text)
Generate a CSS or JS comment block.
when a variable name is used in a it is silently declared as a new masking the global
getCSS( $dir)
Get the raw vector CSS, flipping if needed.
allowFrames( $allow=true)
useShortHeader( $use=true)
static getLessCompiler()
Returns LESS compiler set up for use with MediaWiki.
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as $wgLang
Dynamic JavaScript and CSS resource loading system.
if(count( $args)==0) $dir
static linkedStyle( $url, $media='all')
Output a "<link rel=stylesheet>" linking to the given URL for the given media type (if any).
bool $allowFrames
Does the current page need to allow being used as a frame? If not, X-Frame-Options will be output to ...
String $contents
Buffered contents that haven't been output yet.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
static transform( $css, $swapLtrRtlInURL=false, $swapLeftRightInURL=false)
Transform an LTR stylesheet to RTL.
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at name