From 71379cf5a3fc4f3c8c1c6c1a7eae24e77e508035 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 7 Jan 2016 14:53:41 -0500 Subject: [PATCH] Updates for their new blog site Make some functions public so can be accessed from the proxy files. --- Toolkit/Page.php | 6 +++--- nav.php | 32 ++++++++++++++++++++++++++++++++ off-canvas-nav.php | 29 +++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 nav.php create mode 100644 off-canvas-nav.php 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; +?> -- 2.17.1