diff options
Diffstat (limited to 'dash/dash_functions.php')
| -rw-r--r-- | dash/dash_functions.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dash/dash_functions.php b/dash/dash_functions.php index 5497ce9..6551e15 100644 --- a/dash/dash_functions.php +++ b/dash/dash_functions.php @@ -19,6 +19,9 @@ function typestr ($type) { function rating_format ($rating = null, $typestr = 'Employer') { return '<span class="ratingdata" data-rating="'.(is_null($rating) ? 'undef' : number_format($rating, 1)).'"></span>'; } +function picture_format ($picstr = null) { + return is_null($picstr) ? 'uimg/default.png' : 'uimg/'.htmlentities($picstr).'.png'; +} function draw_norate_p () { ?> <div class="job"> |
