1<?php
2
3/**
4 * DokuWiki Plugin imagemap (Action Component)
5 *
6 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
7 * @author  Alexander Weggerle <AlexanderWeggerle.de>
8 */
9class action_plugin_imagemapping extends DokuWiki_Action_Plugin
10{
11
12    public function register(Doku_Event_Handler $controller)
13    {
14
15        $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'handle_toolbar_define');
16
17    }
18
19
20
21    public function handle_toolbar_define(Doku_Event &$event, $param)
22    {
23
24        $event->data[] = [
25            'type' => 'imagemap',
26            'title' => $this->getLang('js')['title'],
27            'icon' => '../../plugins/imagemapping/map.png',
28        ];
29    }
30
31}
32