aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default/theme_preview/icons/avatars.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-08-16 14:46:11 +0200
committerSem <sembrestels@riseup.net>2012-08-16 14:46:11 +0200
commit4cac1871f1c83d1cb40134b511125987f92f2c46 (patch)
tree804f80164271fc4f0385ebf05f5f90ceb35320a9 /mod/developers/views/default/theme_preview/icons/avatars.php
parent13ac8fcc40c9446c51e717ddcfe32cfcc45e3fd2 (diff)
downloadelgg-4cac1871f1c83d1cb40134b511125987f92f2c46.tar.gz
elgg-4cac1871f1c83d1cb40134b511125987f92f2c46.tar.bz2
Fixed theme preview.
Diffstat (limited to 'mod/developers/views/default/theme_preview/icons/avatars.php')
-rw-r--r--mod/developers/views/default/theme_preview/icons/avatars.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/mod/developers/views/default/theme_preview/icons/avatars.php b/mod/developers/views/default/theme_preview/icons/avatars.php
new file mode 100644
index 000000000..f50a6b70d
--- /dev/null
+++ b/mod/developers/views/default/theme_preview/icons/avatars.php
@@ -0,0 +1,36 @@
+<?php
+ $user = new ElggUser();
+ $group = new ElggGroup();
+
+ $sizes = array('large', 'medium', 'small', 'tiny');
+?>
+<table class="elgg-table">
+ <tr>
+ <th></th>
+ <?php
+ foreach ($sizes as $size) {
+ echo "<th>$size</th>";
+ }
+ ?>
+ </tr>
+ <tr>
+ <th>User</th>
+ <?php
+ foreach ($sizes as $size) {
+ echo '<td>';
+ echo elgg_view_entity_icon($user, $size, array('use_hover' => false));
+ echo '</td>';
+ }
+ ?>
+ </tr>
+ <tr>
+ <th>Group</th>
+ <?php
+ foreach ($sizes as $size) {
+ echo '<td>';
+ echo elgg_view_entity_icon($group, $size, array('use_hover' => false));
+ echo '</td>';
+ }
+ ?>
+ </tr>
+</table>