![]() |
|
Show/Hide items if Master User - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: Show/Hide items if Master User (/thread-13624.html) |
Show/Hide items if Master User - kjonescubist - 2021-07-30 I'm looking to add a few blocks of text that would only display for the master user. I see there is a class for isMasterUser( $user ). Would that be the best one to use? Show/Hide items if Master User - acrylian - 2021-07-30 On standard theme context use something like this: if(zp_loggedin(ADMIN_RIGHTS) && $_zp_current_admin_obj->master) { … } Within a function * $_zp_current_admin_obj* must be declared global if not already Show/Hide items if Master User - kjonescubist - 2021-08-02 Perfect. Thank you! |