Code: Select all
{% if (headerlink_urls.HEADERLINK_PERMISSION eq '1' and not S_USER_LOGGED_IN) or (headerlink_urls.HEADERLINK_PERMISSION eq '2' and S_USER_LOGGED_IN) or (headerlink_urls.HEADERLINK_PERMISSION eq '4' and U_ACP) or (headerlink_urls.HEADERLINK_PERMISSION eq '5' and U_MCP) or headerlink_urls.HEADERLINK_PERMISSION eq '3'%}
How can I move this from the html file to the php one? I have looked around and can not find what I am looking for so any pointers and/or existing extension doing a similar thing will be most welcome.