Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3024
getfinaloutput
Public
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 9:19 PM
2014-11-21 21:19:56 (UTC+0)
Size
5 KB
Referenced Files
None
Subscribers
None
getfinaloutput
View Options
/**
* return the final output.
*/
function getFinalOutput() {
global $bgWpbash;
if( $this->mRedirect ) {
return '';
}
$ret = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" .
"<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='de' lang='de'>\n" .
" <head>\n" .
" <title>" . trim( $this->mPageTitle ) . " - WPbash</title>\n" .
" <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\n";
// $this->mHtmlMetaTags is an array (name => content) which contains
// the html <meta> tags.
foreach( $this->mHtmlMetaTags as $name => $content ) {
$ret .= " <meta name='$name' content='$content' />\n";
}
$ret .= " <link rel='stylesheet' type='text/css' media='screen,projection' href='style/main.css' />\n" .
" <style type='text/css'>\n";
// $this->mHeaderstylesheet is what we put into the <style>
// section in the html header.
// We're exploding it to prefix each line with the correct,
// so at the place where this variable is defined
// indetion can be started at 0
// (this is also done for various other multiple-line strings below).
foreach( explode( "\n", $this->mHeaderstylesheet ) as $line ) {
$ret .= " $line\n";
}
$ret .= " </style>\n" .
" </head>\n" .
" <body>\n" .
" <div id='globalWrapper'>\n" .
" <div id='column-content'>\n" .
" <div id='content'>\n" .
" <a name='top' id='top'></a>\n" .
" <h1 class='firstHeading'>{$this->mFirstHeading}</h1>\n" .
" <div id='subtitle'>\n";
// $this->mSubtitleText is the text to put below the first heading
// like a subtitle.
foreach( explode( "\n", $this->mSubtitleText ) as $line ) {
$ret .= " $line\n";
}
$ret .= " </div>\n" .
" <div id='bodyContent'>\n" .
" <!-- start content -->\n";
// $this->mBodytext is the main html text, like the article content
// in mediawiki.
foreach( explode( "\n", $this->mBodytext ) as $line ) {
$ret .= " $line\n";
}
$ret .= " <!-- end content -->\n" .
" <div class='visualClear'></div>\n" .
" </div>\n" .
" </div>\n" .
" </div>\n" .
" <div id='column-one'>\n";
// $this->CactionTabs is an array containing all the page
// tabs (like 'edit this page', 'history', 'watch', etc in mediawiki).
// They are in an array to provide an easy way to add new/delete or modify existing
// ones. The array is like this:
// array(
// 'id' => 'ca-nstab-main' (the css id)
// 'class' => 'selected' (optional; the css class)
// 'text' => '< href=\'?action=stab\'>Mow!</a>' (html what will be put in the tab; should be a link element)
// )
if( count( $this->mCactionTabs ) > 0 ) {
$ret .= " <div id='p-cactions' class='portlet'>\n" .
" <h5>Diese Seite</h5>\n" .
" <ul>\n";
foreach( $this->mCactionTabs as $t ) {
$ret .= " <li id='{$t['id']}'" . ( $t['class'] ? " class='{$t['class']}'" : '' ) .
">{$t['text']}</li>\n";
}
$ret .= " </ul>\n" .
" </div>\n";
}
$ret .= " <div class='portlet' id='p-logo'>\n" .
" <a style='background-image: url({$this->mLogo});' href='" . $this->getActionURL( 'mainpage' ) . "'></a>\n" .
" </div>\n" .
" <div class='portlet' id='p-navigation'>\n" .
" <div class='pBody'>\n" .
" <ul>\n";
// $this->mLeftmenu is also an array. It stores the
// <li> elements for the left navigation menu above the
// search box.
// array(
// 'mainpage' => array(
// 'href' => $this->getActionURL( 'mainpage' ),
// 'text' => 'Hauptseite',
// ),
// )
foreach( $this->mLeftmenu as $a ) {
$ret .= " <li><a href='{$a['href']}'" . ( $a['class'] ? " class='{$a['class']}'" : '' ) .
">{$a['text']}</a></li>\n";
}
$ret .= " </ul>\n" .
" </div>\n" .
" </div>\n" .
" <div id='p-search' class='portlet'>\n" .
" <h5><label for='searchInput'>Suche</label></h5>\n" .
" <div id='searchBody' class='pBody'>\n" .
" <form action='/wiki/Spezial:Suche' id='searchform'>\n" .
" <div>\n" .
" <input id='searchInput' name='search' type='text' accesskey='f' value='' />\n" .
" <input type='submit' name='go' class='searchButton' id='searchGoButton' value='Go' />\n" .
" </div>\n" .
" </form>\n" .
" </div>\n" .
" </div>\n" .
" <div class='portlet' id='p-tb'>\n" .
" <h5>siehe auch</h5>\n" .
" <div class='pBody'>\n" .
" <ul>\n" .
" <li><a href='http://bash.org'>bash.org</a></li>\n" .
" <li><a href='http://german-bash.org'>german-bash.org</a></li>\n" .
" <li><a href='http://de.wikipedia.org'>de.wikipedia.org</a></li>\n" .
" </ul>\n" .
" </div>\n" .
" </div>\n" .
" </div> <!-- end of the left (by default at least) column -->\n" .
" <div class='visualClear'></div>\n" .
" <div id='footer'>\n" .
" Hahahaa.\n" .
" </div>\n" .
" <!-- Served by leon -->\n" .
" </div>\n" .
" </body>\n" .
"</html>\n";
return $ret;
}
File Metadata
Details
Attached
Mime Type
text/html
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2594
Default Alt Text
getfinaloutput (5 KB)
Attached To
Mode
T8872: Make Monobook.php more readable
Attached
Detach File
Event Timeline
Log In to Comment