From 5e6c16f55a684f1f9694a4482cf12916f7343c2b Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Sat, 22 May 2004 13:39:24 +0000 Subject: [PATCH] Added ns-{{ns:}} class to body (example: ns-0 for the main ns) to allow users/skins to style stuff by ns --- includes/SkinPHPTal.php | 1 + templates/xhtml_slim.pt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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">/**/ - +
-- 2.20.1