You are here

function slick_theme in Slick Carousel 8

Same name and namespace in other branches
  1. 8.2 slick.module \slick_theme()
  2. 7.3 slick.module \slick_theme()
  3. 7 slick.module \slick_theme()
  4. 7.2 slick.module \slick_theme()

Implements hook_theme().

File

./slick.module, line 14
Slick carousel integration, the last carousel you'll ever need.

Code

function slick_theme() {
  $themes = [];
  $all = [
    'slick',
    'slide',
    'grid',
    'image',
    'thumbnail',
    'vanilla',
    'wrapper',
  ];
  foreach ($all as $item) {
    $key = $item == 'slick' ? $item : 'slick_' . $item;
    $themes[$key] = [
      'render element' => 'element',
      'file' => 'templates/slick.theme.inc',
    ];
  }
  return $themes;
}