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
548 B

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