first commit

This commit is contained in:
/usr/bin/nano
2017-04-15 01:34:36 +03:00
commit c715e2a604
5325 changed files with 329700 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
This directory contains the files to print pages in PmWiki for ?action=print.
This is a template just like any other layout skin, except that for
?action=print PmWiki looks for print.tmpl instead of screen.tmpl.
==>Don't edit these files directly, as you may lose your edits the
next time you upgrade PmWiki!
Instead, copy the files to another directory in pub/skins/ and edit
them there. You can then configure PmWiki to use your modified layout
files by setting $ActionSkin['print'] to the name of your new skin.
For example, if you copy your custom print skin to pub/skins/custom,
then you would set
$ActionSkin['print'] = 'custom';
in local/config.php.
The files in this directory:
print.tmpl -- the default template for ?action=print
print.css -- the print template's css
print.php -- loaded when the skin is loaded, it redefines the link
formats to a form better suited for printing
+50
View File
@@ -0,0 +1,50 @@
/***********************************************************************
** print.css
** Copyright 2004 Patrick R. Michaud (pmichaud@pobox.com)
** This file is part of PmWiki; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published
** by the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version. See pmwiki.php for full details.
***********************************************************************/
/***********************************************************************
** These settings are part of the ?action=print skin. If you want
** to change these settings, create a new print template and set
** $PrintTemplateFmt in the config.php file to point to your new
** printing skin.
***********************************************************************/
body {
width:auto;
background-color:white;
color:black;
font-family:serif;
}
#printhead {
font-family:sans-serif;
border-top:3px solid #a0a0a0;
border-bottom:5px solid #a0a0a0;
margin-bottom:1em;
}
#printhead h3 { margin-top:0px; }
#printhead h1 { margin-bottom:0px; }
#printtitle {
}
#printfoot {
clear:both;
margin-top:1em;
border-top:5px solid #a0a0a0;
font-size:smaller;
}
a:link { color:#444444; font-weight:bold; text-decoration:none; }
a:visited { color:#444444; font-weight:bold; text-decoration:none; }
a.wikilink:hover { color: #444444; text-decoration:underline; }
a.createlink { color:#444444; }
a.createlink:visited { color:#444444; }
a.createlink:hover { color:#ff2222; }
+29
View File
@@ -0,0 +1,29 @@
<?php if (!defined('PmWiki')) exit();
/* Copyright 2004 Patrick R. Michaud (pmichaud@pobox.com)
This file is part of PmWiki; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. See pmwiki.php for full details.
This script defines additional settings needed when the 'print'
skin is loaded (usually in response to ?action=print, as controlled
by the $ActionSkin['print'] setting. See scripts/skins.php for
more details.
The changes made are:
- Redefines the standard layout to a format suitable for printing
- Redefines internal links to keep ?action=print
- Changes the display of URL and mailto: links
- Uses GroupPrintHeader and GroupPrintFooter pages instead
of GroupHeader and GroupFooter
*/
global $LinkPageExistsFmt, $GroupPrintHeaderFmt,
$GroupPrintFooterFmt, $GroupHeaderFmt, $GroupFooterFmt;
$LinkPageExistsFmt = "<a class='wikilink' href='\$PageUrl?action=print'>\$LinkText</a>";
SDV($GroupPrintHeaderFmt,'(:include $Group.GroupPrintHeader basepage={*$FullName}:)(:nl:)');
SDV($GroupPrintFooterFmt,'(:nl:)(:include $Group.GroupPrintFooter basepage={*$FullName}:)');
$GroupHeaderFmt = $GroupPrintHeaderFmt;
$GroupFooterFmt = $GroupPrintFooterFmt;
+20
View File
@@ -0,0 +1,20 @@
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>$WikiTitle | {$Group} / {$Title}</title>
<link rel='stylesheet' href='$SkinDirUrl/print.css' type='text/css' />
<!--HTMLHeader-->
</head>
<body>
<div id='printhead'>
<h3>$[From $WikiTitle]</h3>
<h1 class='pagename'><a href='$ScriptUrl/{$Group}'>{$Group}: {$Title}</a></h1>
</div>
<!--PageText-->
<div id='printfoot'>
<div class='from'>$[Retrieved from {$PageUrl}]</div>
<div class='lastmod'>$[Page last modified on {$LastModified}]</div></div>
<!--HTMLFooter-->
</body>
</html>