X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=inc%2Fsmarty%2Fplugins%2Fmodifier.capitalize.php;fp=inc%2Fsmarty%2Fplugins%2Fmodifier.capitalize.php;h=41d63edafa4c1f629fdb0cd9b076116ff4e0b262;hb=e586807dafc64c3fe152ab518599e6cf3f0f84e1;hp=0000000000000000000000000000000000000000;hpb=bc13d5d6e1834068f8b690c32bba114e352dacdd;p=mirrors%2FKyberia-bloodline.git diff --git a/inc/smarty/plugins/modifier.capitalize.php b/inc/smarty/plugins/modifier.capitalize.php new file mode 100644 index 0000000..41d63ed --- /dev/null +++ b/inc/smarty/plugins/modifier.capitalize.php @@ -0,0 +1,25 @@ + + * Name: capitalize
+ * 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); +} + +?>