X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=encode.php;h=cd1e0b49d03bfbca64e6ec92e5e6f06a3824e135;hb=7f42492ea33a8d43ee12089b97bd8c0693b293e0;hp=9aa09a68c661e5d21c20bd434db9efbb473d5b20;hpb=37e83a7d771b652435ae2a57efb0aeb988484642;p=wfpl.git 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'; +}