/*
* main page link
*/
-$page = new Zend_Navigation_Page_Mvc(array(
- 'route' => 'idx',
- 'params' => array(
- 'action' => 'index',
- 'controller' => 'idx',
- 'url' => '')));
$front = Zend_Controller_Front::getInstance();
$reqParams = $front->getRequest()->getParams();
if ($reqParams['controller'] == 'idx' and (!isset($reqParams['url']))) {
- $current = true;
+ $mainpage = true;
} else {
- $current = false;
+ $mainpage = false;
}
-$mainpage = $current;
-
$content = $this->translate("main page");
-$link = ($current) ? $this->escape($content) : $this->anchor($page->getHRef(), $content, array('class' => 'footer-anchor'));
+$link = ($mainpage) ? $this->escape($content) : $this->anchor($this->baseUrl(), $content, array('class' => 'footer-anchor'));
echo '<div class="footer-link">' . $link . '</div>' . PHP_EOL;
/*