icon.php 552 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * Elgg profile icon
  4. *
  5. * @deprecated 1.8 use elgg_view_entity_icon()
  6. *
  7. * @uses $vars['entity'] The user entity. If none specified, the current user is assumed.
  8. * @uses $vars['size'] The size - small, medium or large. If none specified, medium is assumed.
  9. * @uses $vars['override']
  10. * @uses $vars['js']
  11. */
  12. elgg_deprecated_notice('The profile/icon view was deprecated. Use elgg_view_entity_icon()', 1.8);
  13. $override = elgg_extract('override', $vars, false);
  14. $vars['use_hover'] = !$override;
  15. echo elgg_view('icon/user/default', $vars);