diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 02:13:13 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 02:13:13 +0000 |
commit | dd5f5518d83e46c13232e0fa82118539aae0faa7 (patch) | |
tree | 600c8c95e942f752c9980ba22630227282a5c172 /mod/developers/views | |
parent | de8cccfd3f729fce4350a3391208acf2450a3f83 (diff) | |
download | elgg-dd5f5518d83e46c13232e0fa82118539aae0faa7.tar.gz elgg-dd5f5518d83e46c13232e0fa82118539aae0faa7.tar.bz2 |
Fixes #2980: DRY'ed up all plugins to use elgg_view_icon instead of generating their own html
git-svn-id: http://code.elgg.org/elgg/trunk@8410 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/developers/views')
-rw-r--r-- | mod/developers/views/default/theme_preview/icons.php | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/mod/developers/views/default/theme_preview/icons.php b/mod/developers/views/default/theme_preview/icons.php index 89aa8cbc6..be444adb8 100644 --- a/mod/developers/views/default/theme_preview/icons.php +++ b/mod/developers/views/default/theme_preview/icons.php @@ -9,17 +9,26 @@ <?php echo elgg_view('theme_preview/header', $vars); ?> <h2>Icon Sprites</h2> <ul class="mbl clearfix"> - <li><span class="elgg-icon elgg-icon-settings"></span>Settings</li> - <li><span class="elgg-icon elgg-icon-friends"></span>Friends</li> - <li><span class="elgg-icon elgg-icon-help"></span>Help</li> - <li><span class="elgg-icon elgg-icon-delete"></span>Delete</li> - <li><span class="elgg-icon elgg-icon-likes"></span>Likes</li> - <li><span class="elgg-icon elgg-icon-liked"></span>Liked</li> - <li><span class="elgg-icon elgg-icon-following"></span>Following</li> - <li><span class="elgg-icon elgg-icon-dragger"></span>Dragger</li> - <li><span class="elgg-icon elgg-icon-rss"></span>RSS</li> - <li><span class="elgg-icon elgg-icon-arrow-s"></span>Arrow S</li> - <li><span class="elgg-icon elgg-icon-hover-menu"></span>Hover Menu</li> + <?php + $icons = array( + 'settings' => 'Settings', + 'friends' => 'Friends', + 'help' => 'Help', + 'delete' => 'Delete', + 'likes' => 'Likes', + 'liked' => 'Liked', + '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"> |