Ejemplo n.º 1
0
 public function FooterLink($routeoptions, $text, $redirect = true, $extraclass = null, $extratext = "")
 {
     $page = new Zend_Navigation_Page_Mvc($routeoptions);
     if ($page->isActive()) {
         $link = $this->view->escape($text);
     } else {
         $href = $page->getHRef();
         if ($redirect) {
             $currentUri = $this->view->UriPath(true);
             $href = $this->view->addParamToUrl($href, 'redirect', $currentUri, true);
         }
         $link = $this->view->anchor($href, $text, array('class' => 'footer-anchor'));
     }
     $class = "footer-link";
     if (isset($extraclass)) {
         $class = "{$class} {$extraclass}";
     }
     return '<div class="' . $class . '">' . $link . $extratext . '</div>' . PHP_EOL;
 }