Adding skeleton for the navigation printer
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 1 Apr 2006 05:33:32 +0000 (05:33 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 1 Apr 2006 05:33:32 +0000 (05:33 +0000)
printer.php
printer_navigation.php [new file with mode: 0644]

index 93b731db489fff394282661c3c6927615fac35be..bf605c88662b6cc9321a9cfcc740f2970f5060c0 100644 (file)
@@ -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 "<div style=\"margin: {$pagemargin}px;\">\n<!-- / page head -->\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 (file)
index 0000000..2d398f8
--- /dev/null
@@ -0,0 +1,91 @@
+<?php
+/*=====================================================================*\
+|| ###################################################################
+|| # Iris Studios Shared Object Framework [#]issoversion[#]
+|| # Copyright ©2002-[#]year[#] Iris Studios, Inc.
+|| #
+|| # This program is free software; you can redistribute it and/or modify
+|| # it under the terms of the GNU General Public License as published by
+|| # the Free Software Foundation; version [#]gpl[#] of the License.
+|| #
+|| # This program is distributed in the hope that it will be useful, but
+|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+|| # more details.
+|| #
+|| # You should have received a copy of the GNU General Public License along
+|| # with this program; if not, write to the Free Software Foundation, Inc.,
+|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+|| ###################################################################
+\*=====================================================================*/
+
+/**
+* Printer - Navigation Generator
+* printer_navigation.php
+*
+* @package     ISSO
+*/
+
+/**
+* Printer - Navigation Generator
+*
+* This framework works in conjunction with ISSO.Printer to generate a page header
+* and sidebar to be used for navigation. You set the navigation array and then can
+* specify a given key to highlight elements. Elements are broken into three types:
+* tabs (top of the page), groups (blocks of link actions), and links
+*
+* @author              Iris Studios, Inc.
+* @copyright   Copyright ©2002 - [#]year[#], Iris Studios, Inc.
+* @version             $Revision$
+* @package             ISSO
+* 
+*/
+class Printer_Navigation
+{
+       /**
+       * Framework registry object
+       * @var  object
+       * @access       private
+       */
+       var $registry = null;
+       
+       // ###################################################################
+       /**
+       * Constructor
+       */
+       function __construct(&$registry)
+       {
+               $this->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