diff options
Diffstat (limited to 'mod/developers/views/default/theme_preview/icons.php')
-rw-r--r-- | mod/developers/views/default/theme_preview/icons.php | 58 |
1 files changed, 5 insertions, 53 deletions
diff --git a/mod/developers/views/default/theme_preview/icons.php b/mod/developers/views/default/theme_preview/icons.php index 8178a9da7..e1684c110 100644 --- a/mod/developers/views/default/theme_preview/icons.php +++ b/mod/developers/views/default/theme_preview/icons.php @@ -3,56 +3,8 @@ * Icons CSS */ -?> -<style>li {margin: 10px; float: left;} ul {background-color: #e0e0e0;}</style> -<div class="elgg-page mal"> - <?php echo elgg_view('theme_preview/header', $vars); ?> - <h2>Icon Sprites</h2> - <ul class="mbl clearfix"> - <?php - $icons = array( - 'settings' => 'Settings', - 'friends' => 'Friends', - 'help' => 'Help', - 'delete' => 'Delete', - 'thumbs-up' => 'Thumbs Up', - 'thumbs-up-alt' => 'Thumbs Up Alternate', - 'following' => 'Following', - 'dragger' => 'Dragger', - 'rss' => 'RSS', - 'arrow-s' => 'Arrow S', - 'hover-menu' => 'Hover Menu', - ); - - foreach ($icons as $icon_id => $icon_label) { - echo "<li>" . elgg_view_icon($icon_id) . $icon_label . "</li>"; - } - - ?> - </ul> - <h2>Ajax loader</h2> - <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> +echo elgg_view_module('info', 'Icon Sprites (.elgg-icon)', elgg_view('theme_preview/icons/sprites')); + +echo elgg_view_module('info', 'Ajax Loader (.elgg-ajax-loader)', elgg_view('theme_preview/icons/loader')); + +echo elgg_view_module('info', 'Avatars (.elgg-avatar)', elgg_view('theme_preview/icons/avatars')); |