WT Lightbox2.js

use JoomlaCMSFactory;
$wa = Factory::getApplication()->getDocument()->getWebAssetManager();
$wa->usePreset('lightbox2')->useScript('jquery');
Ligthbox2 needs in jQuery library for work.
The plugin can be used as a dependency when developing your own extensions for Joomla 4. The plugin uses the Joomla 4 update system.
Extension Info :
This plugin is for Joomla developers. The plugin registers Lightbox2.js (https://lokeshdhakar.com/projects/lightbox2/#getting-started) package in Joomla Web Assets Manager. Then you can use it in your extensions. To do this in your code, use:
Extension Data :
- Compatibility :
- Joomla 3.xYes
- Joomla 4.xYes
- Joomla 5.xYes
- Joomla 6.xYes
