Hierarchy fixup
[mirrors/Kyberia-bloodline.git] / wwwroot / smarty / Smarty-2.6.10 / libs / plugins / modifier.wordwrap.php
diff --git a/wwwroot/smarty/Smarty-2.6.10/libs/plugins/modifier.wordwrap.php b/wwwroot/smarty/Smarty-2.6.10/libs/plugins/modifier.wordwrap.php
new file mode 100644 (file)
index 0000000..b9a9fe9
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+/**
+ * Smarty plugin
+ * @package Smarty
+ * @subpackage plugins
+ */
+
+
+/**
+ * Smarty wordwrap modifier plugin
+ *
+ * Type:     modifier<br>
+ * Name:     wordwrap<br>
+ * Purpose:  wrap a string of text at a given length
+ * @link http://smarty.php.net/manual/en/language.modifier.wordwrap.php
+ *          wordwrap (Smarty online manual)
+ * @param string
+ * @param integer
+ * @param string
+ * @param boolean
+ * @return string
+ */
+function smarty_modifier_wordwrap($string,$length=80,$break="\n",$cut=false)
+{
+    return wordwrap($string,$length,$break,$cut);
+}
+
+?>
This page took 0.120157 seconds and 4 git commands to generate.