Home Plugins video link gallery
Video-Link-Gallery logo

Video-Link-Gallery

by mbergann on WordPress.org

Video-Gallery defined by shortcodes for youtube, vimeo and direct links, opening videos in a lightbox (default-lightbox: "PhotoSwipe")

(0)
gallery-view / thumbnails

gallery-view / thumbnails

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.

Active installations0+
Weekly downloads
10+11.11%
Version1.0.2
Last updated2/25/2020
WordPress version4.7
Tested up to5.3.18
PHP version7.1
Tags
lightboxphotoswipevideo galleryvimeoyoutube