From efff3471e09a864948feadb989d2ac9f5f2e0fc5 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 24 Jun 2011 20:25:34 -0400 Subject: Refs #1253 using 'list_type' string instead of boolean 'gallery' for entity listing --- mod/custom_index/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/custom_index/index.php') diff --git a/mod/custom_index/index.php b/mod/custom_index/index.php index e39e6ef29..831114127 100644 --- a/mod/custom_index/index.php +++ b/mod/custom_index/index.php @@ -35,7 +35,7 @@ $newest_members = elgg_list_entities_from_metadata(array( 'limit' => 10, 'full_view' => false, 'pagination' => false, - 'gallery' => true, + 'list_type' => 'gallery', 'size' => 'small', )); -- cgit v1.2.3 From f0c01363ac796a5b11490c6570db9827360f3118 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 24 Jun 2011 20:37:57 -0400 Subject: Fixes #3559 adds .elgg-gallery-users --- mod/custom_index/index.php | 1 + mod/groups/views/default/groups/sidebar/members.php | 1 + views/default/css/elements/components.php | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'mod/custom_index/index.php') diff --git a/mod/custom_index/index.php b/mod/custom_index/index.php index 831114127..53990a006 100644 --- a/mod/custom_index/index.php +++ b/mod/custom_index/index.php @@ -36,6 +36,7 @@ $newest_members = elgg_list_entities_from_metadata(array( 'full_view' => false, 'pagination' => false, 'list_type' => 'gallery', + 'gallery_class' => 'elgg-gallery-users', 'size' => 'small', )); diff --git a/mod/groups/views/default/groups/sidebar/members.php b/mod/groups/views/default/groups/sidebar/members.php index 3026c05f2..7249ffbf4 100644 --- a/mod/groups/views/default/groups/sidebar/members.php +++ b/mod/groups/views/default/groups/sidebar/members.php @@ -22,6 +22,7 @@ $body = elgg_list_entities_from_relationship(array( 'types' => 'user', 'limit' => $limit, 'list_type' => 'gallery', + 'gallery_class' => 'elgg-gallery-users', )); $body .= "
$all_link
"; diff --git a/views/default/css/elements/components.php b/views/default/css/elements/components.php index 594694e60..3f30a6422 100644 --- a/views/default/css/elements/components.php +++ b/views/default/css/elements/components.php @@ -65,9 +65,12 @@ .elgg-gallery td { padding: 5px; } -.elgg-gallery-fluid li { +.elgg-gallery-fluid > li { float: left; } +.elgg-gallery-users > li { + margin: 0 2px; +} /* *************************************** Tables -- cgit v1.2.3