From: Trevor Parscal Date: Thu, 2 Jul 2009 19:17:49 +0000 (+0000) Subject: Added hook SkinTemplateNavigation which provides a way to tweak the navigation before... X-Git-Tag: 1.31.0-rc.0~41128 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=408bea0a9087c461abec570dc88929b7899365fe;p=lhc%2Fweb%2Fwiklou.git Added hook SkinTemplateNavigation which provides a way to tweak the navigation before page rendering --- diff --git a/skins/Vector.php b/skins/Vector.php index 93df526608..d5910e251e 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -85,7 +85,7 @@ class SkinVector extends SkinTemplate { } $talkId = "{$subjectId}_talk"; $currentId = $isTalk ? $talkId : $subjectId; - + // Adds namespace links $links['namespaces'][$subjectId] = $this->tabAction( $subjectPage, 'vector-namespace-' . $subjectId, !$isTalk, '', true @@ -292,7 +292,10 @@ class SkinVector extends SkinTemplate { ); } } - + + // This is instead of SkinTemplateTabs - which uses a flat array + wfRunHooks( 'SkinTemplateNavigation', array( &$this, &$links ) ); + // If it's not content, it's got to be a special page } else { $links['namespaces']['special'] = array( diff --git a/skins/vector/main-ltr.css b/skins/vector/main-ltr.css index c00e7709c3..ca71c715ac 100644 --- a/skins/vector/main-ltr.css +++ b/skins/vector/main-ltr.css @@ -243,6 +243,7 @@ div#panel { padding-left: 1.25em; cursor: default; border: none; + font-size: 0.9em; } div#panel div.portal div.body { margin: 0; @@ -262,6 +263,7 @@ div#panel { padding-bottom: 0.5em; margin: 0; overflow: hidden; + font-size: 0.9em; } div#panel div.portal div.body ul li a { color: #0645ad; diff --git a/skins/vector/main-rtl.css b/skins/vector/main-rtl.css index 6b5a799985..ef482ecb2a 100644 --- a/skins/vector/main-rtl.css +++ b/skins/vector/main-rtl.css @@ -264,6 +264,7 @@ div#panel { background-image: url(images/portal-break-rtl.png); background-repeat: no-repeat; background-position: top right; + font-size: 0.9em; } div#panel div.portal div.body ul { list-style: none; @@ -275,6 +276,7 @@ div#panel { padding-bottom: 0.5em; margin: 0; overflow: hidden; + font-size: 0.9em; } div#panel div.portal div.body ul li a { color: #0645ad;