cvs: phpweb /include layout.inc /styles print.css
| From: | Gabor Hojtsy | Date: | Tue, 12 Sep 2006 20:54:49 +0000 |
| Subject: | cvs: phpweb /include layout.inc /styles print.css | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-32568@lists.php.net to get a copy of this message | ||
goba Tue Sep 12 20:54:49 2006 UTC
Added files:
/phpweb/styles print.css
Modified files:
/phpweb/include layout.inc
Log:
print media styles for pages, which should very soon depreciate explicitly
'printer-friendly' pages
http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.239&r2=1.240&diff_format=u
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.239 phpweb/include/layout.inc:1.240
--- phpweb/include/layout.inc:1.239 Tue Sep 12 12:17:21 2006
+++ phpweb/include/layout.inc Tue Sep 12 20:54:49 2006
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.239 2006/09/12 12:17:21 goba Exp $ */
+/* $Id: layout.inc,v 1.240 2006/09/12 20:54:49 goba Exp $ */
// Set the static content root differently on php.net
$_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ?
@@ -117,6 +117,9 @@
@import url("{$_SERVER['STATIC_ROOT']}/styles/site.css");
@import url("{$_SERVER['STATIC_ROOT']}/styles/{$mirror_specific_style}.css");
</style>
+ <style type="text/css" media="print">
+ @import url("{$_SERVER['STATIC_ROOT']}/styles/print.css");
+ </style>
<meta http-equiv="Content-Type" content="text/html;
charset={$config['charset']}"/>
<link rel="shortcut icon"
href="{$_SERVER['STATIC_ROOT']}/favicon.ico" />
<script type="text/javascript"
src="{$_SERVER['STATIC_ROOT']}/userprefs.js"></script>$base$meta
http://cvs.php.net/viewvc.cgi/phpweb/styles/print.css?view=markup&rev=1.1
Index: phpweb/styles/print.css
+++ phpweb/styles/print.css
#headmenu, #headsearch, #leftbar, #rightbar, #footnav, #thismirror,..manualnavbar .next,
.manualnavbar .prev, .manualnavbar .langchooser,..note .action {
display: none;
}
#content {
width: 100%;
}