From f9959d11edaf288441be776a66173d78e168aaaf Mon Sep 17 00:00:00 2001 From: Arne Heizmann Date: Sun, 24 Jul 2005 21:59:52 +0000 Subject: [PATCH] Add a second copy of the catlinks at the top of the article (just under the article title), but make it invisible using display:none. This way people who would prefer the categories at the top can customize the appearance of the wiki using CSS without having to resort to ugly JavaScript hacks. --- skins/MonoBook.php | 1 + skins/monobook/main.css | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 17a952d106..5184a03bd1 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -80,6 +80,7 @@ class MonoBookTemplate extends QuickTemplate { data['sitenotice']) { ?>
html('sitenotice') ?>

text('title') ?>

+ data['catlinks']) { ?>

msg('tagline') ?>

html('subtitle') ?>
data['undelete']) { ?>
html('undelete') ?>
diff --git a/skins/monobook/main.css b/skins/monobook/main.css index ff04c7de6e..ef4ee6d2de 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -273,6 +273,10 @@ span.subpages { margin-top: 1em; clear: both; } +#catlinks-top { + display: none; +} + /* currently unused, intended to be used by a metadata box in the bottom-right corner of the content area */ .documentDescription { -- 2.20.1