print.php 1.3 KB

1234567891011121314151617181920212223242526272829
  1. <?php if (!defined('PmWiki')) exit();
  2. /* Copyright 2004 Patrick R. Michaud (pmichaud@pobox.com)
  3. This file is part of PmWiki; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published
  5. by the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version. See pmwiki.php for full details.
  7. This script defines additional settings needed when the 'print'
  8. skin is loaded (usually in response to ?action=print, as controlled
  9. by the $ActionSkin['print'] setting. See scripts/skins.php for
  10. more details.
  11. The changes made are:
  12. - Redefines the standard layout to a format suitable for printing
  13. - Redefines internal links to keep ?action=print
  14. - Changes the display of URL and mailto: links
  15. - Uses GroupPrintHeader and GroupPrintFooter pages instead
  16. of GroupHeader and GroupFooter
  17. */
  18. global $LinkPageExistsFmt, $GroupPrintHeaderFmt,
  19. $GroupPrintFooterFmt, $GroupHeaderFmt, $GroupFooterFmt;
  20. $LinkPageExistsFmt = "<a class='wikilink' href='\$PageUrl?action=print'>\$LinkText</a>";
  21. SDV($GroupPrintHeaderFmt,'(:include $Group.GroupPrintHeader:)(:nl:)');
  22. SDV($GroupPrintFooterFmt,'(:nl:)(:include $Group.GroupPrintFooter:)');
  23. $GroupHeaderFmt = $GroupPrintHeaderFmt;
  24. $GroupFooterFmt = $GroupPrintFooterFmt;