aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default/theme_preview/icons/avatars.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-23 00:30:17 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-23 00:30:17 +0000
commitd4139ca10963001c830a72c0f70f2c2dd8edec57 (patch)
treed54a6124382dfd26922fe929672aec35d37f8ca6 /mod/developers/views/default/theme_preview/icons/avatars.php
parent027012acf87be84bee8e02b0c8080c6b4f1baecc (diff)
downloadelgg-d4139ca10963001c830a72c0f70f2c2dd8edec57.tar.gz
elgg-d4139ca10963001c830a72c0f70f2c2dd8edec57.tar.bz2
Fixes #3042: Theme preview navs now match css/elements/*. Also did a major cleanup of the presentation.
git-svn-id: http://code.elgg.org/elgg/trunk@9019 36083f99-b078-4883-b0ff-0f9b5a30f544
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..cbce5bc7d
--- /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('hover' => false));
+ echo '</td>';
+ }
+ ?>
+ </tr>
+ <tr>
+ <th>Group</th>
+ <?php
+ foreach ($sizes as $size) {
+ echo '<td>';
+ echo elgg_view_entity_icon($group, $size, array('hover' => false));
+ echo '</td>';
+ }
+ ?>
+ </tr>
+</table>