diff options
author | Yaco <franco@reevo.org> | 2022-03-12 03:48:42 +0000 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2022-03-12 03:48:42 +0000 |
commit | 5a2b689265654f704d06eb2ea9ee1b21078edcfc (patch) | |
tree | b52e9ce5c8236d2ecf660950238c2dd3d42ad5d2 /platform/www/lib/plugins/wrap/syntax/divwrap.php | |
parent | 46377a425154286e3072880d55667a18b4518df1 (diff) |
add plugins: wrap, bureaucracy, phpwikify
Diffstat (limited to 'platform/www/lib/plugins/wrap/syntax/divwrap.php')
-rw-r--r-- | platform/www/lib/plugins/wrap/syntax/divwrap.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/platform/www/lib/plugins/wrap/syntax/divwrap.php b/platform/www/lib/plugins/wrap/syntax/divwrap.php new file mode 100644 index 0000000..386c5ff --- /dev/null +++ b/platform/www/lib/plugins/wrap/syntax/divwrap.php @@ -0,0 +1,20 @@ +<?php +/** + * Alternate div syntax component for the wrap plugin + * + * Defines <WRAP> ... </WRAP> syntax + * + * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) + * @author Anika Henke <anika@selfthinker.org> + */ + +require_once(dirname(__FILE__).'/div.php'); + +class syntax_plugin_wrap_divwrap extends syntax_plugin_wrap_div { + + protected $special_pattern = '<WRAP\b[^>\r\n]*?/>'; + protected $entry_pattern = '<WRAP\b.*?>(?=.*?</WRAP>)'; + protected $exit_pattern = '</WRAP>'; + +} + |