function slick_views_preprocess_slick_wrapper in Slick Views 7.3
Preprocess variables for theme_slick_wrapper(), or slick-wrapper.tpl.php.
File
- ./
slick_views.module, line 18 - Provides Views plugins for Slick carousel.
Code
function slick_views_preprocess_slick_wrapper(&$variables) {
$settings = $variables['settings'];
// Add specific suggestions that can override the default implementation.
// More relevant to Slick Views template suggestions as provided at Views UI
// since we don't register this theme via Views, else otherwise breaking this.
if (!empty($settings['view_name']) && !empty($settings['_views'])) {
$suggestions[] = $settings['view_name'];
$suggestions[] = $settings['view_display'];
$suggestions[] = $settings['view_name'] . '__' . $settings['view_display'];
$suggestions[] = $settings['current_view_mode'];
$suggestions[] = $settings['view_name'] . '__' . $settings['current_view_mode'];
foreach ($suggestions as $suggestion) {
$variables['theme_hook_suggestions'][] = 'slick_wrapper__' . $suggestion;
}
}
}