I want to add a class to the widget pager of views slideshow. I found the function in the file /theme/views_slideshow.theme.inc wich theme the wrapper of the widget
function theme_views_slideshow_pager_widget_render($vars) {
// Add javascript settings for the pager type.
$js_vars = array(
'viewsSlideshowPager' => array(
$vars['vss_id'] => array(
$vars['location'] => array(
'type' => preg_replace('/_(.?)/e', "strtoupper('$1')", $vars['settings']['type']),
),
),
),
);
drupal_add_js($js_vars, 'setting');
// Create some attributes
$attributes['class'] = 'widget_pager widget_pager_' . $vars['location'];
$attributes['id'] = 'widget_pager_' . $vars['location'] . '_' . $vars['vss_id'];
return theme($vars['settings']['type'], array('vss_id' => $vars['vss_id'], 'view' => $vars['view'], 'settings' => $vars['settings'], 'location' => $vars['location'], 'attributes' => $attributes));
}
I just want to modify the line to add my own class (as grid-6 for example)
$attributes['class'] = 'widget_pager widget_pager_' . $vars['location'];
I try to use this function in my file template.php without success.
the classes of the wigdet pager in my html code are :
views-slideshow-pager-fields widget_pager widget_pager_bottom views_slideshow_pager_field views-slideshow-pager-field-processed
So i imagine that an other function add the classes. But wich ?
How can i do this ? May i write a module or simply use a preprocess function in my template.php
Thanks