*/ function register(Doku_Event_Handler $controller) { $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'handle_toolbar', array()); } function handle_toolbar(&$event, $param) { $event->data[] = array( 'type' => 'picker', 'title' => $this->getLang('note_picker'), 'icon' => '../../plugins/note/images/note_picker.png', 'list' => array( array( 'type' => 'format', 'title' => $this->getLang('tb_grey_note'), 'icon' => '../../plugins/note/images/tb_grey_note.png', 'open' => '', 'close' => '', ), array( 'type' => 'format', 'title' => $this->getLang('tb_blue_note'), 'icon' => '../../plugins/note/images/tb_blue_note.png', 'open' => '', 'close' => '', ), array( 'type' => 'format', 'title' => $this->getLang('tb_yellow_note'), 'icon' => '../../plugins/note/images/tb_yellow_note.png', 'open' => '', 'close' => '', ), array( 'type' => 'format', 'title' => $this->getLang('tb_green_note'), 'icon' => '../../plugins/note/images/tb_green_note.png', 'open' => '', 'close' => '', ), array( 'type' => 'format', 'title' => $this->getLang('tb_red_note'), 'icon' => '../../plugins/note/images/tb_red_note.png', 'open' => '', 'close' => '', ), array( 'type' => 'format', 'title' => $this->getLang('tb_orange_note'), 'icon' => '../../plugins/note/images/tb_orange_note.png', 'open' => '', 'close' => '', ), array( 'type' => 'format', 'title' => $this->getLang('tb_purple_note'), 'icon' => '../../plugins/note/images/tb_purple_note.png', 'open' => '', 'close' => '', ), array( 'type' => 'format', 'title' => $this->getLang('tb_brown_note'), 'icon' => '../../plugins/note/images/tb_brown_note.png', 'open' => '', 'close' => '', ), array( 'type' => 'format', 'title' => $this->getLang('tb_black_note'), 'icon' => '../../plugins/note/images/tb_black_note.png', 'open' => '', 'close' => '', ), ) ); } }