diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-07-30 16:22:01 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-07-30 16:22:01 +0000 |
commit | 0cf99f9a6c1a797017c146d8a7f19da934c153c4 (patch) | |
tree | 369f5ec65ded5a13a5fe0346886545ab06ab9b0a /lib | |
parent | afa1173a19e08606b5f159807bdf93e84896deac (diff) | |
download | ampache-0cf99f9a6c1a797017c146d8a7f19da934c153c4.tar.gz ampache-0cf99f9a6c1a797017c146d8a7f19da934c153c4.tar.bz2 ampache-0cf99f9a6c1a797017c146d8a7f19da934c153c4.zip |
a few updates/fixes for localplay
Diffstat (limited to 'lib')
-rw-r--r-- | lib/general.lib.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php index c3c1e061..654bc5ac 100644 --- a/lib/general.lib.php +++ b/lib/general.lib.php @@ -956,4 +956,25 @@ function translate_pattern_code($code) { } // translate_pattern_code + +/** + * print_boolean + * This function takes a boolean value and then print out a friendly + * text message, usefull if you have a 0/1 that you need to turn into + * a "Off" "On" + */ +function print_boolean($value) { + + + if ($value) { + $string = '<span class="item_on">' . _('On') . '</span>'; + } + else { + $string = '<span class="item_off">' . _('Off') . '</span>'; + } + + return $string; + +} // print_boolean + ?> |