X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Flayouts%2Fscripts%2Ffooter.phtml;h=e6d733f349ce274843d3ba9a7932736d5a8c4ee4;hp=fa0450bd3eed8c20a41fc70eccccee4e851fbd45;hb=3613612e1f8a5b1ff659b903eb5a4f1b4e178e66;hpb=41a62d74f105acd6e59c86d42a831559a86177cd diff --git a/application/layouts/scripts/footer.phtml b/application/layouts/scripts/footer.phtml index fa0450b..e6d733f 100644 --- a/application/layouts/scripts/footer.phtml +++ b/application/layouts/scripts/footer.phtml @@ -10,11 +10,8 @@ echo '' . PHP_EOL; $front = Zend_Controller_Front::getInstance(); $reqParams = $front->getRequest()->getParams(); -if ($reqParams['controller'] == 'idx' and (!isset($reqParams['url']))) { - $mainpage = true; -} else { - $mainpage = false; -} + +$mainpage = ($reqParams['controller'] === 'idx') && (!isset($reqParams['url'])); $content = $this->translate("create a route"); $link = ($mainpage) ? $this->escape($content) : $this->anchor($this->baseUrl(), $content, array('class' => 'footer-anchor')); @@ -33,7 +30,7 @@ echo $this->footerLink(array( /* * account link */ -if ($mainpage or $this->loggedUser) { +if ($this->loginform or $this->loggedUser) { echo $this->footerLink(array( 'route' => 'account', 'action' => 'index', @@ -47,7 +44,7 @@ if ($mainpage or $this->loggedUser) { /* * list link */ -if ($mainpage or $this->loggedUser) { +if ($this->loginform or $this->loggedUser) { echo $this->footerLink(array( 'route' => 'list', 'action' => 'index', @@ -59,7 +56,7 @@ if ($mainpage or $this->loggedUser) { /* * login or logout links */ -if (!$mainpage) { +if (!$this->loginform) { if ($this->loggedUser) { echo $this->footerLink(array(