/** * Determines whether this nav item is the current page the user is on. * * @param \Concrete\Core\Page\Page $c The page object for the current page * * @return bool */ public function isActive(&$c) { if ($c) { $cID = $c->getCollectionPointerID() > 0 ? $c->getCollectionPointerOriginalID() : $c->getCollectionID(); return $cID == $this->cID; } }
/** * Returns the collection ID for the aliased page (returns 0 unless used on an actual alias). * * @return int */ public function getCollectionPointerID() { return parent::getCollectionPointerID(); }