plugin:htag
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:htag [2009-01-25 23:15] – 84.51.133.41 | 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 : | + | tags : |
---- | ---- | ||
Line 20: | Line 20: | ||
===== Description ===== | ===== Description ===== | ||
This is similar to Tony Pujal' | This is similar to Tony Pujal' | ||
- | |||
===== Usage ===== | ===== Usage ===== | ||
h1. A Heading to Rule Them All! | h1. A Heading to Rule Them All! | ||
Line 28: | Line 27: | ||
This syntax breaks compatibility with any code or plugins that manipulate the use of '' | This syntax breaks compatibility with any code or plugins that manipulate the use of '' | ||
- | A demo and plugin download will be made available once I finish deploying my wiki ;P | + | A demo and plugin download will be made available once I finish deploying my wiki ;P FIXME (URL to author' |
===== Installation ===== | ===== Installation ===== | ||
Line 37: | Line 36: | ||
==== Source Code ==== | ==== Source Code ==== | ||
- | <code php> | + | < |
<?php /** | <?php /** | ||
| | ||
Line 47: | 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 61: | Line 56: | ||
' | ' | ||
' | ' | ||
- | ' | + | ' |
); | ); | ||
} | } | ||
Line 79: | 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 87: | 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 111: | 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)**: | ||
Line 131: | Line 127: | ||
Anyone got any ideas what's causing this? | Anyone got any ideas what's causing this? | ||
+ | ==== Error - 10 Feb 2011 ==== | ||
+ | |||
+ | Causes the error : " | ||
+ | on the first load for each page. Refreshing the page will have it come up clean. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | **11 Dec 2011** (kaj.wiik ə iki.fi) | ||
+ | |||
+ | Edit the following lines out (section edit is done now elsewhere): | ||
+ | |||
+ | < | ||
+ | if( $level <= $conf[' | ||
+ | $handler-> | ||
+ | $handler-> | ||
+ | $handler-> | ||
+ | $handler-> | ||
+ | $handler-> | ||
+ | } | ||
+ | </ | ||
+ | |
plugin/htag.1232921745.txt.gz · Last modified: 2009-07-06 19:12 (external edit)