From a161b38e65fa698133402f4fb23548242f494018 Mon Sep 17 00:00:00 2001 From: Dave Tosh Date: Tue, 23 Mar 2010 17:30:14 +0000 Subject: This videolist plugin shows real promise so we shall work on it for v1.8 then release it back to the community. --- views/default/videolist/icon.php | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 views/default/videolist/icon.php (limited to 'views/default/videolist/icon.php') diff --git a/views/default/videolist/icon.php b/views/default/videolist/icon.php new file mode 100644 index 000000000..1d25329ea --- /dev/null +++ b/views/default/videolist/icon.php @@ -0,0 +1,41 @@ +wwwroot}mod/videolist/graphics/icons/Video_Icon.jpg\" border=\"0\" />"; +} +else{ + + $mime = $vars['mimetype']; + if (isset($vars['thumbnail'])) { + $thumbnail = $vars['thumbnail']; + } else { + $thumbnail = false; + } + + $size = $vars['size']; + if ($size != 'large') { + $size = 'small'; + } + + if ($thumbnail && strpos($mime, "image/")!==false) + echo ""; + else + { + if ($size == 'large') + echo ""; + else + echo "wwwroot}mod/videolist/graphics/icons/Video_Icon.jpg\" border=\"0\" />"; + } +} +?> -- cgit v1.2.3