You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
521 B

  1. <?php
  2. namespace dokuwiki\Menu\Item;
  3. /**
  4. * Class Admin
  5. *
  6. * Opens the Admin screen. Only shown to managers or above
  7. */
  8. class Admin extends AbstractItem
  9. {
  10. /** @inheritdoc */
  11. public function __construct()
  12. {
  13. parent::__construct();
  14. $this->svg = DOKU_INC . 'lib/images/menu/settings.svg';
  15. }
  16. /** @inheritdoc */
  17. public function visibleInContext($ctx)
  18. {
  19. global $INFO;
  20. if (!$INFO['ismanager']) return false;
  21. return parent::visibleInContext($ctx);
  22. }
  23. }