From: Steve Sutton Date: Tue, 10 Sep 2013 15:05:34 +0000 (+0000) Subject: fixing sitemap X-Git-Tag: v1.0~30 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=77438f181ad6f5bd4413f8621799fd3ff998bf08;p=web%2FMichiganTrailMaps.git fixing sitemap --- diff --git a/Toolkit/Template/Page/SiteMap.php b/Toolkit/Template/Page/SiteMap.php index 3418ede..bcf055f 100644 --- a/Toolkit/Template/Page/SiteMap.php +++ b/Toolkit/Template/Page/SiteMap.php @@ -15,9 +15,9 @@ /** * Toolkit_Template_Page_SiteMap - * + * * Description of Toolkit_Template_Page_SiteMap - * + * * @category Toolkit * @package Template/Page * @author Jamie Kahgee @@ -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