From: Steve Sutton Date: Mon, 18 Aug 2014 12:41:30 +0000 (-0400) Subject: clean up X-Git-Tag: V1.0^2~53 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=39cccd219ec6c86b5caa6ee829cdba99bac1d734;p=web%2FKeweenaw.git clean up remove debug code that was commented out --- diff --git a/Toolkit/Page.php b/Toolkit/Page.php index 66723e2..68844eb 100755 --- a/Toolkit/Page.php +++ b/Toolkit/Page.php @@ -189,12 +189,6 @@ class Toolkit_Page private function _video() { - //$GLOBALS['styleSheets'][] - // = GLM_APP_BASE_URL . 'gallery/colorbox/colorbox.css'; - //$GLOBALS['bottomScripts'][] - // = GLM_APP_BASE_URL . 'libjs/plugins/colorbox/1.3.15/jquery.colorbox-min.js'; - //$GLOBALS['bottomScripts'][] - // = BASE_URL . 'Toolkit/Videos/libjs/thickbox.js'; $GLOBALS['bottomScripts'][] = BASE_URL . 'Toolkit/Videos/libjs/videos.js'; $dbh = Toolkit_Database::getInstance(); @@ -461,8 +455,7 @@ class Toolkit_Page $this->toolboxContent = $this->_toolboxPage->getBody( $this->_catid, $bodyFactory ); -// echo '
'.print_r($this->toolboxContent, true).'
';exit; - $page = $this->_pageGateway->find($this->_catid); + $page = $this->_pageGateway->find($this->_catid); $this->topParentId = $this->_pageGateway->findTopParent($this->_catid); // set the metaTags @@ -488,7 +481,8 @@ class Toolkit_Page $this->isHomePage = false; } if ($this->_catid != HOME_ID) { - $this->parentPageId = $this->_pageGateway->findTopParent($this->_catid); + $this->parentPageId + = $this->_pageGateway->findTopParent($this->_catid); $this->pageId = $this->_catid; } $this->_navigationFactory->setGateway($this->_pageGateway); @@ -519,7 +513,6 @@ class Toolkit_Page if ( defined("VIDEOS") && VIDEOS -// && $this->_catid == HOME_ID ) { $this->_video(); } @@ -654,7 +647,6 @@ class Toolkit_Page $newNav[] = $item; } } -// echo '
'.print_r($newNav, true).'
';exit; $html = $this->_arrayToListHTML($newNav, 0, 'left'); return ($html) ? $html : ''; } @@ -683,7 +675,6 @@ class Toolkit_Page $newNav[] = $item; } } -// echo '
'.print_r($newNav, true).'
';exit; $html = $this->_arrayToListHTML($newNav, 0, 'off-canvas-list', true); return ($html) ? $html : ''; } @@ -721,9 +712,7 @@ class Toolkit_Page ? ' class="'.$className.'"' : ' class="dropdown"'; } - $styleCode = '';//($backgroundImage) -// ? 'style="background-image: url('.$backgroundImage.');"' -// : ''; + $styleCode = ''; $result = "{$tabs}\n"; if ($backgroundImage) { $result .= ''; @@ -928,7 +917,6 @@ class Toolkit_Page = $blocks->getPageBlocksAsArray((int)$parentId); $cache->save(serialize($this->headlines), $parentId, 'Block'); } -// echo '
'.print_r($this->headlines, true).'
';exit; $this->hasHeadlines = !empty($this->headlines); }