BACK TO DIRECTORY

Video-Link-Gallery

by mbergann

0.0
(0 ratings)

This plugin creates a video-gallery for youtube- or vimeo-videos or direct video-file-links by simply defining the gallery with shortcodes.
The Videos will be opened in a lightbox.

By default the “PhotoSwipe“-Lightbox of Dmitry Semenov is used.
(at the moment it is the only one)

This plugin is really simple and clean designed to be easily extendable.
* there is a “src/VideoProvider”-directory where every Video-Platform (like youtube or vimeo) is defined in an own php-class implementing a class-interface.
* there is a “src/Lightbox”-directory where every lightbox is defined in an own php-class, implementing a class-interface
* there is a “src/Shortcodes”-directory where the “[video-gallery]”-Shortcode is defined – that is where the magic happenes – but there is no need to edit this file.

Parameters and video-provider-specific specials

All parameters – general parameters and also video-provider-specific parameters are set directly in the [[video-gallery]]-Shortcode.

general

parameter
description
default

lightbox
name of the lightbox-class that should be used
PhotoSwipe

Youtube

parameter
description
default

yt_nocookie
use youtube-nocookie.com instead of youtube.com in video-links to be GDPR(DSGVO)-save
true

Vimeo

In vimeo the preview-image-URL doesn’t use the video-ID – so you need to make an API-request to get the image-URL.
In this API-call we also get the original title of the video.
For this reason we need the php CURL extension.
The thumbnail will be taken from the API-response.
When no manual video-title is defined, the video-provider-class uses also the original video-title from API-response automaticly.

Extending the Plugin

You can easily extend the Plugin by writing your own classes for Video-Platforms or other Lightboxes – you just have to implement the Interfaces.

Screenshots

gallery-view / thumbnails

gallery-view / thumbnails

PhotoSwipe-Lightbox with Youtube-Video

PhotoSwipe-Lightbox with Youtube-Video

PhotoSwipe-Lightbox with Vimeo-Video

PhotoSwipe-Lightbox with Vimeo-Video

PhotoSwipe-Lightbox with local hosted video

PhotoSwipe-Lightbox with local hosted video

class- and directory-structure - designed to extend easily

class- and directory-structure - designed to extend easily

Plugin Details

Active Installs
0
Total Downloads
1,177
Version
1.0.2
Requires WP
4.7
Requires PHP
7.1
Tested Up To
5.3.23
Added
2020-02-25
Last Updated
2020-02-25 7:58am GMT

Ratings

5
0
4
0
3
0
2
0
1
0