aboutsummaryrefslogtreecommitdiff
path: root/views/default/profile/icon.php
blob: 1a36ca3cdb966a3d6578125fd738a98dd21a8ac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
/**
 * Elgg profile icon
 *
 * @deprecated 1.8 use elgg_view_entity_icon()
 *
 * @uses $vars['entity'] The user entity. If none specified, the current user is assumed.
 * @uses $vars['size'] The size - small, medium or large. If none specified, medium is assumed.
 * @uses $vars['override']
 * @uses $vars['js']
 */

$override = elgg_get_array_value('override', $vars, false);
$vars['hover'] = !$override;

echo elgg_view('icon/user/default', $vars);