plugin:fortune
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:fortune [2020-10-01 00:13] – old revision restored (2018-05-31 00:15) Klap-in | plugin:fortune [2022-01-29 13:45] – [Description] patric | ||
---|---|---|---|
Line 22: | Line 22: | ||
The plugin uses code written by Henrik Aasted Sorensen, henrik@aasted.org Read more at http:// | The plugin uses code written by Henrik Aasted Sorensen, henrik@aasted.org Read more at http:// | ||
- | Fortune files can be found e.g. from [[http:// | + | Fortune files can be found e.g. from [[http:// |
===== Usage ===== | ===== Usage ===== | ||
Line 52: | Line 52: | ||
* @author | * @author | ||
*/ | */ | ||
- | |||
- | if(!defined(' | ||
- | if(!defined(' | ||
- | require_once(DOKU_PLUGIN.' | ||
/** | /** | ||
Line 109: | Line 105: | ||
* Handle the match | * Handle the match | ||
*/ | */ | ||
- | function handle($match, | + | function handle($match, |
return $match; | return $match; | ||
} | } | ||
Line 116: | Line 112: | ||
* Create output | * Create output | ||
*/ | */ | ||
- | function render($mode, | + | function render($mode, |
if($mode == ' | if($mode == ' | ||
Line 325: | Line 321: | ||
} | } | ||
}// End of class | }// End of class | ||
- | ?> | ||
</ | </ | ||
plugin/fortune.txt · Last modified: 2024-03-01 12:49 by Aleksandr