* @ingroup Skins
*/
-if( !defined( 'MEDIAWIKI' ) ) {
+if ( !defined( 'MEDIAWIKI' ) ) {
die( -1 );
}
* @param $out OutputPage
*/
function setupSkinUserCss( OutputPage $out ) {
- $out->addModuleStyles( 'mediawiki.legacy.shared' );
+ parent::setupSkinUserCss( $out );
$out->addModuleStyles( 'mediawiki.legacy.oldshared' );
$out->addModuleStyles( 'skins.cologneblue' );
}
*
* @return string
*/
- function processBottomLink( $key, $navlink, $message=null ) {
+ function processBottomLink( $key, $navlink, $message = null ) {
if ( !$navlink ) {
// Empty navlinks might be passed.
return null;
$companionTitle = $title->isTalkPage() ? $title->getSubjectPage() : $title->getTalkPage();
$companionNamespace = $companionTitle->getNamespace();
- // TODO these messages appear to only be used by CologneBlue and legacy skins,
+ // TODO these messages are only be used by CologneBlue,
// kill and replace with something more sensibly named?
$nsToMessage = array(
NS_MAIN => 'articlepage',
// Use the regular navigational link, but replace its text. Everything else stays unmodified.
$namespacesLinks = $this->data['content_navigation']['namespaces'];
- return $this->processBottomLink( $message, $namespacesLinks[$key], $message );
+ return $this->processBottomLink( $message, $namespacesLinks[$key], $message );
}
/**
* @param $navlink array Navigational link generated by SkinTemplate
* @param $idPrefix mixed Prefix to add to id of this navlink. If false, id is removed entirely. Default is 'cb-'.
*/
- function processNavlinkForDocument( $navlink, $idPrefix='cb-' ) {
+ function processNavlinkForDocument( $navlink, $idPrefix = 'cb-' ) {
if ( $navlink['id'] ) {
$navlink['single-id'] = $navlink['id']; // to allow for tooltip generation
$navlink['tooltiponly'] = true; // but no accesskeys
if ( $idPrefix === false ) {
unset( $navlink['id'] );
} else {
- $navlink['id'] = $idPrefix . $navlink['id'];
+ $navlink['id'] = $idPrefix . $navlink['id'];
}
}
ob_start();
?>
</div>
- <div id="footer" role="contentinfo">
+ <div id="footer">
+ <div id="footer-navigation" role="navigation">
<?php
// Page-related links
echo $this->bottomLinks();
$this->getSkin()->aboutLink(),
$this->searchForm( 'footer' )
) );
- echo "\n<br />";
-
+?>
+ </div>
+ <div id="footer-info" role="contentinfo">
+<?php
// Standard footer info
$footlinks = $this->getFooterLinks();
if ( $footlinks['info'] ) {
}
}
?>
+ </div>
</div>
</div>
<div id="mw-navigation">
);
$personalUrls = $this->getPersonalTools();
- foreach ( array ( 'logout', 'createaccount', 'login', 'anonlogin' ) as $key ) {
+ foreach ( array( 'logout', 'createaccount', 'login', 'anonlogin' ) as $key ) {
if ( $personalUrls[$key] ) {
$s[] = $this->makeListItem( $key, $personalUrls[$key], array( 'tag' => 'span' ) );
}
// Personal tools ("My pages")
$qbmyoptions = $this->getPersonalTools();
- foreach ( array ( 'logout', 'createaccount', 'login', 'anonlogin' ) as $key ) {
+ foreach ( array( 'logout', 'createaccount', 'login', 'anonlogin' ) as $key ) {
$qbmyoptions[$key] = null;
}
$search = $this->getSkin()->getRequest()->getText( 'search' );
$action = $this->data['searchaction'];
- $s = "<form id=\"searchform-" . htmlspecialchars($which) . "\" method=\"get\" class=\"inline\" action=\"$action\">";
- if( $which == 'footer' ) {
+ $s = "<form id=\"searchform-" . htmlspecialchars( $which ) . "\" method=\"get\" class=\"inline\" action=\"$action\">";
+ if ( $which == 'footer' ) {
$s .= wfMessage( 'qbfind' )->text() . ": ";
}
$s .= "<input type='text' class=\"mw-searchInput\" name=\"search\" size=\"14\" value=\""
. htmlspecialchars( substr( $search, 0, 256 ) ) . "\" />"
- . ($which == 'footer' ? " " : "<br />")
+ . ( $which == 'footer' ? " " : "<br />" )
. "<input type='submit' class=\"searchButton\" name=\"go\" value=\"" . wfMessage( 'searcharticle' )->escaped() . "\" />";
- if( $wgUseTwoButtonsSearchForm ) {
+ if ( $wgUseTwoButtonsSearchForm ) {
$s .= " <input type='submit' class=\"searchButton\" name=\"fulltext\" value=\"" . wfMessage( 'searchbutton' )->escaped() . "\" />\n";
} else {
$s .= '<div><a href="' . $action . '" rel="search">' . wfMessage( 'powersearch-legend' )->escaped() . "</a></div>\n";