27 lines
548 B
PHP
27 lines
548 B
PHP
<?php
|
|
|
|
namespace dokuwiki\Menu\Item;
|
|
|
|
/**
|
|
* Class SendMail
|
|
*/
|
|
class SendMail extends AbstractItem
|
|
{
|
|
|
|
/** @inheritdoc */
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
if (!in_array('send-mail', explode(',', tpl_getConf('pageIcons')))) {
|
|
throw new \RuntimeException("send-mail is not available");
|
|
}
|
|
|
|
unset($this->params['do']);
|
|
|
|
$this->label = tpl_getLang('send_mail');
|
|
$this->svg = tpl_incdir() . 'images/menu/email-plus.svg';
|
|
$this->id = '#';
|
|
}
|
|
}
|