1<?php 2/** 3 * Action Component for the Wrap Plugin 4 * 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author Myron Turner<turnermm02@shaw.ca> 7 */ 8 9// must be run within Dokuwiki 10if(!defined('DOKU_INC')) die(); 11 12if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 13require_once(DOKU_PLUGIN.'action.php'); 14 15class action_plugin_skipentity extends DokuWiki_Action_Plugin { 16 17 /** 18 * register the eventhandlers 19 */ 20 function register(Doku_Event_Handler $controller){ 21 $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'handle_started', array ()); 22 } 23 24 function handle_started(Doku_Event $event, $param) { 25 global $JSINFO; 26 27 $multiple = $this->getConf('multiple') ? 1 : 0; 28 $JSINFO['multiple'] = $multiple; 29 30 } 31 32 33} 34 35