plugin:pagetemplate:listing
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:pagetemplate:listing [2011-07-11 23:02] – [/lib/plugins/pagetemplate/action.php] 70.25.127.226 | plugin:pagetemplate:listing [2023-09-01 15:16] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | + | < | |
==== Manual Installation === | ==== Manual Installation === | ||
Line 17: | Line 16: | ||
*/ | */ | ||
- | if(!defined(' | ||
- | if(!defined(' | ||
- | require_once(DOKU_PLUGIN.' | ||
- | require_once(DOKU_INC.' | ||
- | require_once(DOKU_INC.' | ||
- | require_once(DOKU_INC.' | ||
require_once(' | require_once(' | ||
Line 31: | Line 24: | ||
*/ | */ | ||
function getInfo(){ | function getInfo(){ | ||
- | return | + | return |
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | ' |
- | ); | + | ]; |
} | } | ||
Line 43: | Line 36: | ||
* Register its handlers with the dokuwiki' | * Register its handlers with the dokuwiki' | ||
*/ | */ | ||
- | function register(&$controller) { | + | function register(Doku_Event_Handler |
$controller-> | $controller-> | ||
$controller-> | $controller-> | ||
} | } | ||
| | ||
- | function _removeTemplate(&$event, $param) { | + | function _removeTemplate($event, |
$page = getID(); | $page = getID(); | ||
$theTemplate = _templateFN($page); | $theTemplate = _templateFN($page); | ||
Line 65: | Line 58: | ||
* Hooked into a newly created page (as editor boots up). | * Hooked into a newly created page (as editor boots up). | ||
*/ | */ | ||
- | function _generateTemplate(&$event, $param) { | + | function _generateTemplate($event, |
// page already exists? | // page already exists? | ||
$page = getID(); | $page = getID(); | ||
Line 158: | Line 151: | ||
//add modes to parser | //add modes to parser | ||
- | $pagetemplate_obj =& plugin_load(' | + | $pagetemplate_obj = plugin_load(' |
$std_modes = array(' | $std_modes = array(' | ||
' | ' | ||
Line 184: | Line 177: | ||
====/ | ====/ | ||
- | <code php> | + | <file php pagetemplate_backlinks.php> |
<?php | <?php | ||
// High performance pagetemplate backlink | // High performance pagetemplate backlink | ||
// subsystem | // subsystem | ||
// @author 'Luke Howson' | // @author 'Luke Howson' | ||
- | |||
- | if(!defined(' | ||
class PageTemplateBacklink { | class PageTemplateBacklink { | ||
Line 293: | Line 284: | ||
| | ||
//add modes to parser | //add modes to parser | ||
- | $pagetemplate_obj =& plugin_load(' | + | $pagetemplate_obj = plugin_load(' |
$std_modes = array(' | $std_modes = array(' | ||
' | ' | ||
Line 316: | Line 307: | ||
} | } | ||
- | </code> | + | </file> |
==== / | ==== / | ||
- | <code php> | + | <file php syntax.php> |
<?php | <?php | ||
/** | /** | ||
Line 328: | Line 319: | ||
* @author | * @author | ||
*/ | */ | ||
- | if(!defined(' | ||
- | if(!defined(' | ||
- | require_once(DOKU_PLUGIN.' | ||
require_once(' | require_once(' | ||
Line 418: | Line 406: | ||
* @return | * @return | ||
*/ | */ | ||
- | function handle($match, | + | function handle($match, |
switch ($state) { | switch ($state) { | ||
case DOKU_LEXER_ENTER: | case DOKU_LEXER_ENTER: | ||
Line 474: | Line 462: | ||
* @return | * @return | ||
*/ | */ | ||
- | function render($format, | + | function render($format, |
if ($data[0] != ' | if ($data[0] != ' | ||
$pageName = $data[1]; | $pageName = $data[1]; | ||
Line 628: | Line 616: | ||
//Setup VIM: ex: et ts=4 enc=utf-8 : | //Setup VIM: ex: et ts=4 enc=utf-8 : | ||
- | </code> | + | </file> |
plugin/pagetemplate/listing.1310418123.txt.gz · Last modified: 2011-07-11 23:02 by 70.25.127.226