Menu FOLIOPAGES

FolioGallery

A self hosted, free and open source photo and file gallery for your website without a need for a database.

File Manager Plugin

Built using core PHP and vanilla JavaScript. Lightweight, responsive, configurable and customizable interface via CSS.
Download the File manager plugin for easier management of your files and albums. Supports all file formats.
Support for Youtube & Vimeo videos as well as local audio/video files which use the HTML5 native player for streaming.
Option to display complete gallery or individual albums in an inline scroller or a paginated block using HTML or shortcode(s).
Option to add descriptions to an image/album from a text file located in each album. Style your gallery from a CSS file.
Automatic thumbnail creation, a feature rich file viewer and a centralized configuration are among other features.

Requirements

Installation

  1. Download and expand the zip file to your computer.
  2. Upload the contents of 'foliogallery-master' to the root directory of your domain.
  3. For each album, create a subfolder in the 'albums' folder and copy your images into it.
  4. Make sure the 'albums' folder and all its subfolders.
  5. Make sure the CSS file is referenced in the head section of your page and the JS file before the ending body tag.
  6. To enable responsive view, you must have the following line of code in head (between ) section of your page's html:
    <meta name="viewport" content="initial-scale=1, width=device-width" />

Configuration

  1. The Available settings can be adjusted in foliogallery-config.php file
  2. Please see this file for available options.

Youtube & Vimeo Videos

  1. To add a video from youtube, simply add an image to your album's folder and name it utube-1234.jpg where 1234 is the id of the video in youtube.
  2. To add a video from vimeo, simply add an image to your album's folder and name it vimeo-1234.jpg where 1234 is the id of the video in vimeo.
  3. To add a mp3 or mp4 file, simply copy it to your desired album. For custom image, add an image to your album's thumbs folder and name it YOUR_VIDEO_FILE_PREFIX.jpg

Embedding Complete Gallery

Paste the following to your page's html, where you want your gallery to appear:
<div class="folioGallery" id="folioGallery"></div>
Or bypass the above and use a shortcode instead (see how to use Shortcodes):
[foliogallery]
Either of the codes above will output the following:

Embedding An Individual Album

  1. Paste the following to your page's HTML:
    <div id="SOME_UNIQUE_ID" class="folioGallery" title="Los Angeles"></div>
  2. The title attribute is the subfolder name where images are located.
  3. The ID attribute can be anything but must be unique.
  4. The class attribute must be folioGallery.
Or bypass the above and use a shortcode instead (see how to use Shortcodes):
[foliogallery=Los Angeles]
Either of the codes above will output the following:

Descriptions

  1. To add descriptions to an album or image, create a folder in your album directory named descriptions then add a file in this folder called descriptions.txt and add your descriptions to it.
  2. ALBUM description must be added on the first line like so: album;description of album;.
  3. Image description must be added like so: imagefilename.jpg;description of image; where imagefilename.jpg is the name of the file in your album.
  4. Each image description must be entered after imagefilename.jpg; (note the semicolon).
  5. Each description must be on a new line and must end with a semicolon

Shortcode

It is possible to embed gallery or albums using shortcodes:
  1. Include the PHP function at the beginning of your page.
  2. Replace the FolioGallery "div" elements with a shortcode.
  3. Place page content in a PHP variable.
  4. Output page content using the PHP function.
See the example below or refer to the source code of foliogallery-demo.php file in the package:


// include the PHP function before page content
include 'foliogallery/foliogallery-functions.php';

// place page content in a php variable
$content = '
// display the gallery
[foliogallery]

// display "Videos" album
[foliogallery=Videos]	

// display "Scenery" album
[foliogallery=Scenery]

// display "Los Angeles" album
[foliogallery=Los Angeles]';
		
// print page content using the PHP function
echo foliogallery_shortcode($content);

FAQ's