Hi all,

I 'm using the xtemplate theme and I 'd like to add a Login/logout option in the top links. But I want this option to be context-aware, i.e. "Login" if the user is *not* logged in, or "Logout" if the user *is* logged in. I know how to do it with php but it seems that the xtemplate top links do not expect php in it...
Is there some other way to do it?

Thanks in advance,
Yiannis.

Comments

kennysto’s picture

Exactly what i would like to know. Did you manage to find a solution?

peekj’s picture

Does anyone have an answer to this? Can I use php code in xtmpl files? If so, how? I really don't want to start from scratch with a phptemplate....