Hierarchy fixup
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / smarty / node_methodz / modifier.capitalize.php
diff --git a/wwwroot/inc/smarty/node_methodz/modifier.capitalize.php b/wwwroot/inc/smarty/node_methodz/modifier.capitalize.php
new file mode 100644 (file)
index 0000000..41d63ed
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Smarty plugin
+ * @package Smarty
+ * @subpackage plugins
+ */
+
+
+/**
+ * Smarty capitalize modifier plugin
+ *
+ * Type:     modifier<br>
+ * Name:     capitalize<br>
+ * Purpose:  capitalize words in the string
+ * @link http://smarty.php.net/manual/en/language.modifiers.php#LANGUAGE.MODIFIER.CAPITALIZE
+ *      capitalize (Smarty online manual)
+ * @param string
+ * @return string
+ */
+function smarty_modifier_capitalize($string)
+{
+       return ucwords($string);
+}
+
+?>
This page took 0.093125 seconds and 4 git commands to generate.