function theme_flexslider_list in Flex Slider 7.2
Default theme implementation for flexslider_list
1 theme call to theme_flexslider_list()
- flexslider.tpl.php in theme/
flexslider.tpl.php - Default output for a FlexSlider object.
File
- theme/
flexslider.theme.inc, line 13 - Theming functions for the flexslider module.
Code
function theme_flexslider_list(&$variables) {
// Reference configuration variables
$optionset =& $variables['settings']['optionset'];
$items =& $variables['items'];
$attributes =& $variables['settings']['attributes'];
$type =& $variables['settings']['type'];
$output = '';
// Build the list
if (!empty($items)) {
$output .= "<{$type}" . drupal_attributes($attributes) . '>';
foreach ($items as $item) {
$caption = '';
if (!empty($item['caption'])) {
$caption = $item['caption'];
}
$output .= theme('flexslider_list_item', array(
'item' => $item['slide'],
'settings' => array(
'optionset' => $optionset,
),
'caption' => $caption,
));
}
$output .= "</{$type}>";
}
return $output;
}