前言介紹
- 這款 WordPress 外掛「Video-Link-Gallery」是 2020-02-24 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2020-02-25,距離現在已有 1895 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.7 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.1 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
mbergann |
外掛標籤
vimeo | youtube | lightbox | photoswipe | video gallery |
內容簡介
這個外掛程式可以透過簡單地使用簡碼定義影片庫,自動建立 YouTube、Vimeo 影片或直接的影片檔案連結庫。
影片將會在燈箱中開啟。
預設使用 Dmitry Semenov 的 PhotoSwipe 燈箱。
(目前僅有此燈箱可供選擇)
這個外掛程式設計簡潔易懂,易於擴展。
* 「src/VideoProvider」是一個目錄,包含每個影片平台(如 YouTube 或 Vimeo)的 php 類別,並實現了一個類別介面。
* 「src/Lightbox」是一個目錄,包含每個燈箱的 php 類別,實現了一個類別介面。
* 「src/Shortcodes」是一個目錄,包含「[video-gallery]-簡碼」的定義,這是程式的核心,但是您不需要編輯此文件。
參數和特殊的影片平台
所有參數,包括一般參數和特定於影片平台的參數,都直接在 [[video-gallery]] 簡碼中設置。
一般
參數
說明
預設
燈箱
應該使用的燈箱類別的名稱
PhotoSwipe
YouTube
參數
說明
預設
yt_nocookie
使用 youtube-nocookie.com 而不是 youtube.com,以確保 GDPR(DSGVO)安全的影片連結
true
Vimeo
在 Vimeo 中,預覽圖片 URL 不使用影片 ID,因此需要透過 API 請求擷取預覽圖片 URL。
在這個 API 請求中,我們也可以獲得影片的原始標題。
因此,我們需要 php CURL 擴展程式。
縮圖將從 API 回應中獲取。
如果沒有手動設定的影片標題,影片平台類別也會自動使用 API 回應中的原始影片標題。
擴展程式
您可以輕鬆地擴展這個外掛程式,撰寫自己的影片平台或其他燈箱的類別,只需實現介面即可。
原文外掛簡介
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.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Video-Link-Gallery」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Lightbox with PhotoSwipe 》這個外掛在 WordPress 中整合了擴展版的 PhotoSwipe 4 或官方發行的 PhotoSwipe 5。發布或頁面中所有連結的圖像將使用 PhotoSwipe 顯示,而不管它們是圖片庫...。
Photoswipe Masonry Gallery 》PhotoSwipe Masonry 是一款 WordPress 圖片庫外掛,使用了 Dmitry Semenov 的 PhotoSwipe 技術。photoswipe, PhotoSwipe Masonry 利用 WordPress 內建的圖片...。
Photoswipe for NextGEN Gallery 》當使用行動裝置瀏覽器時,預設的NextGEN圖庫導覽效果(Shutter、Thickbox等)效果不佳?, 現在您可以安裝這個外掛,使用最好的行動裝置圖片瀏覽器Photoswipe...。
Boxers and Swipers 》整合了 Colorbox、Slimbox、Nivo Lightbox 和 Photoswipe,適用於 WordPress, , 可以根據使用者代理切換效果, 將效果添加到插入 WordPress 文章、自訂文章和...。
Simple Photoswipe 》Simple Photoswipe 是一個擴展 WordPress 內建的圖庫功能的插件,並使用 Dmitry Semenov 的Photoswipe 圖庫程式庫。, 您可以在「設定」>「Simple Photoswipe...。
PhotoSwipe Lightbox for FooGallery Extension 》該外掛實現了 Dmitry Semenov 的優秀的「PhotoSwipe」燈箱效果於 FooGallery 中的應用。, 這不是一個獨立的外掛程式,而是 FooGallery 的擴充套件。。
LRW PhotoSwipe Gallery 》LRW PhotoSwipe Gallery 是一款圖片相簿外掛,使用Dmitry Semenov所開發的 PhotoSwipe JS 外掛,並將其應用於 WordPress 內建的相簿功能。, 這款外掛擴展了 W...。