From c8b1c298cd04e96e9c64b52380ef6828fa8ba73a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 1 Apr 2006 05:33:32 +0000 Subject: [PATCH] Adding skeleton for the navigation printer --- printer.php | 6 +++ printer_navigation.php | 91 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 printer_navigation.php diff --git a/printer.php b/printer.php index 93b731d..bf605c8 100644 --- a/printer.php +++ b/printer.php @@ -37,6 +37,7 @@ * if the page header has already been printed * ISSO_PRINTER_HIDE_SETUP - Will stop the page footer data (copyright and debug * box) from being printed +* ISSO_PRINTER_NO_NAVIGATION - Do not show the navigation frame from ISSO.Printer.Navigation * * Hooks: * $this->page_start_hook - Define function to echo() data after the page header @@ -309,6 +310,11 @@ JS; echo "
\n\n\n"; + if ($this->registry->is_loaded('Printer_Navigation') AND (!defined('ISSO_PRINTER_NO_NAVIGATION') OR (defined('ISSO_PRINTER_NO_NAVIGATION') AND constant('ISSO_PRINTER_NO_NAVIGATION') == true))) + { + echo $this->registry->modules['printer_navigation']->generate_head_html(); + } + if (!defined('ISSO_PRINTER_DONE_HEADER')) { define('ISSO_PRINTER_DONE_HEADER', 1); diff --git a/printer_navigation.php b/printer_navigation.php new file mode 100644 index 0000000..2d398f8 --- /dev/null +++ b/printer_navigation.php @@ -0,0 +1,91 @@ +registry =& $registry; + } + + // ################################################################### + /** + * (PHP 4) Constructor + */ + function Printer_Navigation(&$registry) + { + $this->__construct($registry); + } + + // ################################################################### + /** + * Generates the header HTML that is called in ISSO.Printer->page_start() + * to setup the navigation frame + * + * @access public + * + * @return string Generated HTML content + */ + function generate_header_html() + { + return $output; + } +} + +/*=====================================================================*\ +|| ################################################################### +|| # $HeadURL$ +|| # $Id$ +|| ################################################################### +\*=====================================================================*/ +?> \ No newline at end of file -- 2.22.5