* Name: vertical
* Date: Oct 20, 2008
* Purpose: Vertical Word
* Input:
* - contents = contents to replace
* - preceed_test = if true, includes preceeding break tags
* in replacement
* Example: {$text|nl2br}
* @link http://smarty.php.net/manual/en/language.modifier.nl2br.php
* nl2br (Smarty online manual)
* @version 1.0
* @author Revolution
* @param string
* @return string
*/
function smarty_modifier_vertical($string)
{
$retour = "";
for ($i = 0; $i < strlen($string); $i++)
$retour .= $string{$i}."
";
return ($retour);
}
/* vim: set expandtab: */
?>