You are here

function lightgallery_libraries_info in Lightgallery 7

Implements hook_libraries_info().

File

./lightgallery.module, line 25

Code

function lightgallery_libraries_info() {
  $libraries['lightgallery'] = array(
    'name' => 'Lightgallery',
    'vendor url' => 'http://sachinchoolur.github.io/lightGallery/',
    'download url' => 'https://github.com/sachinchoolur/lightGallery',
    'path' => 'dist',
    'version arguments' => array(
      'file' => 'dist/js/lightgallery.min.js',
      // Version 1.2.4
      'pattern' => '/- v(1.2.*)/',
      'lines' => 5,
    ),
    'files' => array(
      'js' => array(
        'js/lightgallery.min.js',
        'js/lg-autoplay.min.js',
        'js/lg-fullscreen.min.js',
        'js/lg-thumbnail.min.js',
        'js/lg-video.min.js',
        'js/lg-zoom.min.js',
        'js/lg-hash.min.js',
      ),
      'css' => array(
        'css/lightgallery.min.css',
        'css/lg-transitions.min.css',
      ),
    ),
  );
  return $libraries;
}