kowap/yii2-lightgallery lightgallery

extensionplugingalleryvideophotolightgallery

jQuery lightgallery for Yii2

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
        ]
    ]);
?>

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.5 is the latest of 7 releases



BSD-3-Clause license
Stats
5 github stars & 1 github forks
0 downloads in the last day
6 downloads in the last 30 days
680 total downloads