X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Flayouts%2Fscripts%2Ffooter.phtml;h=08b2ff95e67124410037a5aa61b731706c0167f5;hb=f3d301cf61cd09ad9089efb5d016e05ce6318bee;hp=a90874e7219e35e7e2ff8e36e2050d77722966a1;hpb=05ce9238adfa982746bfc6211b240fd24526af09;p=syj.git diff --git a/application/layouts/scripts/footer.phtml b/application/layouts/scripts/footer.phtml index a90874e..08b2ff9 100644 --- a/application/layouts/scripts/footer.phtml +++ b/application/layouts/scripts/footer.phtml @@ -14,7 +14,7 @@ if ($reqParams['controller'] == 'idx' and (!isset($reqParams['url']))) { $mainpage = false; } -$content = $this->translate("main page"); +$content = $this->translate("create a route"); $link = ($mainpage) ? $this->escape($content) : $this->anchor($this->baseUrl(), $content, array('class' => 'footer-anchor')); echo '' . PHP_EOL; @@ -29,24 +29,30 @@ 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'); +} + +/* + * 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',