From 57b02329a06696a47acbd602f0636ff41418859b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 30 Apr 2008 18:29:38 +0000 Subject: [PATCH] * (bug 13880) "Printable" link in Modern skin now formats as print mode Problem was that the Modern skin uses a different way of setting up the print stylesheet from the other skins. Others: * always include main stylesheet * override that stuff with print stylesheet for print media or ?printable=yes Modern: * include main stylesheet only for screen & projection media only * add some additional print styles for print media or ?printable=yes The screen stylesheet was still being used when ?printable=yes is set, but would be hidden when actually printing. I've changed it to now exclude the screen stylesheets when ?printable=yes is switched in, so it looks the same on screen as when actually printing. --- RELEASE-NOTES | 2 ++ skins/Modern.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3a0d2a9d02..0d9f110c17 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -228,6 +228,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13168) accessibility links in Modern skin link to wrong anchor id * (bug 13185) No line break after 'subpages' class in Modern skin * (bug 13583) No "poweredby" in Modern skin +* (bug 13880) "Printable" link in Modern skin now formats as print mode + === API changes in 1.13 === diff --git a/skins/Modern.php b/skins/Modern.php index 433d14bd31..351372fba5 100644 --- a/skins/Modern.php +++ b/skins/Modern.php @@ -61,10 +61,12 @@ class ModernTemplate extends QuickTemplate { html('headlinks') ?> <?php $this->text('pagetitle') ?> + data['printable']) ) { ?> + data['printable']) ) { ?>media="print" href="text('stylepath') ?>/text('stylename') ?>/print.css?" /> -- 2.20.1