r52718 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52717‎ | r52718 | r52719 >
Date:19:17, 2 July 2009
Author:tparscal
Status:ok
Tags:
Comment:
Added hook SkinTemplateNavigation which provides a way to tweak the navigation before page rendering
Modified paths:
  • /trunk/phase3/skins/Vector.php (modified) (history)
  • /trunk/phase3/skins/vector/main-ltr.css (modified) (history)
  • /trunk/phase3/skins/vector/main-rtl.css (modified) (history)

Diff [purge]

Index: trunk/phase3/skins/Vector.php
@@ -85,7 +85,7 @@
8686 }
8787 $talkId = "{$subjectId}_talk";
8888 $currentId = $isTalk ? $talkId : $subjectId;
89 -
 89+
9090 // Adds namespace links
9191 $links['namespaces'][$subjectId] = $this->tabAction(
9292 $subjectPage, 'vector-namespace-' . $subjectId, !$isTalk, '', true
@@ -292,7 +292,10 @@
293293 );
294294 }
295295 }
296 -
 296+
 297+ // This is instead of SkinTemplateTabs - which uses a flat array
 298+ wfRunHooks( 'SkinTemplateNavigation', array( &$this, &$links ) );
 299+
297300 // If it's not content, it's got to be a special page
298301 } else {
299302 $links['namespaces']['special'] = array(
Index: trunk/phase3/skins/vector/main-ltr.css
@@ -243,6 +243,7 @@
244244 padding-left: 1.25em;
245245 cursor: default;
246246 border: none;
 247+ font-size: 0.9em;
247248 }
248249 div#panel div.portal div.body {
249250 margin: 0;
@@ -262,6 +263,7 @@
263264 padding-bottom: 0.5em;
264265 margin: 0;
265266 overflow: hidden;
 267+ font-size: 0.9em;
266268 }
267269 div#panel div.portal div.body ul li a {
268270 color: #0645ad;
Index: trunk/phase3/skins/vector/main-rtl.css
@@ -264,6 +264,7 @@
265265 background-image: url(images/portal-break-rtl.png);
266266 background-repeat: no-repeat;
267267 background-position: top right;
 268+ font-size: 0.9em;
268269 }
269270 div#panel div.portal div.body ul {
270271 list-style: none;
@@ -275,6 +276,7 @@
276277 padding-bottom: 0.5em;
277278 margin: 0;
278279 overflow: hidden;
 280+ font-size: 0.9em;
279281 }
280282 div#panel div.portal div.body ul li a {
281283 color: #0645ad;

Follow-up revisions

RevisionCommit summaryAuthorDate
r53399Merging UI fixes from trunk (acaifix tag), first batch:...brion15:17, 17 July 2009

Status & tagging log