Added ns-{{ns:}} class to body (example: ns-0 for the main ns) to allow users/skins...
authorGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 22 May 2004 13:39:24 +0000 (13:39 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 22 May 2004 13:39:24 +0000 (13:39 +0000)
includes/SkinPHPTal.php
templates/xhtml_slim.pt

index bf39da2..77f5558 100644 (file)
                        $tpl->set( 'headlinks', $out->getHeadLinks() );
                        $tpl->setRef( 'skinname', &$this->skinname );
                        $tpl->setRef( "loggedin", &$this->loggedin );
+                       $tpl->set('nsclass', 'ns-'.$wgTitle->getNamespace());
                        /* XXX currently unused, might get useful later
                        $tpl->set( "editable", ($wgTitle->getNamespace() != NS_SPECIAL ) );
                        $tpl->set( "exists", $wgTitle->getArticleID() != 0 );
index 18ef4a8..e5f9e99 100644 (file)
@@ -18,7 +18,7 @@
       tal:condition="userjsprev" type="text/javascript">/*<![CDATA[*/${userjsprev}/*]]>*/</script>
   </head>
 
-  <body tal:attributes="ondblclick body-ondblclick|default">
+  <body tal:attributes="ondblclick body-ondblclick|default; class nsclass|default">
     <div id="globalWrapper">
       <div id="column-content">
        <div id="content">