From: Steve Sutton Date: Thu, 7 Jan 2016 19:53:41 +0000 (-0500) Subject: Updates for their new blog site X-Git-Tag: v1.3.10^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=71379cf5a3fc4f3c8c1c6c1a7eae24e77e508035;p=web%2FKeweenaw.git Updates for their new blog site Make some functions public so can be accessed from the proxy files. --- diff --git a/Toolkit/Page.php b/Toolkit/Page.php index 90686e9..b20f5fd 100755 --- a/Toolkit/Page.php +++ b/Toolkit/Page.php @@ -608,7 +608,7 @@ class Toolkit_Page * * @return type */ - private function _getMainNav($catid) + public function _getMainNav($catid) { $sideNav = new Toolkit_Template_Navigation_AllInOneSideNav( $this->_pageGateway @@ -618,7 +618,7 @@ class Toolkit_Page return ($html) ? $html : ''; } - private function _getMainNavigation() + public function _getMainNavigation() { $seasonImages = $this->seasonImages; if (defined('MAIN_LEVEL_NAV_ARRAY') && MAIN_LEVEL_NAV_ARRAY) { @@ -668,7 +668,7 @@ class Toolkit_Page return ($html) ? $html : ''; } - private function _getMobileNavigation() + public function _getMobileNavigation() { if (defined('MAIN_LEVEL_NAV_ARRAY') && MAIN_LEVEL_NAV_ARRAY) { $mainNavArray = unserialize(MAIN_LEVEL_NAV_ARRAY); diff --git a/nav.php b/nav.php new file mode 100644 index 0000000..4591ede --- /dev/null +++ b/nav.php @@ -0,0 +1,32 @@ +mainNav = $glmPage->_getMainNav(2); + $glmPage->mobileNav = $glmPage->_getMobileNavigation(); + $glmPage->mainNavigationUl = $glmPage->_getMainNavigation(); + echo $glmPage->mainNavigationUl; +// echo $glmPage->mobileNav; +?> diff --git a/off-canvas-nav.php b/off-canvas-nav.php new file mode 100644 index 0000000..de10e3f --- /dev/null +++ b/off-canvas-nav.php @@ -0,0 +1,29 @@ +mobileNav = $glmPage->_getMobileNavigation(); + echo $glmPage->mobileNav; +?>