From 632cf13234d04a3f6b7acf67866a82e0bebde55c Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 26 Apr 2011 17:28:54 +0000 Subject: Fixes #3290: Fluid gallery w/o tables -- working great for fixed-width content git-svn-id: http://code.elgg.org/elgg/trunk@9027 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page/components/gallery.php | 40 +++++++------------------------ 1 file changed, 9 insertions(+), 31 deletions(-) (limited to 'views/default/page/components/gallery.php') diff --git a/views/default/page/components/gallery.php b/views/default/page/components/gallery.php index 1ba896836..e86b9f885 100644 --- a/views/default/page/components/gallery.php +++ b/views/default/page/components/gallery.php @@ -3,8 +3,6 @@ * Gallery view * * @uses $vars['items'] - * - * @todo not complete - number of columns */ $items = $vars['items']; @@ -21,8 +19,6 @@ $pagination = elgg_extract('pagination', $vars, true); $offset_key = elgg_extract('offset_key', $vars, 'offset'); $position = elgg_extract('position', $vars, 'after'); -$num_columns = 4; - if ($pagination && $count) { $nav .= elgg_view('navigation/pagination', array( 'offset' => $offset, @@ -37,33 +33,15 @@ if ($position == 'before' || $position == 'both') { } ?> - -'; - } - $col++; - - echo '"; - - if ($col == $num_columns) { - echo ''; - $col = 0; - } -} - -if ($col > 0) { - echo ''; -} - -?> - - +