From: Steve Sutton Date: Thu, 4 Sep 2014 16:25:31 +0000 (-0400) Subject: Update Mobile navigation X-Git-Tag: v1.0^2~3 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=64fbc3d08c1dbf7db07149c6b63f0addcacfb8a2;p=web%2FStIgnaceBudgetHost.git Update Mobile navigation Add class current to the currently selected page link. --- diff --git a/Toolkit/Page.php b/Toolkit/Page.php index 4478769..86a9ced 100755 --- a/Toolkit/Page.php +++ b/Toolkit/Page.php @@ -418,7 +418,7 @@ class Toolkit_Page } $this->pageTitle = $this->_getPageTitle($this->_catid); $this->pageTitleShort = $this->_getPageTitleShort($this->_catid); - + $bodyFactory = new Toolkit_Template_Page_BodyFactory( $this->_breadCrumbs, $this->_pageGateway, @@ -685,6 +685,9 @@ class Toolkit_Page $classes[] = $node['class']; } } + if ($this->_catid == $node['id']) { + $class = ' class="current"'; + } if (!empty($node['pages'])) { $classes[] = 'has-dropdown'; @@ -753,7 +756,7 @@ class Toolkit_Page return $title; } - + /** * Returns page title *