* @ingroup Skins
*/
class ModernTemplate extends MonoBookTemplate {
+
+ /**
+ * @var Skin
+ */
var $skin;
/**
* Template filter callback for Modern skin.
function execute() {
global $wgRequest;
$this->skin = $skin = $this->data['skin'];
- $action = $wgRequest->getText( 'action' );
// Suppress warnings to prevent notices about missing indexes in $this->data
wfSuppressWarnings();
* @ingroup Skins
*/
class MonoBookTemplate extends BaseTemplate {
+
+ /**
+ * @var Skin
+ */
var $skin;
+
/**
* Template filter callback for MonoBook skin.
* Takes an associative array of data set from a SkinTemplate-based
var $skinname = 'standard', $stylename = 'standard',
$template = 'StandardTemplate';
- /**
- *
- */
function setupSkinUserCss( OutputPage $out ){
parent::setupSkinUserCss( $out );
$out->AddModuleStyles( 'skins.standard' );
/* Members */
/**
- * @var Cached skin object
+ * @var Skin Cached skin object
*/
var $skin;
$nav = $this->data['content_navigation'];
if ( $wgVectorUseIconWatch ) {
- $mode = $this->skin->mTitle->userIsWatching() ? 'unwatch' : 'watch';
+ $mode = $this->skin->getTitle()->userIsWatching() ? 'unwatch' : 'watch';
if ( isset($nav['actions'][$mode]) ) {
$nav['views'][$mode] = $nav['actions'][$mode];
$nav['views'][$mode]['class'] = rtrim('icon ' . $nav['views'][$mode]['class'], ' ');
unset($nav['actions'][$mode]);
}
}
-
+
+ $xmlID = '';
foreach ( $nav as $section => $links ) {
foreach ( $links as $key => $link ) {
if ( $section == "views" && !(isset($link["primary"]) && $link["primary"]) ) {