aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/video_icon_tiny.pngbin0 -> 841 bytes
-rw-r--r--start.php7
2 files changed, 7 insertions, 0 deletions
diff --git a/graphics/video_icon_tiny.png b/graphics/video_icon_tiny.png
new file mode 100644
index 000000000..1157694d5
--- /dev/null
+++ b/graphics/video_icon_tiny.png
Binary files differ
diff --git a/start.php b/start.php
index bd772b067..93d011dae 100644
--- a/start.php
+++ b/start.php
@@ -248,6 +248,13 @@ function videolist_embed_get_items($hook, $type, $value, $params) {
* @param string $size Not used yet. Not sure if possible.
*/
function videolist_get_entity_icon_url(ElggEntity $entity, $size = 'medium') {
+
+ // tiny thumbnails are too small to be useful, so give a generic video icon
+ if ($size == 'tiny') {
+ global $CONFIG;
+ return "{$CONFIG->url}mod/videolist/graphics/video_icon_tiny.png";
+ }
+
return $entity->thumbnail;
}