From 09b1f685a64bc4337f0cc7e37f7405f85f8e81e1 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 4 Jun 2013 15:06:12 +0000 Subject: [PATCH] remove event bread crumbs --- Toolkit/Template/BreadCrumbs.php | 49 +------------------------------- 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/Toolkit/Template/BreadCrumbs.php b/Toolkit/Template/BreadCrumbs.php index fc6162f..fb1035b 100644 --- a/Toolkit/Template/BreadCrumbs.php +++ b/Toolkit/Template/BreadCrumbs.php @@ -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 = ''.$page['navigation_name'].''; - array_unshift($stack, $anchor); - } else { + } else { array_unshift($stack, $page['navigation_name']); } $parent = $page['parent']; -- 2.17.1