ewiki info
READMEChangeLog
project site
fm project page
secondary site
|
|
your own block markup pluginOf course a _block plugin is a bit more complicated than a action
or page plugin, but generally you only need this small stub:
$ewiki_plugins["format_block"]["your"] = "your_block_func";
$ewiki_config["format_block"]["your"] = array(
"<your>",
"</your>",
false, // no special filter rule/flag
0x0014 // see above, often also just 0x0000
);
function your_block_func(&$str, &$in, &$iii, &$s, $btype) {
...
}
Where you would just rework the conents of "$str", which will be
the text part in between the <your> and </your> tags as defined
by the $ewiki_config[] block plugin settings. The other variables
in that API aren't normally important.
You only must take care, that "<", ">" and "&" are still encoded
in htmlentities() at this stage.
prev << "$iii[] and $ooo[] block flags"next >> "xpi plugin system" You cannot modify the INTERNALS file, but anyhow any ideas or suggestion should as usually get filed on BugReports, UserSuggestions or even better the INTERNALS.Discussion. |