09-22-2016, 10:19 PM
Ahh. I see what you're saying. You only want a particular element of the page to be shown if you are an admin. That is very similar to the way we do the menus.
Whatever you want to "hide" for non admin users, wrap the entire thing in this statement...
//Your php/html code here
Whatever you want to "hide" for non admin users, wrap the entire thing in this statement...
Code:
<?php if (checkMenu(2,$user->data()->id)){
Code:
} ?>