lightgallery — Display lightGallery media viewer.

New in version 3.1.

View-related functions

Summary

lightgallery($files)

Display lightGallery media viewer.

Only filetypes supported by the lightGallery will be included; use lightgallery_other_files to list links to other files not supported in the gallery.

Parameters:
  • $files (array) – Array of files to display

Returns:

string HTML

Usage

Examples

See Also