Skip to content

WebTolk/WT-JSwiper-Joomla-web-asset-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WT JSwiper Joomla web asset plugin

This plugin is for Joomla developers. The plugin registers Swiper.js package in Joomla Web Assets Manager.

Plugin for Joomla developers. It allows you to use Swiper.js anywhere in Joomla 4+: in modules, components, plugins.

To do this in your code, use:

use Joomla\CMS\Factory;

$wa = Factory::getApplication()->getDocument()->getWebAssetManager();
$wa->useScript('swiper-bundle')->useStyle('swiper-bundle'); // Use local file
$wa->usePreset('swiper-bundle-remote'); // Connect from CDN

At the moment, only the swiper-bundle is connected with this plugin.

The plugin can be used as a dependency when developing your own extensions for Joomla 4+. The plugin uses the Joomla 4+ update system.

About

This plugin is for Joomla developers. The plugin registers Swiper.js package in Joomla Web Assets Manager. Then you can use it in your extensions via $wa->useScript('swiper-bundle')->useStyle('swiper-bundle').

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages