This package contains a utility that allows for creating a simple image gallery with captions based on Bootstrap's modals.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
images/demo
js
LICENSE
README.md
class.ImageGallery.php
index.php

README.md

BootstrapImageGallery

This package contains a utility that allows for creating a simple image gallery with captions based on Bootstrap's modals.

Demo

##Tasks: Create a simple Image Gallery PHP script. The script should:

  • Work with Bootstrap framework, preferably using modals.
  • Be simple, fast, and scalable.
  • Display image files from a specific directory.
  • Display captions for each image.

##Deliverables:

  • The class.imageGallery creates an object that represents an Image Gallery.
  • The object has an array of all image names and corresponding captions.
  • The captions are taken from a file in the same directory as the images. The captions are tab-delimited.
  • The object has a method that allows for displaying all images within Bootstrap modals.
  • If the captions file is missing or the number of captions does not correspond to the number of images, a space is used instead of a caption.