From 1e686be93b0e2ef6505e3721f28b501e2b270b78 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Wed, 9 Jun 2010 15:35:38 +0000 Subject: getIcon() override for object/video returns a generic icon if size == tiny. git-svn-id: http://code.elgg.org@6421 36083f99-b078-4883-b0ff-0f9b5a30f544 --- graphics/video_icon_tiny.png | Bin 0 -> 841 bytes start.php | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 graphics/video_icon_tiny.png diff --git a/graphics/video_icon_tiny.png b/graphics/video_icon_tiny.png new file mode 100644 index 000000000..1157694d5 Binary files /dev/null and b/graphics/video_icon_tiny.png 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; } -- cgit v1.2.3