diff options
author | Evan Winslow <evan@elgg.org> | 2012-03-26 00:09:39 -0700 |
---|---|---|
committer | Evan Winslow <evan@elgg.org> | 2012-03-26 00:09:39 -0700 |
commit | 65e8fcbb38357979067cda757257d71ef261d6d4 (patch) | |
tree | 35c450cdfcc33f96c7eed3e32b0dd341a923c503 /views/default | |
parent | c0579df990de69dd7b6bec5bd56ef34c6c0fdb8a (diff) | |
parent | ea5219e5da8c99dee97b3ee074bb34e604821245 (diff) | |
download | elgg-65e8fcbb38357979067cda757257d71ef261d6d4.tar.gz elgg-65e8fcbb38357979067cda757257d71ef261d6d4.tar.bz2 |
Merge pull request #177 from ewinslow/icon-fixes
Icon fixes
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/icon/default.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/views/default/icon/default.php b/views/default/icon/default.php index 22c20b3a7..087c7eae9 100644 --- a/views/default/icon/default.php +++ b/views/default/icon/default.php @@ -34,10 +34,15 @@ if (isset($vars['href'])) { $url = $vars['href']; } +$icon_sizes = elgg_get_config('icon_sizes'); +$size = $vars['size']; + $img = elgg_view('output/img', array( 'src' => $entity->getIconURL($vars['size']), 'alt' => $title, 'class' => $class, + 'width' => $size != 'master' ? $icon_sizes[$size]['w'] : NULL, + 'height' => $size != 'master' ? $icon_sizes[$size]['h'] : NULL, )); if ($url) { |