From: Gabriel Wicke Date: Sat, 22 May 2004 13:39:24 +0000 (+0000) Subject: Added ns-{{ns:}} class to body (example: ns-0 for the main ns) to allow users/skins... X-Git-Tag: 1.5.0alpha1~3230 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=5e6c16f55a684f1f9694a4482cf12916f7343c2b;p=lhc%2Fweb%2Fwiklou.git Added ns-{{ns:}} class to body (example: ns-0 for the main ns) to allow users/skins to style stuff by ns --- diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index bf39da2599..77f5558cf2 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -114,6 +114,7 @@ $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 ); diff --git a/templates/xhtml_slim.pt b/templates/xhtml_slim.pt index 18ef4a8b17..e5f9e995cf 100644 --- a/templates/xhtml_slim.pt +++ b/templates/xhtml_slim.pt @@ -18,7 +18,7 @@ tal:condition="userjsprev" type="text/javascript">/**/ - +