remove event bread crumbs
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 4 Jun 2013 15:06:12 +0000 (15:06 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 4 Jun 2013 15:06:12 +0000 (15:06 +0000)
Toolkit/Template/BreadCrumbs.php

index fc6162f..fb1035b 100644 (file)
@@ -117,59 +117,12 @@ class Toolkit_Template_BreadCrumbs
                 } catch (PDOException $e) {
                     Toolkit_Common::handleError($e);
                 }
-            }
-            if (   defined('EVENT_DB')
-                && EVENT_DB && !$hasCommonEvents
-                && $categoryId = filter_var($_REQUEST['category'], FILTER_VALIDATE_INT)
-            ) {
-                try {
-                    $dbh = Toolkit_Database::getInstance();
-                    $sql = "
-                    SELECT descr
-                      FROM topic
-                     WHERE id = :id";
-                    $stmt = $dbh->prepare($sql);
-                    $stmt->bindParam(
-                        ':id',
-                        $categoryId,
-                        PDO::PARAM_INT
-                    );
-                    $stmt->execute();
-                    $topicHeader = $stmt->fetchColumn();
-                    if ($topicHeader) {
-                        array_unshift($stack, $topicHeader);
-                    }
-                } catch (PDOException $e) {
-                    Toolkit_Common::handleError($e);
-                }
             }
                        $page  = $this->pageGateway->findNavItem($id);
-                       $isSearch = filter_var($_REQUEST['search'], FILTER_VALIDATE_INT);
-                       if ($isSearch && !$eventHeader && !$topicHeader && !$hasCommonEvents) {
-                               array_unshift($stack, 'Events Search');
-                       }
                        $isShortcut = filter_var($_REQUEST['t'], FILTER_SANITIZE_STRING);
-                       if ($isShortcut && !$eventHeader && !$topicHeader && !$hasCommonEvents) {
-                               if ($isShortcut == "today") {
-                                       array_unshift($stack, 'Today');
-                               } else if ($isShortcut == "tomorrow") {
-                                       array_unshift($stack, 'Tomorrow');
-                               } else if ($isShortcut == "next") {
-                                       array_unshift($stack, 'Next 7 Days');
-                               }
-                       }
                        if ($hasPhotoGalleriesOnThisPage) {
                                //      Do Nothing
-            } else if (($eventHeader || $topicHeader || $isSearch || $isShortcut)
-                && !$hasCommonEvents
-            ) {
-                $seoUrl = Toolkit_Template_Page::getSeoUrl(
-                                       $this->pageGateway,
-                                       $id
-                               );
-                               $anchor = '<a href="'.$seoUrl.'">'.$page['navigation_name'].'</a>';
-                               array_unshift($stack, $anchor);
-                       } else {
+            } else {
                                array_unshift($stack, $page['navigation_name']);
                        }
                        $parent = $page['parent'];