From 1bf62f1bc10831d559df147868dd889e5985adcc Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 20 Jun 2009 20:52:39 +0000 Subject: cleaned up icon code - don't need tidypics/icon view anymore - may reinstate it at a later time --- views/default/object/album.php | 6 +++++- views/default/object/image.php | 2 +- views/default/tidypics/icon.php | 37 ------------------------------------- 3 files changed, 6 insertions(+), 39 deletions(-) delete mode 100644 views/default/tidypics/icon.php (limited to 'views') diff --git a/views/default/object/album.php b/views/default/object/album.php index 3a5f5a975..ca28d1672 100644 --- a/views/default/object/album.php +++ b/views/default/object/album.php @@ -64,7 +64,11 @@ $info .= ", getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")"; $info .= "

"; - $icon = "getURL()}\">" . elgg_view("tidypics/icon", array('album' => true, 'size' => 'small')) . ""; + //get album cover if one was set + if ($album->cover) + $icon = "getURL()}\">" . 'thumbnail'; + else + $icon = "getURL()}\">" . 'new album'; echo elgg_view_listing($icon, $info); } diff --git a/views/default/object/image.php b/views/default/object/image.php index 03ba12a02..d09b721f1 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -78,7 +78,7 @@ if ($photo_tags) { if ($numcomments) $info .= ", getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")"; $info .= "

"; - $icon = "getURL()}\">" . elgg_view("tidypics/icon", array("mimetype" => $mime, 'thumbnail' => $file->thumbnail, 'file_guid' => $file_guid, 'size' => 'small')) . ""; + $icon = "getURL()}\">" . '' . $title . ''; echo elgg_view_listing($icon, $info); } diff --git a/views/default/tidypics/icon.php b/views/default/tidypics/icon.php deleted file mode 100644 index c960bc00b..000000000 --- a/views/default/tidypics/icon.php +++ /dev/null @@ -1,37 +0,0 @@ -wwwroot}mod/tidypics/graphics/icons/album.gif\" 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 "wwwroot}mod/tidypics/graphics/icons/general_lrg.gif\" border=\"0\" />"; - else - echo "wwwroot}mod/tidypics/graphics/icons/general.gif\" border=\"0\" />"; - } -} -?> \ No newline at end of file -- cgit v1.2.3