diff options
Diffstat (limited to 'views/default/page/components')
-rw-r--r-- | views/default/page/components/list.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/views/default/page/components/list.php b/views/default/page/components/list.php index 5ddf82b63..28ed58ddf 100644 --- a/views/default/page/components/list.php +++ b/views/default/page/components/list.php @@ -49,21 +49,21 @@ if ($pagination && $count) { } if (is_array($items) && count($items) > 0) { - $html .= "<ul class=\"$list_class\">"; - foreach ($items as $item) { - if($item->action_type != 'comment') { - if (elgg_instanceof($item)) { - $id = "elgg-{$item->getType()}-{$item->getGUID()}"; - } else { - $id = "item-{$item->getType()}-{$item->id}"; - } - $html .= "<li id=\"$id\" class=\"$item_class\">"; - $html .= elgg_view_list_item($item, $vars); - $html .= '</li>'; - } - } - $html .= '</ul>'; + $html .= "<ul class=\"$list_class\">"; + foreach ($items as $item) { + $li = elgg_view_list_item($item, $vars); + if ($li) { + if (elgg_instanceof($item)) { + $id = "elgg-{$item->getType()}-{$item->getGUID()}"; + } else { + $id = "item-{$item->getType()}-{$item->id}"; + } + $html .= "<li id=\"$id\" class=\"$item_class\">$li</li>"; + } + } + $html .= '</ul>'; } + if ($position == 'before' || $position == 'both') { $html = $nav . $html; } |