From: Jason Woofenden Date: Tue, 2 Jun 2009 11:19:12 +0000 (-0400) Subject: added enc_s() X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=7f42492ea33a8d43ee12089b97bd8c0693b293e0 added enc_s() --- diff --git a/encode.php b/encode.php index 9aa09a6..cd1e0b4 100644 --- a/encode.php +++ b/encode.php @@ -370,3 +370,12 @@ function enc_thumb_height($str) { list($a, $b, $c, $src, $width, $height) = explode(' ', $str); return $height; } + +# example template: Length: ~length.html~ day~length.s~ +function enc_s($str) { + if($str == '1') { + return ''; + } + + return 's'; +}