function theme_panels_list_style_render_panel in Panels 6.2
Same name and namespace in other branches
- 5.2 styles/list.inc \theme_panels_list_style_render_panel()
Render callback.
File
- styles/
list.inc, line 37 - styles/list.inc Definition of the 'list' panel style.
Code
function theme_panels_list_style_render_panel($display, $panel_id, $panes, $settings) {
$items = array();
foreach ($panes as $pane_id => $content) {
$item = panels_render_pane($content, $display->content[$pane_id], $display);
if (isset($item)) {
$items[] = $item;
}
}
if (empty($settings['list_type'])) {
$settings['list_type'] = 'ul';
}
return theme('item_list', $items, NULL, $settings['list_type']);
}