aboutsummaryrefslogtreecommitdiff
path: root/views/default/icon
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-08 02:51:33 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-08 02:51:33 +0000
commit92f27f915e3a5e536cefb3e1c7f13ef2b4efc467 (patch)
tree3103150365f8ce64b4d3c8f4ff0924534cd93c87 /views/default/icon
parent313f19f489d6eea610f1833587049f16977af781 (diff)
downloadelgg-92f27f915e3a5e536cefb3e1c7f13ef2b4efc467.tar.gz
elgg-92f27f915e3a5e536cefb3e1c7f13ef2b4efc467.tar.bz2
bringing us a little closer to validating
git-svn-id: http://code.elgg.org/elgg/trunk@8066 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/icon')
-rw-r--r--views/default/icon/default.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/icon/default.php b/views/default/icon/default.php
index a29886064..c033a256b 100644
--- a/views/default/icon/default.php
+++ b/views/default/icon/default.php
@@ -18,13 +18,19 @@ if (!in_array($vars['size'], $sizes)) {
$vars['size'] = "medium";
}
+if (isset($entity->name)) {
+ $title = $entity->name;
+} else {
+ $title = $entity->title;
+}
+
$url = $entity->getURL();
if (isset($vars['href'])) {
$url = $vars['href'];
}
$img_src = $entity->getIcon($vars['size']);
-$img = "<img src=\"$img_src\" />";
+$img = "<img src=\"$img_src\" alt=\"$title\" />";
if ($url) {
echo elgg_view('output/url', array(