avatars.php 640 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. $user = new ElggUser();
  3. $group = new ElggGroup();
  4. $sizes = array('large', 'medium', 'small', 'tiny');
  5. ?>
  6. <table class="theme-sandbox-table">
  7. <tr>
  8. <th></th>
  9. <?php
  10. foreach ($sizes as $size) {
  11. echo "<th>$size</th>";
  12. }
  13. ?>
  14. </tr>
  15. <tr>
  16. <th>User</th>
  17. <?php
  18. foreach ($sizes as $size) {
  19. echo '<td>';
  20. echo elgg_view_entity_icon($user, $size, array('use_hover' => false));
  21. echo '</td>';
  22. }
  23. ?>
  24. </tr>
  25. <tr>
  26. <th>Group</th>
  27. <?php
  28. foreach ($sizes as $size) {
  29. echo '<td>';
  30. echo elgg_view_entity_icon($group, $size, array('use_hover' => false));
  31. echo '</td>';
  32. }
  33. ?>
  34. </tr>
  35. </table>