X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;ds=inline;f=application%2Fviews%2Fhelpers%2FFooterLink.php;h=1e9365b6e3115346706fb0b4f2de865d2c9f3060;hb=6633e95b89c1d1eba9b7b0e612becaf11b085d69;hp=529221d8a081a1975731532189d9ec142d348b28;hpb=190fd621df4920c56a422c03663874cddaa67d64;p=syj.git diff --git a/application/views/helpers/FooterLink.php b/application/views/helpers/FooterLink.php index 529221d..1e9365b 100644 --- a/application/views/helpers/FooterLink.php +++ b/application/views/helpers/FooterLink.php @@ -1,25 +1,26 @@ isActive()) { $link = $this->view->escape($text); } else { $href = $page->getHRef(); if ($redirect) { - $currentUri = Zend_Controller_Front::getInstance()->getRequest()->getRequestUri(); - if (strpos($currentUri, '?') !== false) { - $currentUri = strstr($currentUri, '?', true); - } + $currentUri = $this->view->UriPath(true); $href = $this->view->addParamToUrl($href, 'redirect', $currentUri, true); } $link = $this->view->anchor($href, $text, array('class' => 'footer-anchor')); } - return '
' . PHP_EOL; + $class = "footer-link"; + if (isset($extraclass)) { + $class = "$class $extraclass"; + } + return '