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.
 
 
 
 
 

27 lines
535 B

  1. <?php
  2. namespace dokuwiki\Menu\Item;
  3. /**
  4. * Class PrintPage
  5. */
  6. class PrintPage extends AbstractItem
  7. {
  8. /** @inheritdoc */
  9. public function __construct()
  10. {
  11. parent::__construct();
  12. if (!in_array('print', explode(',', tpl_getConf('pageIcons')))) {
  13. throw new \RuntimeException("print is not available");
  14. }
  15. unset($this->params['do']);
  16. $this->label = tpl_getLang('print');
  17. $this->svg = tpl_incdir() . 'images/menu/printer.svg';
  18. $this->id = '#';
  19. }
  20. }