summaryrefslogtreecommitdiff
path: root/platform/www/lib/plugins/wrap/syntax/divblock.php
diff options
context:
space:
mode:
Diffstat (limited to 'platform/www/lib/plugins/wrap/syntax/divblock.php')
-rw-r--r--platform/www/lib/plugins/wrap/syntax/divblock.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/platform/www/lib/plugins/wrap/syntax/divblock.php b/platform/www/lib/plugins/wrap/syntax/divblock.php
new file mode 100644
index 0000000..9bac053
--- /dev/null
+++ b/platform/www/lib/plugins/wrap/syntax/divblock.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * Alternate div syntax component for the wrap plugin
+ *
+ * Defines <block> ... </block> 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_divblock extends syntax_plugin_wrap_div {
+
+ protected $special_pattern = '<block\b[^>\r\n]*?/>';
+ protected $entry_pattern = '<block\b.*?>(?=.*?</block>)';
+ protected $exit_pattern = '</block>';
+
+
+}
+