X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Flayouts%2Fscripts%2Ffooter.phtml;h=cce5e7fce79304c1d92debe6f9f563e6a83ab835;hb=ec061a75fe57a25eb7ef0894f5e723397ba35472;hp=57678579a13e84612ba057093c207313e61e1206;hpb=8801dcb56378e94adee34527f2228f5ce006cbef;p=syj.git diff --git a/application/layouts/scripts/footer.phtml b/application/layouts/scripts/footer.phtml index 5767857..cce5e7f 100644 --- a/application/layouts/scripts/footer.phtml +++ b/application/layouts/scripts/footer.phtml @@ -29,24 +29,42 @@ echo $this->footerLink(array( isset($this->redirectLinks) ? $this->redirectLinks : true); /* - * login, logout, account links + * account link */ -if ($this->loggedUser) { +if ($mainpage or $this->loggedUser) { echo $this->footerLink(array( 'route' => 'account', 'action' => 'index', 'controller' => 'account'), - $this->translate("my account")); - if (!$mainpage) { + $this->translate("my account"), true, + 'logged-show'); +} + +/* + * list link + */ +if ($mainpage or $this->loggedUser) { + echo $this->footerLink(array( + 'route' => 'list', + 'action' => 'index', + 'controller' => 'list'), + $this->translate("my routes"), false, + 'logged-show'); +} + +/* + * login or logout links + */ +if (!$mainpage) { + if ($this->loggedUser) { + echo $this->footerLink(array( 'route' => 'logout', 'action' => 'logout', 'controller' => 'login'), $this->translate("logout"), false); - } -} else { - if (!$mainpage) { + } else { echo $this->footerLink(array( 'route' => 'login', 'action' => 'login',