var $skinname = 'cologneblue', $stylename = 'cologneblue',
$template = 'CologneBlueTemplate';
+ /**
+ * @param $out OutputPage
+ */
function setupSkinUserCss( OutputPage $out ){
parent::setupSkinUserCss( $out );
$out->addModuleStyles( 'skins.cologneblue' );
class CologneBlueTemplate extends LegacyTemplate {
+ /**
+ * @return string
+ */
function doBeforeContent() {
$mainPageObj = Title::newMainPage();
return $s;
}
+ /**
+ * @return string
+ */
function doAfterContent(){
global $wgLang;
return $s;
}
+ /**
+ * @return string
+ */
function sysLinks() {
global $wgUser, $wgLang;
$li = SpecialPage::getTitleFor( 'Userlogin' );
/**
* Compute the sidebar
* @access private
+ *
+ * @return string
*/
function quickBar(){
global $wgOut, $wgUser;
$barnumber = 1;
foreach ( $bar as $heading => $browseLinks ) {
- $heading_text = wfMsg ( $heading );
if ( $barnumber > 1 ) {
- if ( wfEmptyMsg( $heading, $heading_text ) ) {
- $h = $heading;
+ $headingMsg = wfMessage( $heading );
+ if ( $headingMsg->exists() ) {
+ $h = $headingMsg->text();
} else {
- $h = $heading_text;
+ $h = $heading;
}
$s .= "\n<h6>" . htmlspecialchars( $h ) . "</h6>";
}
htmlspecialchars( $link['text'] ) . '</a>' . $sep;
}
}
- $barnumber = $barnumber + 1;
+ $barnumber++;
}
if ( $wgOut->isArticle() ) {
return $s;
}
+ /**
+ * @param $key string
+ * @return string
+ */
function menuHead( $key ) {
$s = "\n<h6>" . wfMsg( $key ) . "</h6>";
return $s;
}
+ /**
+ * @param $label string
+ * @return string
+ */
function searchForm( $label = '' ) {
global $wgRequest, $wgUseTwoButtonsSearchForm;