I'm using the Simple Sunset theme and noticed that the footer section has a link for 'login'. However, even when logged in currently, it does not change to 'logout'.
In the Menu tree, it shows 'login' when not logged in and changes to 'logout' when logged in. How do I add this to the footer?
Thanks.
Offline
Darryl,
In fact the problem is not in the theme "Simple Sunset".
The origin is in the theme parent "Simple".
To fix this issue:
In the folder "Simple\template", in the file footer.tpl you can change
- <a href="{$U_LOGIN}" rel="nofollow">{'Login'|@translate}</a>
by
{if isset($U_LOGIN)}
- <a href="{$U_LOGIN}" rel="nofollow">{'Login'|@translate}</a></li>
{/if}
{if isset($U_LOGOUT)}
- <a href="{$U_LOGOUT}">{'Logout'|@translate}</a></li>
{/if}
It’s ok on my site.
Offline
thanks for the correction gbo :-)
Offline
Thanks gbo. That seems to have worked just as I wanted.
I have one more related question, if I may.
Is there a way to have text show up in the footer based on who is currently logged it?
For example, if logged in using the admin account, display a link to the Admin page?
{if isset($U_LOGIN_AS_ADMIN)}
- <a href="{$U_LOGIN_AS_ADMIN}" rel="nofollow">{'Admin'|@translate}</a></li>
{/if}
{if isset($U_LOGOUT)}
- <a href="{$U_LOGOUT}">{''|@translate}</a></li>
{/if}
Offline
Disregard. I found the tag that I needed.
{if isset($U_ADMIN)}
- <a href="{$U_ADMIN}">{'Administration'|@translate}</a></li>
{/if}
Thanks!
Offline