1<?php 2 3namespace dokuwiki\plugin\dw2markdown; 4 5use dokuwiki\Menu\Item\AbstractItem; 6 7/** 8 * Class MenuItem 9 * 10 * Implements the Markdown export button for DokuWiki's menu system 11 * 12 * @package dokuwiki\plugin\dw2markdown 13 */ 14class MenuItem extends AbstractItem 15{ 16 17 /** @var string do action for this plugin */ 18 protected $type = 'export_dw2markdown'; 19 20 /** @var string icon file */ 21 protected $svg = __DIR__ . '/file-markdown.svg'; 22 23 /** 24 * Get label from plugin language file 25 * 26 * @return string 27 */ 28 public function getLabel() 29 { 30 $hlp = plugin_load('action', 'dw2markdown'); 31 return $hlp->getLang('export_markdown_button'); 32 } 33} 34