You are here

function theme_slick_grid in Slick Carousel 7.3

Returns HTML for a slick grid.

Parameters

array $variables: An associative array containing:

  • attributes: An array of attributes to apply to the element.
  • items: A renderable array of the main image/background.
  • settings: An array containing cherry-picked settings.
1 theme call to theme_slick_grid()
SlickManager::buildGridItem in src/SlickManager.php
Returns items as a grid item display.

File

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

Code

function theme_slick_grid(array $variables) {
  extract($variables);
  $build = '';
  foreach ($items as $delta => $item) {
    $slide = '<div class="grid__content">' . drupal_render($item) . '</div>';
    $build .= '<li' . drupal_attributes($item_attributes_array[$delta]) . '>' . $slide . '</li>';
  }
  return '<ul' . drupal_attributes($attributes_array) . '>' . $build . '</ul>';
}