plugin:htag
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:htag [2011-12-11 19:38] – [Error - 10 Feb 2011] 86.60.155.79 | plugin:htag [2022-01-12 01:18] (current) – Obsolete Klap-in | ||
---|---|---|---|
Line 7: | Line 7: | ||
type : syntax | type : syntax | ||
lastupdate : 2007-07-23 | lastupdate : 2007-07-23 | ||
- | compatible : 2007-06-26 | + | compatible : 2013-05-10 2012-10-13 2012-01-25 and 2011-05-25 |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : editing, headings | + | tags : editing, headings,!obsolete #as not maintained, no download available |
---- | ---- | ||
Line 36: | Line 36: | ||
==== Source Code ==== | ==== Source Code ==== | ||
- | <code php> | + | < |
<?php /** | <?php /** | ||
| | ||
Line 46: | Line 46: | ||
| | ||
**/ | **/ | ||
- | |||
- | if(!defined(' | ||
- | if(!defined(' | ||
- | require_once(DOKU_PLUGIN.' | ||
class syntax_plugin_htag extends DokuWiki_Syntax_Plugin { | class syntax_plugin_htag extends DokuWiki_Syntax_Plugin { | ||
Line 60: | Line 56: | ||
' | ' | ||
' | ' | ||
- | ' | + | ' |
); | ); | ||
} | } | ||
Line 78: | Line 74: | ||
function getSort() { return 44; } | function getSort() { return 44; } | ||
| | ||
- | function handle( $match, $state, $pos, &$handler ) | + | function handle( $match, $state, $pos, Doku_Handler |
{ | { | ||
global $conf; | global $conf; | ||
Line 86: | Line 82: | ||
$level = substr( $htag[0], 1, 1 ); | $level = substr( $htag[0], 1, 1 ); | ||
- | if( $handler-> | + | if( $handler-> |
if( $level <= $conf[' | if( $level <= $conf[' | ||
- | $handler-> | + | $handler-> |
- | $handler-> | + | $handler-> |
- | $handler-> | + | $handler-> |
- | $handler-> | + | $handler-> |
- | $handler-> | + | $handler-> |
} | } | ||
- | $handler-> | + | $handler-> |
- | $handler-> | + | $handler-> |
- | $handler-> | + | $handler-> |
return true; | return true; | ||
} | } | ||
- | function render( $format, | + | function render( $format, |
{ | { | ||
return true; | return true; | ||
Line 110: | Line 106: | ||
===== Changelog ===== | ===== Changelog ===== | ||
+ | * **Version ..** 2022: some code cleanup, not tested | ||
* **Version 0.95 (2007-07-23)**: | * **Version 0.95 (2007-07-23)**: | ||
* **Version 0.9 (2007-07-17)**: | * **Version 0.9 (2007-07-17)**: |
plugin/htag.1323628726.txt.gz · Last modified: 2011-12-11 19:38 by 86.60.155.79