function theme_flexslider_picture_list in Picture 7
Same name and namespace in other branches
- 7.2 flexslider_picture/theme/flexslider_picture.theme.inc \theme_flexslider_picture_list()
Theme callback.
1 string reference to 'theme_flexslider_picture_list'
- flexslider_picture_theme_registry_alter in flexslider_picture/
flexslider_picture.module - Implements hook_theme_registry_alter().
File
- flexslider_picture/
theme/ flexslider_picture.theme.inc, line 83 - Picture formatter with flexslider support.
Code
function theme_flexslider_picture_list(&$vars) {
if (!empty($vars['picture_formatter_enabled'])) {
// Reference configuration variables.
$attributes =& $vars['settings']['attributes'];
$type =& $vars['settings']['type'];
$output = '';
// Build the list.
if (!empty($vars['items'])) {
$output .= "<{$type}" . drupal_attributes($attributes) . '>';
foreach ($vars['items'] as $i => $item) {
$slide = render($item['slide']);
$output .= theme('flexslider_list_item', array(
'item' => $slide,
'thumb' => isset($item['thumb']) ? $item['thumb'] : NULL,
'settings' => $vars['settings'],
'caption' => isset($item['caption']) ? $item['caption'] : '',
));
}
$output .= "</{$type}>";
}
return $output;
}
// If this isn't a picture optionset use the default theming.
return theme_flexslider_list($vars);
}