1<?php 2 3if (!defined('DOKU_INC')) die(); 4require_once(__DIR__ . '/../webcomponent.php'); 5 6class action_plugin_webcomponent_blockquote extends DokuWiki_Action_Plugin 7{ 8 9 /** 10 * Toolbar 11 */ 12 function register(Doku_Event_Handler $controller) 13 { 14 $controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'blockquote_button', array()); 15 } 16 17 /** 18 * Inserts a toolbar button 19 */ 20 function blockquote_button(Doku_Event $event, $param) 21 { 22 $event->data[] = array( 23 'type' => 'format', 24 'title' => 'blockquote', 25 'icon' => '../../plugins/' . webcomponent::PLUGIN_NAME . '/images/blockquote-icon.png', 26 'open' => '<blockquote>', 27 'close' => '</blockquote>', 28 29 ); 30 return true; 31 } 32}