Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki-CVS

SVN: [39054] trunk/phase3

 

 

Wikipedia mediawiki-cvs RSS feed   Index | Next | Previous | View Threaded


sql at svn

Aug 10, 2008, 1:29 AM

Post #1 of 1 (73 views)
Permalink
SVN: [39054] trunk/phase3

Revision: 39054
Author: sql
Date: 2008-08-10 08:29:05 +0000 (Sun, 10 Aug 2008)

Log Message:
-----------
Bug 15079, 'Add class="ns-talk" / "ns-subject" to <body>', also added ns-special for special pages.

Modified Paths:
--------------
trunk/phase3/RELEASE-NOTES
trunk/phase3/includes/Skin.php
trunk/phase3/includes/SkinTemplate.php
trunk/phase3/skins/Modern.php
trunk/phase3/skins/MonoBook.php

Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES 2008-08-10 07:53:12 UTC (rev 39053)
+++ trunk/phase3/RELEASE-NOTES 2008-08-10 08:29:05 UTC (rev 39054)
@@ -89,6 +89,8 @@
entirely, not just the display of it.
* (bug 6387) Introduced new setting $wgCategoryPrefixedDefaultSortkey which
allows having the unprefixed page title as the default category sortkey
+* (bug 15079) Add class="ns-talk" / "ns-subject" to <body>. Also added ns-special to
+ special pages.

=== API changes in 1.14 ===


Modified: trunk/phase3/includes/Skin.php
===================================================================
--- trunk/phase3/includes/Skin.php 2008-08-10 07:53:12 UTC (rev 39053)
+++ trunk/phase3/includes/Skin.php 2008-08-10 08:29:05 UTC (rev 39054)
@@ -589,8 +589,9 @@
$a['onload'] = $wgOut->getOnloadHandler();
$a['class'] =
'mediawiki ns-'.$wgTitle->getNamespace().
- ' '.($wgContLang->isRTL() ? "rtl" : "ltr").
- ' '.Sanitizer::escapeClass( 'page-'.$wgTitle->getPrefixedText() );
+ ' '.( $wgContLang->isRTL() ? "rtl" : "ltr" ).
+ ' '.Sanitizer::escapeClass( 'page-'.$wgTitle->getPrefixedText() ).
+ ' '.( $wgTitle->isTalkPage() ? "ns-talk" : ( $wgTitle->isTalkPage() ? "ns-talk" : ( $wgTitle->getNamespace() == NS_SPECIAL ? "ns-special" : "ns-subject" ) ) );
return $a;
}


Modified: trunk/phase3/includes/SkinTemplate.php
===================================================================
--- trunk/phase3/includes/SkinTemplate.php 2008-08-10 07:53:12 UTC (rev 39053)
+++ trunk/phase3/includes/SkinTemplate.php 2008-08-10 08:29:05 UTC (rev 39054)
@@ -192,6 +192,7 @@
$tpl->set( 'pagetitle', $wgOut->getHTMLTitle() );
$tpl->set( 'displaytitle', $wgOut->mPageLinkTitle );
$tpl->set( 'pageclass', Sanitizer::escapeClass( 'page-'.$this->mTitle->getPrefixedText() ) );
+ $tpl->set( 'talkclass', ( $wgTitle->isTalkPage() ? "ns-talk" : ( $wgTitle->getNamespace() == NS_SPECIAL ? "ns-special" : "ns-subject" ) ) );

$nsname = isset( $wgCanonicalNamespaceNames[ $this->mTitle->getNamespace() ] ) ?
$wgCanonicalNamespaceNames[ $this->mTitle->getNamespace() ] :

Modified: trunk/phase3/skins/Modern.php
===================================================================
--- trunk/phase3/skins/Modern.php 2008-08-10 07:53:12 UTC (rev 39053)
+++ trunk/phase3/skins/Modern.php 2008-08-10 08:29:05 UTC (rev 39054)
@@ -95,7 +95,7 @@
</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('talkclass') ?>">

<!-- heading -->
<div id="mw_header"><h1 id="firstHeading"><?php $this->data['displaytitle']!=""?$this->html('title'):$this->text('title') ?></h1></div>

Modified: trunk/phase3/skins/MonoBook.php
===================================================================
--- trunk/phase3/skins/MonoBook.php 2008-08-10 07:53:12 UTC (rev 39053)
+++ trunk/phase3/skins/MonoBook.php 2008-08-10 08:29:05 UTC (rev 39054)
@@ -104,7 +104,7 @@
</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('talkclass') ?>">
<div id="globalWrapper">
<div id="column-content">
<div id="content">



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Wikipedia mediawiki-cvs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.