aboutsummaryrefslogtreecommitdiff
path: root/documentation/theming
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/theming')
-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