* Name: yes_no
* Date: Apr 18, 2005
* Purpose: convert \r\n, \r or \n to <
>
* Input:
* Example: {$text|yes_no}
* @link http://smarty.php.net/manual/en/language.modifier.nl2br.php
* nl2br (Smarty online manual)
* @version 1.0
* @author
* @param string
* @return string
*/
function smarty_modifier_yes_no($string)
{
if ( intval($string) ) {
return 'Yes';
} else {
return 'No';
}
}
/* vim: set expandtab: */
?>