aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-06 02:47:08 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-06 02:47:08 +0000
commit60832059f8f29761e7c7dc8457f6ff97e0e74a55 (patch)
treeb61a275e76d0be8c73ced3f1df6d734bfac41c3a /engine/lib
parente55ac32a5c56a3d3065dcb80b93f080efd02b1c0 (diff)
downloadelgg-60832059f8f29761e7c7dc8457f6ff97e0e74a55.tar.gz
elgg-60832059f8f29761e7c7dc8457f6ff97e0e74a55.tar.bz2
Refs #3108 frontend should be done and ready for review - admin area is next
git-svn-id: http://code.elgg.org/elgg/trunk@8946 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/views.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index 553c327a0..e2cf6b5c3 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -1278,12 +1278,16 @@ function elgg_view_list_item($item, array $vars = array()) {
*
* Shorthand for <span class="elgg-icon elgg-icon-$name"></span>
*
- * @param string $name The specific icon to display
+ * @param string $name The specific icon to display
+ * @param bool $float Whether to float the icon
*
* @return string The html for displaying an icon
*/
-function elgg_view_icon($name) {
- return "<span class=\"elgg-icon elgg-icon-$name\"></span>";
+function elgg_view_icon($name, $float = false) {
+ if ($float) {
+ $float = 'float';
+ }
+ return "<span class=\"elgg-icon elgg-icon-$name $float\"></span>";
}
/**