function template_preprocess_views_view_list
Same name in other branches
- 7.x-3.x theme/theme.inc \template_preprocess_views_view_list()
Display the view as an HTML list element
File
-
theme/
theme.inc, line 697
Code
function template_preprocess_views_view_list(&$vars) {
$handler = $vars['view']->style_plugin;
$vars['class'] = views_css_safe($handler->options['class']);
$vars['wrapper_class'] = views_css_safe($handler->options['wrapper_class']);
$vars['wrapper_prefix'] = '';
$vars['wrapper_suffix'] = '';
$vars['list_type_prefix'] = '<' . $handler->options['type'] . '>';
$vars['list_type_suffix'] = '</' . $handler->options['type'] . '>';
if ($vars['wrapper_class']) {
$vars['wrapper_prefix'] = '<div class="' . $vars['wrapper_class'] . '">';
$vars['wrapper_suffix'] = '</div>';
}
if ($vars['class']) {
$vars['list_type_prefix'] = '<' . $handler->options['type'] . ' class="' . $vars['class'] . '">';
}
template_preprocess_views_view_unformatted($vars);
}