register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'handle_toolbar', array ()); } function handle_toolbar(Doku_Event $event, $param) { $event->data[] = array ( 'type' => 'picker', 'title' => $this->getLang('picker'), 'icon' => '../../plugins/pot/images/pot.png', 'list' => array( array( 'type' => 'format', 'title' => $this->getLang('formula'), 'icon' => '../../plugins/pot/images/pot_formula.png', 'open' => '', 'close' => '', 'sample' => '1', ), array( 'type' => 'format', 'title' => $this->getLang('text'), 'icon' => '../../plugins/pot/images/pot_text.png', 'open' => '', 'close' => '', 'sample' => 'my text', ), array( 'type' => 'format', 'title' => $this->getLang('table'), 'icon' => '../../plugins/pot/images/pot_table.png', 'open' => '', 'close' => '', 'sample' => '1000.00 * -2', ), array( 'type' => 'format', 'title' => $this->getLang('hidden'), 'icon' => '../../plugins/pot/images/pot_hidden.png', 'open' => '', 'close' => '', 'sample' => '1', ), array( 'type' => 'format', 'title' => $this->getLang('set'), 'icon' => '../../plugins/pot/images/pot_set.png', 'open' => '', 'close' => '', 'sample' => 'hidden', ), ) ); } }