mrbig00/yii2-unite-gallery

Unite gallery wrapper for Yii2

Installs: 122

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2017-03-22 18:16 UTC

This package is auto-updated.

Last update: 2024-04-22 01:03:46 UTC


README

Unite gallery wrapper for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist mrbig00/yii2-unite-gallery "*"

or add

"mrbig00/yii2-unite-gallery": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \mrbig00\unitegallery\UniteGalleryWidget::widget(
                    [
                        'theme'   => 'tilesgrid',
                        'options' => [
                        ],
                        'items'   => [
                            [
                                'src'         => 'source.jpg',
                                'data-image'  => 'remote.jpg',
                            ],
                            [
                                'src'         => 'source.jpg',
                                'data-image'  => 'remote.jpg',
                            ],
                        ],
                    ]
                ); 
?>