1<?php 2/** 3 * DokuWiki Plugin textrotate (Action Component) 4 * 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author lisps 7 * @author peterfromearth 8 */ 9 10class action_plugin_textrotate extends DokuWiki_Action_Plugin { 11 /** 12 * Register the eventhandlers 13 */ 14 function register(Doku_Event_Handler $controller) { 15 $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array ()); 16 17 } 18 19 /** 20 * Inserts the toolbar button 21 */ 22 function insert_button(Doku_Event $event, $param) { 23 $event->data[] = array( 24 'type' => 'format', 25 'title' => 'Vertikaler Text generieren', 26 'icon' => '../../plugins/textrotate/textrotate.png', 27 'sample'=> 'Vertikaler Text', 28 'open' => '!!', 29 'close' =>'!!', 30 'insert'=>'', 31 ); 32 } 33} 34