Added hook SkinTemplateNavigation which provides a way to tweak the navigation before...
authorTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 2 Jul 2009 19:17:49 +0000 (19:17 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 2 Jul 2009 19:17:49 +0000 (19:17 +0000)
skins/Vector.php
skins/vector/main-ltr.css
skins/vector/main-rtl.css

index 93df526..d5910e2 100644 (file)
@@ -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(
index c00e770..ca71c71 100644 (file)
@@ -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;
index 6b5a799..ef482ec 100644 (file)
@@ -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;