How to display different links for logged in and logged out users?

前端 未结 8 975
天涯浪人
天涯浪人 2021-01-26 02:23

When a user is not logged in I am trying to show

Support || Log In

When they are logged out it should say

Support || Log Out 
<         


        
8条回答
  •  南笙
    南笙 (楼主)
    2021-01-26 02:45

    What about the following?

    
    

    I moved the php if statements so you don't get empty li elements. You should still do the escaping that others have noticed.

提交回复
热议问题