function theme_views_slideshow_view_list in Views Slideshow 5
Display the nodes of a view as a list.
File
- ./
views_slideshow.module, line 233
Code
function theme_views_slideshow_view_list($view, $nodes, $type) {
$fields = _views_get_fields();
$items = array();
foreach ($nodes as $node) {
$item = '';
foreach ($view->field as $field) {
if ($fields[$field['id']]['visible'] !== FALSE) {
if ($field['label']) {
$item .= "<div class='view-label " . views_css_safe('view-label-' . $field['queryname']) . "'>" . $field['label'] . "</div>";
}
$item .= "<div class='view-field " . views_css_safe('view-data-' . $field['queryname']) . "'>" . views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view) . "</div>";
}
}
$items[] = "<div class='view-item " . views_css_safe('view-item-' . $view->name) . "'>{$item}</div>\n";
// l($node->title, "node/$node->nid");
}
return theme('views_slideshow_slideshow', $view, $nodes, $type, $items);
}