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