function slick_theme in Slick Carousel 7.3
Same name and namespace in other branches
- 8.2 slick.module \slick_theme()
- 8 slick.module \slick_theme()
- 7 slick.module \slick_theme()
- 7.2 slick.module \slick_theme()
Implements hook_theme().
File
- ./
slick.module, line 50 - Slick carousel integration, the last carousel you'll ever need.
Code
function slick_theme($existing, $type, $theme, $path) {
$themes = [];
foreach ([
'slick',
'slide',
'grid',
'thumbnail',
'vanilla',
'wrapper',
] as $item) {
$key = $item == 'slick' ? $item : 'slick_' . $item;
$themes[$key] = [
'render element' => 'element',
'file' => 'slick.theme.inc',
'path' => $path . '/templates',
];
}
return $themes;
}