function _views_slideshow_xtra_preprocess_link in Views Slideshow Xtra 6.3
Link element template_preprocess.
1 call to _views_slideshow_xtra_preprocess_link()
File
- theme/
views_slideshow_xtra.theme.inc, line 137 - Views Slideshow Xtra theming functions.
Code
function _views_slideshow_xtra_preprocess_link(&$vars) {
// Classes
$vars['attributes']['class'] = 'views-slideshow-xtra-element';
$vars['attributes']['class'] .= ' views-slideshow-xtra-link-' . $vars['slide_count'] . '-' . $vars['field_item_count'];
if (!empty($vars['vsx']['classes'])) {
$vars['attributes']['class'] .= ' ' . $vars['vsx']['classes'];
}
// Styles variable
$vars['attributes']['style'] = $vars['vsx']['styles'];
// Text variable
$vars['text'] = $vars['vsx']['text'];
// URL variable
$vars['url'] = $vars['vsx']['url'];
$js_vars = array(
'viewsSlideshowXtra' => array(
$vars['vss_id'] => array(
'slideInfo' => array(
'link' => array(
'slide-' . $vars['slide_count'] => array(
'item-' . $vars['field_item_count'] => array(
'left' => $vars['vsx']['left'],
'top' => $vars['vsx']['top'],
),
),
),
),
),
),
);
drupal_add_js($js_vars, 'setting');
// Lightbox
if ($vars['vsx']['lightbox']) {
$vars['url'] .= '?width=' . $vars['vsx']['width'] . '&height=' . $vars['vsx']['height'] . '&iframe=true';
}
}