function template_preprocess_views_slideshow_pager_field_field in Views Slideshow 7.3
Views Slideshow: pager field item field.
Parameters
array $vars: Theme variables.
Related topics
File
- theme/
views_slideshow.theme.inc, line 339 - The theme system, which controls the output of views slideshow.
Code
function template_preprocess_views_slideshow_pager_field_field(&$vars) {
$view = $vars['view'];
$vars['field_item'] = $view->field[$vars['field']];
$vars['field_rendered'] = $view->style_plugin->rendered_fields[$vars['count']][$vars['field']];
$vars['css_id'] = drupal_clean_css_identifier($vars['field_item']->field);
if (!strstr($vars['field_rendered'], '<a')) {
$vars['field_rendered'] = "<a href='#slideshow-{$vars['count']}'>{$vars['field_rendered']}</a>";
}
}