aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r--include/functions.inc.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index eb706e6ba..5990b1f68 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -819,6 +819,26 @@ function get_thumbnail_location($element_info)
return $path;
}
+/* returns the title of the thumnail */
+function get_thumbnail_title($element_info)
+{
+ // message in title for the thumbnail
+ if (isset($element_info['file']))
+ {
+ $thumbnail_title = $element_info['file'];
+ }
+ else
+ {
+ $thumbnail_title = '';
+ }
+
+ if (!empty($element_info['filesize']))
+ {
+ $thumbnail_title .= ' : '.$element_info['filesize'].' KB';
+ }
+
+ return $thumbnail_title;
+}
// my_error returns (or send to standard output) the message concerning the
// error occured for the last mysql query.