Jump to content

Hamburger replaced by profile photo


kmk
 Share

Recommended Posts

When we use mobile navigating our IPS website, we just can not know by first instance if we already login to, or who is login to. 

I think my below idea bring good change. 

** When is guest navigating, show the traditional hamburger menu. 

** When a members is logged in, show the profile photo and not hamburger icon. 

Now we can see immediately is guest or any member account (obviously is my account) log in. 

Edited by kmk
Link to comment
Share on other sites

Edit template: core -> front -> global -> mobileNavigationIcon

Replace:

<i class='fa fa-navicon'></i>

with:

{{if !\IPS\Member::loggedIn()->member_id}}
	<i class='fa fa-navicon'></i>
{{else}}
	{template="userPhoto" group="global" app="core" params="\IPS\Member::loggedIn(), 'tiny'"}
{{endif}}

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...