aboutsummaryrefslogtreecommitdiff
path: root/documentation/theming/preview
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 22:46:28 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 22:46:28 +0000
commite5227e9221edbce84eee82af7f2c9903de702f37 (patch)
tree5e402b5508a8af64ff40761087926dd0f9443303 /documentation/theming/preview
parent577eb6f725449fea5738ca122eedb5e4b2c8ff56 (diff)
downloadelgg-e5227e9221edbce84eee82af7f2c9903de702f37.tar.gz
elgg-e5227e9221edbce84eee82af7f2c9903de702f37.tar.bz2
Fixes #2559 refs #2475 added ElggEntity:getIconURL() and elgg_view_entity_icon()
git-svn-id: http://code.elgg.org/elgg/trunk@8039 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'documentation/theming/preview')
-rw-r--r--documentation/theming/preview/icons.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/documentation/theming/preview/icons.php b/documentation/theming/preview/icons.php
index 2a3a9bb7e..665f1f817 100644
--- a/documentation/theming/preview/icons.php
+++ b/documentation/theming/preview/icons.php
@@ -36,6 +36,27 @@ $url = current_page_url();
<div class="mbl">
<?php echo elgg_view('graphics/ajax_loader', array('hidden' => false)); ?>
</div>
+ <h2>Avatars</h2>
+ <div class="mbl">
+ <?php
+ $user = new ElggUser();
+ $sizes = array('large', 'medium', 'small', 'tiny');
+ echo '<table>';
+ echo '<tr>';
+ foreach ($sizes as $size) {
+ echo "<td class=\"center\"><h4>$size</h4></td>";
+ }
+ echo '</tr>';
+ echo '<tr>';
+ foreach ($sizes as $size) {
+ echo '<td class="phs">';
+ echo elgg_view_entity_icon($user, $size, array('hover' => false));
+ echo '</td>';
+ }
+ echo '</tr>';
+ echo '</table>';
+ ?>
+ </div>
</div>
</body>
</html> \ No newline at end of file