var $skinname = 'chick', $stylename = 'chick',
$template = 'MonoBookTemplate', $useHeadElement = true;
+ /**
+ * @param $out OutputPage
+ */
function setupSkinUserCss( OutputPage $out ){
parent::setupSkinUserCss( $out );
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;
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;
var $skinname = 'modern', $stylename = 'modern',
$template = 'ModernTemplate', $useHeadElement = true;
+ /**
+ * @param $out OutputPage
+ */
function setupSkinUserCss( OutputPage $out ){
parent::setupSkinUserCss( $out );
$out->addModuleStyles ('skins.modern');
var $skinname = 'monobook', $stylename = 'monobook',
$template = 'MonoBookTemplate', $useHeadElement = true;
+ /**
+ * @param $out OutputPage
+ */
function setupSkinUserCss( OutputPage $out ) {
global $wgHandheldStyle;
parent::setupSkinUserCss( $out );
/**
* Prints the cactions bar.
* Shared between MonoBook and Modern
+ *
+ * @param $skin Skin
*/
function cactions( Skin $skin ) {
?>
var $skinname = 'nostalgia', $stylename = 'nostalgia',
$template = 'NostalgiaTemplate';
+ /**
+ * @param $out OutputPage
+ */
function setupSkinUserCss( OutputPage $out ){
parent::setupSkinUserCss( $out );
$out->addModuleStyles( 'skins.nostalgia' );
class NostalgiaTemplate extends LegacyTemplate {
+ /**
+ * @return string
+ */
function doBeforeContent() {
$s = "\n<div id='content'>\n<div id='top'>\n";
$s .= '<div id="logo">' . $this->getSkin()->logoText( 'right' ) . '</div>';
return $s;
}
+ /**
+ * @return string
+ */
function topLinks() {
global $wgOut, $wgUser;
$sep = " |\n";
return $s;
}
+ /**
+ * @return string
+ */
function doAfterContent() {
$s = "\n</div><br clear='all' />\n";
var $skinname = 'simple', $stylename = 'simple',
$template = 'MonoBookTemplate', $useHeadElement = true;
+ /**
+ * @param $out OutputPage
+ */
function setupSkinUserCss( OutputPage $out ) {
parent::setupSkinUserCss( $out );
var $skinname = 'standard', $stylename = 'standard',
$template = 'StandardTemplate';
+ /**
+ * @param $out OutputPage
+ */
function setupSkinUserCss( OutputPage $out ){
parent::setupSkinUserCss( $out );
$out->AddModuleStyles( 'skins.standard' );
class StandardTemplate extends LegacyTemplate {
+ /**
+ * @return string
+ */
function doAfterContent() {
global $wgContLang, $wgLang;
wfProfileIn( __METHOD__ );
return $s;
}
+ /**
+ * @return string
+ */
function quickBar() {
global $wgOut, $wgUser, $wgRequest, $wgContLang;
}
if ( isset( $link['tooltiponly'] ) && $link['tooltiponly'] ) {
$nav[$section][$key]['key'] =
- Linker::tooltip( $xmlID );
+ Linker::titleAttrib( $xmlID );
} else {
$nav[$section][$key]['key'] =
Xml::expandAttributes( Linker::tooltipAndAccesskeyAttribs( $xmlID ) );
/**
* Render a series of portals
+ *
+ * @params $portals array
*/
private function renderPortals( $portals ) {
// Force the rendering of the following portals
$msg = $name;
}
?>
-<div class="portal" id='<?php echo Sanitizer::escapeId( "p-$name" ) ?>'<?php echo Linker::tooltip( 'p-' . $name ) ?>>
+<div class="portal" id='<?php echo Sanitizer::escapeId( "p-$name" ) ?>'<?php echo Linker::titleAttrib( 'p-' . $name ) ?>>
<h5<?php $this->html( 'userlangattributes' ) ?>><?php $msgObj = wfMessage( $msg ); echo htmlspecialchars( $msgObj->exists() ? $msgObj->text() : $msg ); ?></h5>
<div class="body">
<?php
/**
* Render one or more navigations elements by name, automatically reveresed
* when UI is in RTL mode
+ *
+ * @param $elements array
*/
private function renderNavigation( $elements ) {
global $wgVectorUseSimpleSearch, $wgVectorShowVariantName, $wgUser;