Linux 软件免费装
Banner图

Video-Link-Gallery

开发者 mbergann
更新时间 2020年2月25日 15:58
捐献地址: 去捐款
PHP版本: 7.1 及以上
WordPress版本: 5.3.2
版权: GPL-2.0+
版权网址: 版权信息

标签

lightbox vimeo youtube photoswipe video-gallery

下载

1.0.2

详情介绍:

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. 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.

安装:

  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!

屏幕截图:

  • gallery-view / thumbnails
  • PhotoSwipe-Lightbox with Youtube-Video
  • PhotoSwipe-Lightbox with Vimeo-Video
  • PhotoSwipe-Lightbox with local hosted video
  • class- and directory-structure - designed to extend easily

升级注意事项:

no special infos yet

常见问题:

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

更新日志:

1.0.2 (2020-02-23) 1.0.1 (2020-02-17) 1.0.0 (2020-02-17)