kowap / yii2-lightgallery
lightgallery
Installs: 710
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/lightgallery: *
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-16 01:31:13 UTC
README
More information about gallery here.
Installation
The preferred way to install this extension is through composer.
Either run
composer require kowap/yii2-lightgallery
or add
"kowap/yii2-lightgallery": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?php echo \kowap\lightgallery\LightGalleryWidget::widget([ 'items' => [ [ 'thumb' => '../thumb/image_1.jpg', 'src' => '../big/image_1.jpg' ], [ 'thumb' => '../thumb/image_2.jpg', 'src' => '../big/image_2.jpg' ] ], // more options http://sachinchoolur.github.io/lightGallery/docs/api.html 'options' => [ 'mode' => 'lg-zoom-in-big', 'download' => false, 'zoom' => false, 'share' => false ] ]); ?>