http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84509

Revision: 84509
Author:   reedy
Date:     2011-03-22 01:01:22 +0000 (Tue, 22 Mar 2011)
Log Message:
-----------
Embolden bottom row of SiteMatrix table as <th></th>

Make "language" text rowspan 2, remove empty cell, so table formatting looks a 
bit better

Modified Paths:
--------------
    trunk/extensions/SiteMatrix/SiteMatrix_body.php

Modified: trunk/extensions/SiteMatrix/SiteMatrix_body.php
===================================================================
--- trunk/extensions/SiteMatrix/SiteMatrix_body.php     2011-03-22 00:46:56 UTC 
(rev 84508)
+++ trunk/extensions/SiteMatrix/SiteMatrix_body.php     2011-03-22 01:01:22 UTC 
(rev 84509)
@@ -342,11 +342,10 @@
                # Header row
                $s = Xml::openElement( 'table', array( 'class' => 'wikitable', 
'id' => 'mw-sitematrix-table' ) ) .
                        "<tr>" .
-                               Xml::element( 'th', null, wfMsg( 
'sitematrix-language' ) ) .
+                               Xml::element( 'th', array( 'rowspan' => 2 ), 
wfMsg( 'sitematrix-language' ) ) .
                                Xml::element( 'th', array( 'colspan' => count( 
$matrix->getSites() ) ), wfMsg( 'sitematrix-project' ) ) .
                        "</tr>
-                       <tr>
-                               <th>&#160;</th>";
+                       <tr>";
                                foreach ( $matrix->getNames() as $id => $name ) 
{
                                        $url = $matrix->getSiteUrl( $id );
                                        $s .= Xml::tags( 'th', null, "<a 
href=\"{$url}\">{$name}</a>" );
@@ -378,11 +377,11 @@
                }
 
                # Total
-               $s .= '<tr style="font-weight: bold"><td><a id="total" 
name="total"></a>' . wfMsgHtml( 'sitematrix-sitetotal' ) . '</td>';
+               $s .= '<tr style="font-weight: bold"><th><a id="total" 
name="total"></a>' . wfMsgHtml( 'sitematrix-sitetotal' ) . '</th>';
                foreach( $matrix->getNames() as $site => $name ) {
                        $url = $matrix->getSiteUrl( $site );
                        $count = $matrix->getCountPerSite( $site );
-                       $s .= "<td><a href=\"{$url}\">{$count}</a></td>";
+                       $s .= "<th><a href=\"{$url}\">{$count}</a></th>";
                }
                $s .= '</tr>';
                $s .= Xml::closeElement( 'table' ) . "\n";


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

Reply via email to