Skip to content
Snippets Groups Projects
Commit ed2a63af authored by David Breitling's avatar David Breitling
Browse files

[FEATURE] use project_theme_lightbox instead of magnific-popup

- added new sgVimeoLightbox.js which uses LightboxManager
- added deprecation notice to vimeoLightbox.js
- updated README
- updated UPGRADE
parent 0a67aac7
No related branches found
No related tags found
No related merge requests found
......@@ -58,3 +58,7 @@ times in a row, or that the plugin is on an uncached page. The TYPO3 registry is
on the fly.
If the `?disableVimeoCache=1` parameter is added to the URL, this cache will be ignored as well.
### .htaccess
Requires `img-src https://i.vimeocdn.com;`, `script-src https://player.vimeo.com;` and `connect-src https://cdn.plyr.io;`.
'use strict';
import LightboxManager from 'lightboxManager';
export default class SgVimeoLightbox {
/**
* Initializes the LightboxManager with the necessary parameters.
*/
constructor() {
LightboxManager.init({type: 'video', glightbox: {selector: '.sg-vimeo-item'}});
}
}
/**
* JavaScript module for the sg-vimeo plugin
*
* @deprecated since version 1.1.0 and will be removed in 2.0.0
*/
module.exports = function() {
'use strict';
......
# Version 1.X.X to Version 2.0.0
`vimeoLightbox.js` (deprecated since 1.1.0) using magnific-popup and jQuery removed in favor of `sgYoutubeLightbox.js` (vanilla JS).
Extension project_theme_lightbox required starting with version 2.0.0.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment