From ae6e0093ba62cc6e69f6aa41d4f163de52747418 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 6 Feb 2011 22:12:56 +0000 Subject: updated the file plugin to use the new icon structure git-svn-id: http://code.elgg.org/elgg/trunk@8051 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/icon/default.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 views/default/icon/default.php (limited to 'views') diff --git a/views/default/icon/default.php b/views/default/icon/default.php new file mode 100644 index 000000000..a29886064 --- /dev/null +++ b/views/default/icon/default.php @@ -0,0 +1,36 @@ +getURL(); +if (isset($vars['href'])) { + $url = $vars['href']; +} + +$img_src = $entity->getIcon($vars['size']); +$img = ""; + +if ($url) { + echo elgg_view('output/url', array( + 'href' => $url, + 'text' => $img, + )); +} else { + echo $img; +} -- cgit v1.2.3