function theme_views_view_galleria in Galleria 7
Theme 'views_view_galleria'.
File
- theme/
theme.inc, line 81 - Theming functions for the Galleria module.
Code
function theme_views_view_galleria($vars) {
$items = array();
$view = $vars['view'];
$img_field_name = $vars['img_field_name'];
foreach ($vars['rows'] as $row) {
$lang = $row->_field_data[$view->base_field]['entity']->language;
// omit rows without image field.
if (!isset($row->_field_data[$view->base_field]['entity']->{$img_field_name})) {
continue;
}
$item = $row->_field_data[$view->base_field]['entity']->{$img_field_name}[$lang][0];
$items[] = $item;
}
return theme('galleria_container', array(
'items' => $items,
'settings' => $vars['options'],
));
}