aboutsummaryrefslogtreecommitdiff
path: root/views/default/videolist/icon.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/videolist/icon.php')
-rw-r--r--views/default/videolist/icon.php41
1 files changed, 19 insertions, 22 deletions
diff --git a/views/default/videolist/icon.php b/views/default/videolist/icon.php
index 1d25329ea..46c186db1 100644
--- a/views/default/videolist/icon.php
+++ b/views/default/videolist/icon.php
@@ -1,41 +1,38 @@
<?php
- /**
- * Elgg tidypic icon
- * Optionally you can specify a size.
- *
- * @package ElggFile
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
+/**
+ * Elgg tidypic icon
+ * Optionally you can specify a size.
+ *
+ * @package ElggFile
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+global $CONFIG;
- global $CONFIG;
-
if($vars['videolist']){
echo "<img src=\"{$CONFIG->wwwroot}mod/videolist/graphics/icons/Video_Icon.jpg\" border=\"0\" />";
-}
-else{
-
+} 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)
+ if ($thumbnail && strpos($mime, "image/")!==false) {
echo "<img src=\"{$thumbnail}\" border=\"0\" />";
- else
- {
- if ($size == 'large')
+ } else {
+ if ($size == 'large') {
echo "<img src=\"{$thumbnail}\" border=\"0\" />";
- else
+ } else {
echo "<img src=\"{$CONFIG->wwwroot}mod/videolist/graphics/icons/Video_Icon.jpg\" border=\"0\" />";
+ }
}
-}
-?>
+} \ No newline at end of file