You are here

function theme_slick_wrapper in Slick Carousel 7.3

Same name and namespace in other branches
  1. 7.2 templates/slick.theme.inc \theme_slick_wrapper()

Returns HTML for a slick wrapper with/ without thumbnails.

Variables are processed at Drupal\slick\SlickManager::preRenderWrapper().

Parameters

array $variables: An associative array containing:

  • items: An array of slick instances: main and thumbnail slicks.
  • settings: HTML related settings.

See also

Drupal\slick\SlickManager::build()

1 theme call to theme_slick_wrapper()
SlickManager::build in src/SlickManager.php
Returns a renderable array of both main and thumbnail slick instances.

File

templates/slick.theme.inc, line 85
Hooks and preprocess functions for the Slick module.

Code

function theme_slick_wrapper(array $variables) {
  extract($variables);
  $build = [
    'content' => $items,
  ];
  if (!empty($settings['nav'])) {
    $build['content']['#prefix'] = '<div' . $attributes . '>';
    $build['content']['#suffix'] = '</div>';
  }
  return drupal_render_children($build);
}