Advertisement
Guest User

plugin

a guest
Nov 11th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. $e = $modx->event;
  2. $user = $modx->userLoggedIn();
  3. $data = $modx->getUserInfo($user['id']);
  4.  
  5. # Скрыть из верхнего меню то что нам не нужно.
  6. if ( $e->name == 'OnManagerMenuPrerender' AND $data['id'] == 5 ) {
  7. $ph['users'] = '';
  8. $ph['client_settings'] = '';
  9. $ph['modules'] = '';
  10.  
  11. $e->output(serialize($ph));
  12. }
  13.  
  14. # Скрыть из левого меню то что нам не нужно.
  15. if ($e->name == 'OnManagerTreeInit' AND $data['id'] == 5) {
  16. $out = '
  17. <style type="text/css">
  18. div#node1 {display: none;}
  19. div#node2 {display: none;}
  20. </style>
  21. ';
  22. $e->output($out);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement