(bug 15052) Skins should add their name as a class in <body>
authorJack Phoenix <ashley@users.mediawiki.org>
Wed, 6 Aug 2008 01:07:58 +0000 (01:07 +0000)
committerJack Phoenix <ashley@users.mediawiki.org>
Wed, 6 Aug 2008 01:07:58 +0000 (01:07 +0000)
RELEASE-NOTES
includes/Skin.php
skins/Modern.php
skins/MonoBook.php

index f76cdef..33e3c33 100644 (file)
@@ -57,6 +57,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 2333) Redirects are properly rendered when previewing an edit.
 * (bug 14972) Use localized alias of Special:Search on all search forms
 * (bug 11035) Special:Search should have descriptive <title>
+* (bug 15052) Skins should add their name as a class in <body>
 
 === API changes in 1.14 ===
 
index 71ada4c..4e3bb81 100644 (file)
@@ -551,7 +551,7 @@ END;
                $a['class'] =
                        'mediawiki ns-'.$wgTitle->getNamespace().
                        ' '.($wgContLang->isRTL() ? "rtl" : "ltr").
-                       ' '.Sanitizer::escapeClass( 'page-'.$wgTitle->getPrefixedText() );
+                       ' '.Sanitizer::escapeClass( 'page-'.$wgTitle->getPrefixedText() ) .' '. get_class( $this );
                return $a;
        }
 
index b406743..6961a22 100644 (file)
@@ -95,7 +95,7 @@ class ModernTemplate extends QuickTemplate {
        </head>
 <body<?php if($this->data['body_ondblclick']) { ?> ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
 <?php if($this->data['body_onload'    ]) { ?> onload="<?php     $this->text('body_onload')     ?>"<?php } ?>
- class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?>">
+ class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?> <?php $this->text('skinclass') ?>">
 
        <!-- heading -->
        <div id="mw_header"><h1 id="firstHeading"><?php $this->data['displaytitle']!=""?$this->html('title'):$this->text('title') ?></h1></div>
index a96a147..86248ee 100644 (file)
@@ -104,7 +104,7 @@ class MonoBookTemplate extends QuickTemplate {
        </head>
 <body<?php if($this->data['body_ondblclick']) { ?> ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
 <?php if($this->data['body_onload']) { ?> onload="<?php $this->text('body_onload') ?>"<?php } ?>
- class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?>">
+ class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?> <?php $this->text('skinclass') ?>">
        <div id="globalWrapper">
                <div id="column-content">
        <div id="content">