fixing sitemap
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 10 Sep 2013 15:05:34 +0000 (15:05 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 10 Sep 2013 15:05:34 +0000 (15:05 +0000)
Toolkit/Template/Page/SiteMap.php

index 3418ede..bcf055f 100644 (file)
@@ -15,9 +15,9 @@
 
 /**
  * Toolkit_Template_Page_SiteMap
- * 
+ *
  * Description of Toolkit_Template_Page_SiteMap
- * 
+ *
  * @category  Toolkit
  * @package   Template/Page
  * @author    Jamie Kahgee <steve@gaslightmedia.com>
@@ -32,15 +32,15 @@ class Toolkit_Template_Page_SiteMap
 
     /**
      * PDO
-     * 
+     *
      * @var PDO
      * @access private
      */
        private $_dbh;
-    
+
     /**
      * description of $_pageGateway
-     * 
+     *
      * @var string
      * @access private
      */
@@ -51,10 +51,10 @@ class Toolkit_Template_Page_SiteMap
 
     /**
      * Class constructor
-     * 
+     *
      * @param PDO    $dbh          PDO
      * @param string $pageGatweway Page Gateway
-     * 
+     *
      * @access public
      */
        public function __construct(PDO $dbh, $pageGatweway)
@@ -69,13 +69,13 @@ class Toolkit_Template_Page_SiteMap
 
     /**
      * Description of getContent()
-     * 
-     * @return HTML_Template_Flexy 
+     *
+     * @return HTML_Template_Flexy
      * @access public
      */
        public function getContent()
        {
-        $GLOBALS['styleSheets'][] = BASE_URL . 'css/siteMap.css'; 
+        $GLOBALS['styleSheets'][] = BASE_URL . 'css/siteMap.css';
         $navArray = $this->getNavArray(0);
         $page     = new stdClass();
         $tpl      = new HTML_Template_Flexy(
@@ -87,26 +87,26 @@ class Toolkit_Template_Page_SiteMap
        }
 
        //      }}}
-    
+
     /**
      * Description of getNavArray
-     * 
+     *
      * @param string $parent Parent
-     * 
+     *
      * @return array
      * @throws Toolkit_Template_Exception
-     * @access public 
+     * @access public
      */
     public function getNavArray($parent)
     {
         $where = '';
-               if (   defined('MEMBERS_CATEGORY')
-                       && defined('MEMBERS_DB')
-                       && MEMBERS_DB
-               ) {
-                       $where = 'AND id != ' . MEMBERS_CATEGORY;
-               }
-        
+//             if (   defined('MEMBERS_CATEGORY')
+//                     && defined('MEMBERS_DB')
+//                     && MEMBERS_DB
+//             ) {
+//                     $where = 'AND id != ' . MEMBERS_CATEGORY;
+//             }
+
         try {
             $sql = "
                 SELECT id, navigation_name, parent