Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $e = $modx->event;
- $user = $modx->userLoggedIn();
- $data = $modx->getUserInfo($user['id']);
- # Скрыть из верхнего меню то что нам не нужно.
- if ( $e->name == 'OnManagerMenuPrerender' AND $data['id'] == 5 ) {
- $ph['users'] = '';
- $ph['client_settings'] = '';
- $ph['modules'] = '';
- $e->output(serialize($ph));
- }
- # Скрыть из левого меню то что нам не нужно.
- if ($e->name == 'OnManagerTreeInit' AND $data['id'] == 5) {
- $out = '
- <style type="text/css">
- div#node1 {display: none;}
- div#node2 {display: none;}
- </style>
- ';
- $e->output($out);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement