Announcement

  •  » Extensions
  •  » [resolved] Simple Sunset Footer

#1 2010-11-30 02:56:04

Darryl
Member
2010-04-27
58

[resolved] Simple Sunset Footer

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

 

#2 2010-11-30 19:57:41

gbo
Member
Martigues
2006-11-01
456

Re: [resolved] Simple Sunset Footer

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

 

#3 2010-11-30 22:15:56

saimon
Member
2006-12-04
184

Re: [resolved] Simple Sunset Footer

thanks for the correction gbo :-)

Offline

 

#4 2010-12-01 01:09:09

Darryl
Member
2010-04-27
58

Re: [resolved] Simple Sunset Footer

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

 

#5 2010-12-01 04:21:54

Darryl
Member
2010-04-27
58

Re: [resolved] Simple Sunset Footer

Disregard. I found the tag that I needed.

    {if isset($U_ADMIN)}
     - <a href="{$U_ADMIN}">{'Administration'|@translate}</a></li>
    {/if}

Thanks!

Offline

 
  •  » Extensions
  •  » [resolved] Simple Sunset Footer

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact