/** * return the final output. */ function getFinalOutput() { global $bgWpbash; if( $this->mRedirect ) { return ''; } $ret = "\n" . "\n" . " \n" . " " . trim( $this->mPageTitle ) . " - WPbash\n" . " \n"; // $this->mHtmlMetaTags is an array (name => content) which contains // the html tags. foreach( $this->mHtmlMetaTags as $name => $content ) { $ret .= " \n"; } $ret .= " \n" . " \n" . " \n" . " \n" . "
\n" . "
\n" . "
\n" . " \n" . "

{$this->mFirstHeading}

\n" . "
\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 .= "
\n" . "
\n" . " \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 .= " \n" . "
\n" . "
\n" . "
\n" . "
\n" . "
\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!' (html what will be put in the tab; should be a link element) // ) if( count( $this->mCactionTabs ) > 0 ) { $ret .= "
\n" . "
Diese Seite
\n" . "
    \n"; foreach( $this->mCactionTabs as $t ) { $ret .= "
  • {$t['text']}
  • \n"; } $ret .= "
\n" . "
\n"; } $ret .= " \n" . "
\n" . "
\n" . "
    \n"; // $this->mLeftmenu is also an array. It stores the //
  • 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 .= "
  • {$a['text']}
  • \n"; } $ret .= "
\n" . "
\n" . "
\n" . " \n" . "
\n" . "
siehe auch
\n" . "
\n" . " \n" . "
\n" . "
\n" . "
\n" . "
\n" . " \n" . " \n" . "
\n" . " \n" . "\n"; return $ret; }