fritzmg / contao-lightcase
Contao extension to integrate the Lightcase overlay.
Fund package maintenance!
fritzmg
Installs: 15 093
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 2
Open Issues: 1
Language:JavaScript
Type:contao-bundle
Requires
- php: >=7.2
- contao/core-bundle: ^4.9
- symfony/config: ^4.4 || ^5.1
- symfony/dependency-injection: ^4.4 || ^5.1
- symfony/http-kernel: ^4.4 || ^5.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
README
Contao Lightcase
Contao extension to integrate the Lightcase overlay.
Usage
Simply activate the j_lightcase
template in your page layout under jQuery. Do not activate j_colorbox
or moo_mediabox
as well!
Lightcase will work with all links that use the data-lightbox="…"
parameter. Of course you can still initialize via your own JavaScript. Customizing the options works the same way as with the j_colorbox
template for example.
Adjust Labels
In order to adjust the translation of the labels within your application (or to create translations for additional languages), create files in the following format:
translations/im_contao_lightcase.<LANGUAGE>.yaml
For example if you want to change the English and German label of the close button:
# translations/im_contao_lightcase.en.yaml close: Close overlay
# translations/im_contao_lightcase.de.yaml close: Overlay schließen
See the API documentation for the available labels.