Add class current to the currently selected page link.
}
$this->pageTitle = $this->_getPageTitle($this->_catid);
$this->pageTitleShort = $this->_getPageTitleShort($this->_catid);
-
+
$bodyFactory = new Toolkit_Template_Page_BodyFactory(
$this->_breadCrumbs,
$this->_pageGateway,
$classes[] = $node['class'];
}
}
+ if ($this->_catid == $node['id']) {
+ $class = ' class="current"';
+ }
if (!empty($node['pages'])) {
$classes[] = 'has-dropdown';
return $title;
}
-
+
/**
* Returns page title
*