clean up
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 18 Aug 2014 12:41:30 +0000 (08:41 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 18 Aug 2014 12:41:30 +0000 (08:41 -0400)
remove debug code that was commented out

Toolkit/Page.php

index 66723e2..68844eb 100755 (executable)
@@ -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 '<pre>'.print_r($this->toolboxContent, true).'</pre>';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 '<pre>'.print_r($newNav, true).'</pre>';exit;
         $html = $this->_arrayToListHTML($newNav, 0, 'left');
         return ($html) ? $html : '';
     }
@@ -683,7 +675,6 @@ class Toolkit_Page
                 $newNav[] = $item;
             }
         }
-//        echo '<pre>'.print_r($newNav, true).'</pre>';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}<ul{$mainClass}{$styleCode}>\n";
         if ($backgroundImage) {
             $result .= '<li class="mainNavLiImgContainer"><img class="mainNavImg" src="'.$backgroundImage.'" =></li>';
@@ -928,7 +917,6 @@ class Toolkit_Page
                 = $blocks->getPageBlocksAsArray((int)$parentId);
             $cache->save(serialize($this->headlines), $parentId, 'Block');
         }
-//        echo '<pre>'.print_r($this->headlines, true).'</pre>';exit;
         $this->hasHeadlines = !empty($this->headlines);
     }