dokuwiki-source-plugin – Diff between revs 3 and 4

Subversion Repositories:
Rev:
Show entire fileRegard whitespace
Rev 3 Rev 4
Line 3... Line 3...
3 * Source Plugin: includes a source file using the geshi highlighter 3 * Source Plugin: includes a source file using the geshi highlighter
4 * 4 *
5 * Action plugin component, for cache validity determination 5 * Action plugin component, for cache validity determination
6 * 6 *
7 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 7 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 * @author Wizardry and Steamworks office@grimore.org -  
9 * original: Christopher Smith <chris@jalakai.co.uk> 8 * @author Christopher Smith <chris@jalakai.co.uk>
10 */ 9 */
11 if(!defined('DOKU_INC')) die(); // no Dokuwiki, no go 10 if(!defined('DOKU_INC')) die(); // no DokuWiki, no go
Line 12... Line 11...
12   11
13 if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 12 if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
Line 14... Line 13...
14 require_once(DOKU_PLUGIN.'action.php'); 13 require_once(DOKU_PLUGIN.'action.php');
Line 22... Line 21...
22 /** 21 /**
23 * return some info 22 * return some info
24 */ 23 */
25 function getInfo(){ 24 function getInfo(){
26 return array( 25 return array(
27 'author' => 'Wizardry and Steamworks', 26 'author' => 'Christopher Smith',
28 'email' => 'office@grimore.org', 27 'email' => 'chris@jalakai.co.uk',
29 'date' => '2016-11-19', 28 'date' => '2008-08-13',
30 'name' => 'Source Plugin', 29 'name' => 'Source Plugin',
31 'desc' => 'Include a remote source file', 30 'desc' => 'Include a remote source file',
32 'url' => 'http://grimore.org/dokuwiki/plugins/source', 31 'url' => 'http://www.dokuwiki.org/plugin:source',
33 ); 32 );
34 } 33 }
Line 35... Line 34...
35   34
36 /** 35 /**
37 * plugin should use this method to register its handlers with the dokuwiki's event controller 36 * plugin should use this method to register its handlers with the DokuWiki's event controller
38 */ 37 */
39 function register(Doku_Event_Handler $controller) { 38 function register(Doku_Event_Handler $controller) {
40 $controller->register_hook('PARSER_CACHE_USE','BEFORE', $this, '_cache_prepare'); 39 $controller->register_hook('PARSER_CACHE_USE','BEFORE', $this, '_cache_prepare');
Line 98... Line 97...
98 } 97 }
Line 99... Line 98...
99   98
Line 100... Line 99...
100 } 99 }
101   100
-   101 //Setup VIM: ex: et ts=4 enc=utf-8 :