Projet

Général

Profil

Paste
Télécharger (18,5 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / views_slideshow / theme / views_slideshow.theme.inc @ 31a5a6d6

1 85ad3d82 Assos Assos
<?php
2
3
/**
4
 * @file
5
 * The theme system, which controls the output of views slideshow.
6 c73bc8d8 Assos Assos
 */
7
8
 /**
9
 * @defgroup vss_templates Templates
10
 * @{
11
 * Slideshow and component templates.
12 85ad3d82 Assos Assos
 *
13 c73bc8d8 Assos Assos
 * @see vss_theme
14
 * @}
15
 */
16
17
 /**
18
 * @defgroup vss_theme Theme Functions
19
 * @{
20
 * Theme processing and display generation.
21
 *
22
 * Most of the logic behind the generation of the slideshow is here.
23
 *
24
 * @see vss_templates
25 85ad3d82 Assos Assos
 */
26
27 a2bb1a14 Assos Assos
/**
28
 * Implements hook_preprocess_views_slideshow().
29
 */
30
function template_preprocess_views_slideshow(&$vars) {
31 85ad3d82 Assos Assos
  $options = $vars['options'];
32
  $vars['skin'] = 'default';
33
  $vars['slideshow'] = '';
34
  $main_frame_module = $options['slideshow_type'];
35
36
  if (empty($main_frame_module)) {
37
    // Get all slideshow types.
38
    $slideshows = module_invoke_all('views_slideshow_slideshow_info');
39
40
    if ($slideshows) {
41
      foreach ($slideshows as $slideshow_id => $slideshow_info) {
42
        $main_frame_module = $slideshow_id;
43
        break;
44
      }
45
    }
46
  }
47
48
  // Make sure the main slideshow settings are defined before building the
49
  // slideshow.
50
  if (empty($main_frame_module)) {
51 a2bb1a14 Assos Assos
    drupal_set_message(t('No main frame module is enabled for views slideshow. This is often because another module which Views Slideshow needs is not enabled. For example, 3.x needs a module like "Views Slideshow: Cycle" enabled.'), 'error');
52 85ad3d82 Assos Assos
  }
53
  elseif (empty($options[$main_frame_module])) {
54
    drupal_set_message(t('The options for !module does not exists.', array('!module' => $main_frame_module)), 'error');
55
  }
56
  elseif (!empty($vars['rows'])) {
57
    $settings = $options[$main_frame_module];
58
    $view = $vars['view'];
59
    $rows = $vars['rows'];
60
    $vss_id = $view->name . '-' . $view->current_display;
61
62
    // Give each slideshow a unique id if there are more than one on the page.
63
    static $instances = array();
64
    if (isset($instances[$vss_id])) {
65
      $instances[$vss_id]++;
66
      $vss_id .= "_" . $instances[$vss_id];
67
    }
68
    else {
69
      $instances[$vss_id] = 1;
70 18596a08 Assos Assos
      $vss_id .= '_1';
71 85ad3d82 Assos Assos
    }
72
73
    // Building our default methods.
74
    $methods = array(
75
      'goToSlide' => array(),
76
      'nextSlide' => array(),
77
      'pause' => array(),
78
      'play' => array(),
79
      'previousSlide' => array(),
80
      'transitionBegin' => array(),
81
      'transitionEnd' => array(),
82
    );
83
84
    // Pull all widget info and slideshow info and merge them together.
85
    $widgets = module_invoke_all('views_slideshow_widget_info');
86
    $slideshows = module_invoke_all('views_slideshow_slideshow_info');
87
    $addons = array_merge($widgets, $slideshows);
88
89
    // Loop through all the addons and call their methods if needed.
90
    foreach ($addons as $addon_id => $addon_info) {
91
      foreach ($addon_info['accepts'] as $imp_key => $imp_value) {
92
        if (is_array($imp_value)) {
93
          $methods[$imp_key][] = views_slideshow_format_addons_name($addon_id);
94
        }
95
        else {
96
          $methods[$imp_value][] = views_slideshow_format_addons_name($addon_id);
97
        }
98
      }
99
    }
100
101
    $js_settings = array(
102
      'viewsSlideshow' => array(
103
        $vss_id => array(
104
          'methods' => $methods,
105
          'paused' => 0,
106 a2bb1a14 Assos Assos
        ),
107
      ),
108 85ad3d82 Assos Assos
    );
109
    drupal_add_library('views_slideshow', 'views_slideshow');
110
    drupal_add_js($js_settings, 'setting');
111
112 a2bb1a14 Assos Assos
    // Process Skins.
113 85ad3d82 Assos Assos
    $skin_info = array();
114
    if (isset($options['skin_info'])) {
115
      $skin_info = $options['skin_info'];
116
    }
117
118
    // Make sure $skin_info has all the values.
119
    $skin_info += array(
120
      'class' => 'default',
121
      'name' => t('Untitled skin'),
122
      'module' => 'views_slideshow',
123
      'path' => '',
124
      'stylesheets' => array(),
125
    );
126
127
    $vars['skin'] = $skin_info['class'];
128
129
    // Enqueue any stylesheets set for the skin on this view are added.
130
    $skin_path = drupal_get_path('module', $skin_info['module']);
131
    if ($skin_info['path']) {
132
      $skin_path .= '/' . $skin_info['path'];
133
    }
134
135
    // Add stylesheet.
136
    if (!empty($skin_info['stylesheets'])) {
137
      foreach ($skin_info['stylesheets'] as $stylesheet) {
138
        drupal_add_css($skin_path . '/' . $stylesheet);
139
      }
140
    }
141
142 a2bb1a14 Assos Assos
    // Process Widgets.
143
    // Build weights.
144 85ad3d82 Assos Assos
    for ($i = 1; $i <= count($widgets); $i++) {
145 0ece262b Assos Assos
      $weight['top'][$i] = array();
146
      $weight['bottom'][$i] = array();
147 85ad3d82 Assos Assos
    }
148
149
    foreach ($widgets as $widget_id => $widget_name) {
150
      // Put our widgets in the right location.
151
      if ($options['widgets']['top'][$widget_id]['enable']) {
152
        $widget_weight = ($options['widgets']['top'][$widget_id]['weight'] > count($widgets)) ? count($widgets) : $options['widgets']['top'][$widget_id]['weight'];
153
        $weight['top'][$widget_weight][] = $widget_id;
154
      }
155
156
      if ($options['widgets']['bottom'][$widget_id]['enable']) {
157
        $widget_weight = ($options['widgets']['bottom'][$widget_id]['weight'] > count($widgets)) ? count($widgets) : $options['widgets']['bottom'][$widget_id]['weight'];
158
        $weight['bottom'][$widget_weight][] = $widget_id;
159
      }
160
    }
161
162 a2bb1a14 Assos Assos
    // Build our widgets.
163 85ad3d82 Assos Assos
    foreach ($weight as $location => $order) {
164
      $vars[$location . '_widget_rendered'] = '';
165
      foreach ($order as $order_num => $widgets) {
166
        if (is_array($widgets)) {
167
          foreach ($widgets as $widget_id) {
168 a2bb1a14 Assos Assos
            $vars[$widget_id . '_' . $location] = theme(views_theme_functions($widget_id . '_widget_render', $view, $view->display[$view->current_display]), array(
169
              'vss_id' => $vss_id,
170
              'view' => $view,
171
              'settings' => $options['widgets'][$location][$widget_id],
172
              'location' => $location,
173
              'rows' => $rows,
174
            ));
175 85ad3d82 Assos Assos
            $vars[$location . '_widget_rendered'] .= $vars[$widget_id . '_' . $location];
176
          }
177
        }
178
      }
179
    }
180
181 a2bb1a14 Assos Assos
    // Process Slideshow.
182
    $slides = theme(views_theme_functions($main_frame_module . '_main_frame', $view, $view->display[$view->current_display]), array(
183
      'vss_id' => $vss_id,
184
      'view' => $view,
185
      'settings' => $settings,
186
      'rows' => $rows,
187 99781f3b Assos Assos
      'options' => $options,
188 a2bb1a14 Assos Assos
    ));
189
    $vars['slideshow'] = theme(views_theme_functions('views_slideshow_main_section', $view, $view->display[$view->current_display]), array(
190
      'vss_id' => $vss_id,
191
      'slides' => $slides,
192
      'plugin' => $main_frame_module,
193
    ));
194 85ad3d82 Assos Assos
  }
195
}
196
197
/**
198
 * The current element of the slideshow.
199 18596a08 Assos Assos
 *
200
 * @param array $vars
201
 *   Theme variables.
202
 *
203
 * @return string
204
 *   The html string for the slideshow element.
205 85ad3d82 Assos Assos
 */
206
function theme_views_slideshow_main_section($vars) {
207 0ece262b Assos Assos
  return '<div id="' . $vars['plugin'] . '_main_' . $vars['vss_id'] . '" class="' . $vars['plugin'] . '_main views_slideshow_main">' . $vars['slides'] . '</div>';
208 85ad3d82 Assos Assos
}
209
210
/**
211
 * Views Slideshow: pager.
212 18596a08 Assos Assos
 *
213
 * @param array $vars
214
 *   Theme variables.
215
 *
216
 * @return string
217
 *   The html string for the pager widget or an empty string if disabled.
218 85ad3d82 Assos Assos
 */
219
function theme_views_slideshow_pager_widget_render($vars) {
220 0ece262b Assos Assos
  if (isset($vars['settings']['hide_on_single_slide']) && $vars['settings']['hide_on_single_slide'] === 1 && count($vars['rows']) < 2) {
221
    return '';
222
  }
223 c73bc8d8 Assos Assos
224 0ece262b Assos Assos
  // Add JavaScript settings for the pager type.
225 85ad3d82 Assos Assos
  $js_vars = array(
226
    'viewsSlideshowPager' => array(
227
      $vars['vss_id'] => array(
228
        $vars['location'] => array(
229 a2bb1a14 Assos Assos
          'type' => views_slideshow_format_addons_name($vars['settings']['type']),
230 c73bc8d8 Assos Assos
          'master_pager' => views_slideshow_format_addons_name($vars['settings']['master_pager']),
231 85ad3d82 Assos Assos
        ),
232
      ),
233
    ),
234
  );
235
236
  drupal_add_library('views_slideshow', 'views_slideshow');
237
  drupal_add_js($js_vars, 'setting');
238
239 a2bb1a14 Assos Assos
  // Create some attributes.
240 85ad3d82 Assos Assos
  $attributes['class'] = 'widget_pager widget_pager_' . $vars['location'];
241
  $attributes['id'] = 'widget_pager_' . $vars['location'] . '_' . $vars['vss_id'];
242 a2bb1a14 Assos Assos
  return theme(views_theme_functions($vars['settings']['type'], $vars['view'], $vars['view']->display[$vars['view']->current_display]), array(
243
    'vss_id' => $vars['vss_id'],
244
    'view' => $vars['view'],
245
    'settings' => $vars['settings']
246
    , 'location' => $vars['location'],
247
    'attributes' => $attributes,
248
  ));
249 85ad3d82 Assos Assos
}
250
251
/**
252 a2bb1a14 Assos Assos
 * Theme pager fields.
253 18596a08 Assos Assos
 *
254
 * @param array $vars
255
 *   Theme variables.
256 85ad3d82 Assos Assos
 */
257 a2bb1a14 Assos Assos
function template_preprocess_views_slideshow_pager_fields(&$vars) {
258 0ece262b Assos Assos
  // Build our JavaScript settings.
259 85ad3d82 Assos Assos
  $js_vars = array(
260
    'viewsSlideshowPagerFields' => array(
261
      $vars['vss_id'] => array(
262
        $vars['location'] => array(
263
          'activatePauseOnHover' => $vars['settings']['views_slideshow_pager_fields_hover'],
264
        ),
265
      ),
266
    ),
267
  );
268
269
  // Add the settings to the page.
270
  drupal_add_library('views_slideshow', 'views_slideshow');
271
  drupal_add_js($js_vars, 'setting');
272
273 a2bb1a14 Assos Assos
  // Add hover intent library.
274 85ad3d82 Assos Assos
  if ($vars['settings']['views_slideshow_pager_fields_hover']) {
275
    if (module_exists('libraries')) {
276 a2bb1a14 Assos Assos
      // Load jQuery hoverIntent.
277 85ad3d82 Assos Assos
      $hoverIntent_path = libraries_get_path('jquery.hoverIntent');
278
      if (!empty($hoverIntent_path) && file_exists($hoverIntent_path . '/jquery.hoverIntent.js')) {
279
        drupal_add_js($hoverIntent_path . '/jquery.hoverIntent.js');
280
      }
281
    }
282
  }
283
284
  $vars['classes_array'][] = $vars['attributes']['class'];
285
  $vars['widget_id'] = $vars['attributes']['id'];
286
  // Add our class to the wrapper.
287
  $vars['classes_array'][] = 'views_slideshow_pager_field';
288
289
  // Render all the fields unless there is only 1 slide and the user specified
290
  // to hide them when there is only one slide.
291 2181db6c Assos Assos
  $items_per_slide = (isset($vars['view']->style_options['views_slideshow_cycle']['items_per_slide'])) ? $vars['view']->style_options['views_slideshow_cycle']['items_per_slide'] : null;
292 85ad3d82 Assos Assos
  $vars['rendered_field_items'] = '';
293 2181db6c Assos Assos
  if (empty($vars['settings']['hide_on_single_slide']) || count($vars['view']->result) > $items_per_slide) {
294 85ad3d82 Assos Assos
    foreach ($vars['view']->result as $count => $node) {
295
      $rendered_fields = '';
296
      foreach ($vars['settings']['views_slideshow_pager_fields_fields'] as $field => $use) {
297
        if ($use !== 0 && is_object($vars['view']->field[$field])) {
298 a2bb1a14 Assos Assos
          $rendered_fields .= theme(views_theme_functions('views_slideshow_pager_field_field', $vars['view'], $vars['view']->display[$vars['view']->current_display]), array(
299
            'view' => $vars['view'],
300
            'field' => $field,
301
            'count' => $count,
302
          ));
303 85ad3d82 Assos Assos
        }
304
      }
305 a2bb1a14 Assos Assos
      $vars['rendered_field_items'] .= theme(views_theme_functions('views_slideshow_pager_field_item', $vars['view'], $vars['view']->display[$vars['view']->current_display]), array(
306
        'vss_id' => $vars['vss_id'],
307
        'item' => $rendered_fields,
308
        'count' => $count,
309
        'location' => $vars['location'],
310
        'length' => count($vars['view']->result),
311
      ));
312 85ad3d82 Assos Assos
    }
313
  }
314
}
315
316
/**
317
 * Views Slideshow: pager item.
318 18596a08 Assos Assos
 *
319
 * @param array $vars
320
 *   Theme variables.
321 85ad3d82 Assos Assos
 */
322 a2bb1a14 Assos Assos
function template_preprocess_views_slideshow_pager_field_item(&$vars) {
323 85ad3d82 Assos Assos
  $vars['classes_array'][] = 'views_slideshow_pager_field_item';
324
  $vars['classes_array'][] = ($vars['count'] % 2) ? 'views-row-even' : 'views-row-odd';
325
  if ($vars['count'] == 0) {
326
    $vars['classes_array'][] = 'views-row-first';
327
  }
328
  elseif ($vars['count'] == $vars['length'] - 1) {
329
    $vars['classes_array'][] = 'views-row-last';
330
  }
331
}
332
333 a2bb1a14 Assos Assos
/**
334
 * Views Slideshow: pager field item field.
335 18596a08 Assos Assos
 *
336
 * @param array $vars
337
 *   Theme variables.
338 a2bb1a14 Assos Assos
 */
339
function template_preprocess_views_slideshow_pager_field_field(&$vars) {
340
  $view = $vars['view'];
341
  $vars['field_item'] = $view->field[$vars['field']];
342
  $vars['field_rendered'] = $view->style_plugin->rendered_fields[$vars['count']][$vars['field']];
343
  $vars['css_id'] = drupal_clean_css_identifier($vars['field_item']->field);
344
  if (!strstr($vars['field_rendered'], '<a')) {
345
    $vars['field_rendered'] = "<a href='#slideshow-${vars['count']}'>${vars['field_rendered']}</a>";
346
  }
347
}
348
349 85ad3d82 Assos Assos
/**
350
 * Views Slideshow: Controls.
351 18596a08 Assos Assos
 *
352
 * @param array $vars
353
 *   Theme variables.
354
 *
355
 * @return string
356
 *   The html string for the control widget.
357 85ad3d82 Assos Assos
 */
358
function theme_views_slideshow_controls_widget_render($vars) {
359 0ece262b Assos Assos
  // Add JavaScript settings for the controls type.
360 85ad3d82 Assos Assos
  $js_vars = array(
361
    'viewsSlideshowControls' => array(
362
      $vars['vss_id'] => array(
363
        $vars['location'] => array(
364 a2bb1a14 Assos Assos
          'type' => views_slideshow_format_addons_name($vars['settings']['type']),
365 85ad3d82 Assos Assos
        ),
366
      ),
367
    ),
368
  );
369
370
  drupal_add_library('views_slideshow', 'views_slideshow');
371
  drupal_add_js($js_vars, 'setting');
372
373 2181db6c Assos Assos
  $items_per_slide = (isset($vars['view']->style_options['views_slideshow_cycle']['items_per_slide'])) ? $vars['view']->style_options['views_slideshow_cycle']['items_per_slide'] : null;
374 85ad3d82 Assos Assos
  $output = '';
375 2181db6c Assos Assos
  if (empty($vars['settings']['hide_on_single_slide']) || count($vars['rows']) > $items_per_slide) {
376 a2bb1a14 Assos Assos
    $output = theme(views_theme_functions($vars['settings']['type'], $vars['view'], $vars['view']->display[$vars['view']->current_display]), array(
377
      'vss_id' => $vars['vss_id'],
378
      'view' => $vars['view'],
379
      'settings' => $vars['settings'],
380
      'location' => $vars['location'],
381
      'rows' => $vars['rows'],
382
    ));
383 85ad3d82 Assos Assos
  }
384
385
  return $output;
386
}
387
388
/**
389
 * The slideshow controls.
390 18596a08 Assos Assos
 *
391
 * @param array $vars
392
 *   Theme variables.
393 85ad3d82 Assos Assos
 */
394 a2bb1a14 Assos Assos
function template_preprocess_views_slideshow_controls_text(&$vars) {
395 85ad3d82 Assos Assos
  $module_path = drupal_get_path('module', 'views_slideshow');
396
  drupal_add_css($module_path . '/views_slideshow_controls_text.css', array('type' => 'file'));
397
398
  $vars['classes_array'][] = 'views_slideshow_controls_text';
399
400 a2bb1a14 Assos Assos
  $vars['rendered_control_previous'] = theme(views_theme_functions('views_slideshow_controls_text_previous', $vars['view'], $vars['view']->display[$vars['view']->current_display]), array(
401
    'vss_id' => $vars['vss_id'],
402
    'view' => $vars['view'],
403
    'settings' => $vars['settings'],
404
  ));
405
406
  $vars['rendered_control_pause'] = theme(views_theme_functions('views_slideshow_controls_text_pause', $vars['view'], $vars['view']->display[$vars['view']->current_display]), array(
407
    'vss_id' => $vars['vss_id'],
408
    'view' => $vars['view'],
409
    'settings' => $vars['settings'],
410
  ));
411
412
  $vars['rendered_control_next'] = theme(views_theme_functions('views_slideshow_controls_text_next', $vars['view'], $vars['view']->display[$vars['view']->current_display]), array(
413
    'vss_id' => $vars['vss_id'],
414
    'view' => $vars['view'],
415
    'settings' => $vars['settings'],
416
  ));
417 85ad3d82 Assos Assos
}
418
419
/**
420
 * Views Slideshow: "previous" control.
421 18596a08 Assos Assos
 *
422
 * @param array $vars
423
 *   Theme variables.
424 85ad3d82 Assos Assos
 */
425 a2bb1a14 Assos Assos
function template_preprocess_views_slideshow_controls_text_previous(&$vars) {
426 85ad3d82 Assos Assos
  $vars['classes_array'][] = 'views_slideshow_controls_text_previous';
427
}
428
429
/**
430
 * Views Slideshow: "pause" control.
431 18596a08 Assos Assos
 *
432
 * @param array $vars
433
 *   Theme variables.
434 85ad3d82 Assos Assos
 */
435 a2bb1a14 Assos Assos
function template_preprocess_views_slideshow_controls_text_pause(&$vars) {
436
  $vars['classes_array'][] = 'views_slideshow_controls_text_pause  views-slideshow-controls-text-status-play';
437 85ad3d82 Assos Assos
  $vars['start_text'] = t('Pause');
438
}
439
440
/**
441
 * Views Slideshow: "next" control.
442 18596a08 Assos Assos
 *
443
 * @param array $vars
444
 *   Theme variables.
445 85ad3d82 Assos Assos
 */
446 a2bb1a14 Assos Assos
function template_preprocess_views_slideshow_controls_text_next(&$vars) {
447 85ad3d82 Assos Assos
  $vars['classes_array'][] = 'views_slideshow_controls_text_next';
448
}
449
450
/**
451
 * Views Slideshow: Slide Counter.
452 18596a08 Assos Assos
 *
453
 * @param array $vars
454
 *   Theme variables.
455
 *
456
 * @return string
457
 *   The html string for the counter widget.
458 85ad3d82 Assos Assos
 */
459
function theme_views_slideshow_slide_counter_widget_render($vars) {
460 a2bb1a14 Assos Assos
  return theme(views_theme_functions('views_slideshow_slide_counter', $vars['view'], $vars['view']->display[$vars['view']->current_display]), array(
461
    'vss_id' => $vars['vss_id'],
462
    'view' => $vars['view'],
463
    'settings' => $vars['settings'],
464
    'location' => $vars['location'],
465
    'rows' => $vars['rows'],
466
  ));
467 85ad3d82 Assos Assos
}
468
469
/**
470
 * Views Slideshow: slide counter.
471 18596a08 Assos Assos
 *
472
 * @param array $vars
473
 *   Theme variables.
474 85ad3d82 Assos Assos
 */
475 a2bb1a14 Assos Assos
function template_preprocess_views_slideshow_slide_counter(&$vars) {
476 85ad3d82 Assos Assos
  $vars['classes_array'][] = 'views_slideshow_slide_counter';
477 0ece262b Assos Assos
  $vars['slide_count'] = count($vars['rows']);
478 85ad3d82 Assos Assos
}
479 99781f3b Assos Assos
480
/**
481 18596a08 Assos Assos
 * Backwards compatibility wrapper.
482
 *
483
 * @param array $vars
484
 *   Theme variables.
485 99781f3b Assos Assos
 *
486 c73bc8d8 Assos Assos
 * @deprecated Removed in 3.5 when the hook_theme() implementation was fixed.
487
 *
488 99781f3b Assos Assos
 * @see template_preprocess_views_slideshow().
489
 */
490
function _views_slideshow_preprocess_views_slideshow(&$vars) {
491
 template_preprocess_views_slideshow($vars);
492
}
493
494
/**
495 18596a08 Assos Assos
 * Backwards compatibility wrapper.
496
 *
497
 * @param array $vars
498
 *   Theme variables.
499 99781f3b Assos Assos
 *
500 c73bc8d8 Assos Assos
 * @deprecated Removed in 3.5 when the hook_theme() implementation was fixed.
501
 *
502 99781f3b Assos Assos
 * @see template_preprocess_views_slideshow_pager_fields().
503
 */
504
function _views_slideshow_preprocess_views_slideshow_pager_fields(&$vars) {
505
  template_preprocess_views_slideshow_pager_fields($vars);
506
}
507
508
/**
509 18596a08 Assos Assos
 * Backwards compatibility wrapper.
510
 *
511
 * @param array $vars
512
 *   Theme variables.
513
 *
514
 * @param array $vars
515
 *   Theme variables.
516 99781f3b Assos Assos
 *
517 c73bc8d8 Assos Assos
 * @deprecated Removed in 3.5 when the hook_theme() implementation was fixed.
518
 *
519 99781f3b Assos Assos
 * @see template_preprocess_views_slideshow_pager_field_item().
520
 */
521
function _views_slideshow_preprocess_views_slideshow_pager_field_item(&$vars) {
522
  template_preprocess_views_slideshow_pager_field_item($vars);
523
}
524
525
/**
526 18596a08 Assos Assos
 * Backwards compatibility wrapper.
527
 *
528
 * @param array $vars
529
 *   Theme variables.
530 99781f3b Assos Assos
 *
531 c73bc8d8 Assos Assos
 * @deprecated Removed in 3.5 when the hook_theme() implementation was fixed.
532
 *
533 99781f3b Assos Assos
 * @see template_preprocess_views_slideshow_controls_text().
534
 */
535
function _views_slideshow_preprocess_views_slideshow_controls_text(&$vars) {
536
  template_preprocess_views_slideshow_controls_text($vars);
537
}
538
539
/**
540 18596a08 Assos Assos
 * Backwards compatibility wrapper.
541
 *
542
 * @param array $vars
543
 *   Theme variables.
544 99781f3b Assos Assos
 *
545
 * @see template_preprocess_views_slideshow_controls_text_previous().
546
 */
547
function _views_slideshow_preprocess_views_slideshow_controls_text_previous(&$vars) {
548
  template_preprocess_views_slideshow_controls_text_previous($vars);
549
}
550
551
/**
552 18596a08 Assos Assos
 * Backwards compatibility wrapper.
553
 *
554
 * @param array $vars
555
 *   Theme variables.
556 99781f3b Assos Assos
 *
557 c73bc8d8 Assos Assos
 * @deprecated Removed in 3.5 when the hook_theme() implementation was fixed.
558
 *
559 99781f3b Assos Assos
 * @see template_preprocess_views_slideshow_controls_text_pause().
560
 */
561
function _views_slideshow_preprocess_views_slideshow_controls_text_pause(&$vars) {
562
  template_preprocess_views_slideshow_controls_text_pause($vars);
563
}
564
565
/**
566 18596a08 Assos Assos
 * Backwards compatibility wrapper.
567
 *
568
 * @param array $vars
569
 *   Theme variables.
570 99781f3b Assos Assos
 *
571 c73bc8d8 Assos Assos
 * @deprecated Removed in 3.5 when the hook_theme() implementation was fixed.
572
 *
573 99781f3b Assos Assos
 * @see template_preprocess_views_slideshow_controls_text_next().
574
 */
575
function _views_slideshow_preprocess_views_slideshow_controls_text_next(&$vars) {
576
  template_preprocess_views_slideshow_controls_text_next($vars);
577
}
578
579
/**
580 18596a08 Assos Assos
 * Backwards compatibility wrapper.
581
 *
582
 * @param array $vars
583
 *   Theme variables.
584 99781f3b Assos Assos
 *
585 c73bc8d8 Assos Assos
 * @deprecated Removed in 3.5 when the hook_theme() implementation was fixed.
586
 *
587 99781f3b Assos Assos
 * @see template_preprocess_views_slideshow_slide_counter().
588
 */
589
function _views_slideshow_preprocess_views_slideshow_slide_counter(&$vars) {
590
  template_preprocess_views_slideshow_slide_counter($vars);
591 c73bc8d8 Assos Assos
}
592
593
/**
594
 * @} End of "defgroup vss_theme".
595
 */