Title: Video-Link-Gallery
Author: mbergann
Published: <strong>February 25, 2020</strong>
Last modified: February 25, 2020

---

Search plugins

![](https://ps.w.org/video-link-gallery/assets/banner-772x250.png?rev=2249730)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/video-link-gallery/assets/icon-256x256.png?rev=2249730)

# Video-Link-Gallery

 By [mbergann](https://profiles.wordpress.org/mbergann/)

[Download](https://downloads.wordpress.org/plugin/video-link-gallery.1.0.2.zip)

 * [Details](https://scn.wordpress.org/plugins/video-link-gallery/#description)
 * [Reviews](https://scn.wordpress.org/plugins/video-link-gallery/#reviews)
 *  [Installation](https://scn.wordpress.org/plugins/video-link-gallery/#installation)
 * [Development](https://scn.wordpress.org/plugins/video-link-gallery/#developers)

 [Support](https://wordpress.org/support/plugin/video-link-gallery/)

## Description

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](https://photoswipe.com/)“-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⌉[

gallery-view / thumbnails

[⌊PhotoSwipe-Lightbox with Youtube-Video⌉⌊PhotoSwipe-Lightbox with Youtube-Video⌉[

PhotoSwipe-Lightbox with Youtube-Video

[⌊PhotoSwipe-Lightbox with Vimeo-Video⌉⌊PhotoSwipe-Lightbox with Vimeo-Video⌉[

PhotoSwipe-Lightbox with Vimeo-Video

[⌊PhotoSwipe-Lightbox with local hosted 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⌉[

class- and directory-structure – designed to extend easily

## Installation

 1. Upload this plugin files to the `/wp-content/plugins/video-link-gallery` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. now you can use the [video-gallery]-Shortcode as descripted!

## FAQ

  My Video is not listed in the thumb-gallery – what am I doing wrong?

Let me take my crystal ball:
 – Maybe you have a typo in your video-definition? –
Or you might have a closing square bracket in your video-title that is confusing
my regular-expression?!

  How can I extend the plugin to support more video-plattforms?

You just have to copy-and-edit a given (or create a new) VideoProvider-Class. The
VideoProvider-Class MUST implement the VideoProviderInterface.
 To get a faster 
and more clean result you SHOULD also use the VideoProviderAbstract class to extend
from that – so you don’t have to write some methods that are identical in most cases
a second time.

  How can I extend the plugin to support more lightboxes?

You just have to copy-and-edit a given (or create a new) Lightbox-Class. The Lightbox-
Class MUST implement the LightboxInterface.
 The Lightbox-Class creates the html-
code for thumbnails and also the lightbox itself.

In future versions it’s also planned to decouple this a little bit… but at the moment
it was the simplest way to implement the lightbox.

  How can I change the lightbox

There is a parameter “lightbox” – for more details: see Parameters-section in description

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Video-Link-Gallery” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ mbergann ](https://profiles.wordpress.org/mbergann/)

[Translate “Video-Link-Gallery” into your language.](https://translate.wordpress.org/projects/wp-plugins/video-link-gallery)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/video-link-gallery/),
check out the [SVN repository](https://plugins.svn.wordpress.org/video-link-gallery/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/video-link-gallery/)
by [RSS](https://plugins.trac.wordpress.org/log/video-link-gallery/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.2 (2020-02-23)

 * de-couple VideoGallery-Shortcode from VideoProviders
 * make plugin ready for wordpress-plugin-directory

#### 1.0.1 (2020-02-17)

 * small bugfix in Youtube-VideoProvider: choosen PreviewImage-URL was not always
   available.

#### 1.0.0 (2020-02-17)

 * initial released version after a few days of development

## Meta

 *  Version **1.0.2**
 *  Last updated **6 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 4.7 or higher **
 *  Tested up to **5.3.21**
 *  PHP version ** 7.1 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/video-link-gallery/)
 * Tags
 * [lightbox](https://scn.wordpress.org/plugins/tags/lightbox/)[photoswipe](https://scn.wordpress.org/plugins/tags/photoswipe/)
   [video gallery](https://scn.wordpress.org/plugins/tags/video-gallery/)[vimeo](https://scn.wordpress.org/plugins/tags/vimeo/)
   [youtube](https://scn.wordpress.org/plugins/tags/youtube/)
 *  [Advanced View](https://scn.wordpress.org/plugins/video-link-gallery/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/video-link-gallery/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/video-link-gallery/reviews/)

## Contributors

 *   [ mbergann ](https://profiles.wordpress.org/mbergann/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/video-link-gallery/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/MartinBergann/)