diplodok/yii2-unitegallery-widget

Простейший виджет на основе галереи Unite Gallery

Installs: 119

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

v1.1.9 2018-08-30 14:21 UTC

This package is auto-updated.

Last update: 2024-06-05 20:37:54 UTC


README

Простейший виджет на основе галереи Unite Gallery Вывод изображений и видео формата mp4.

Latest Stable VersionTotal DownloadsLatest Unstable VersionLicense

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist diplodok/yii2-unitegallery-widget "~1.0.0"

or add

"diplodok/yii2-unitegallery-widget": "~1.0.0"

to the require section of your composer.json file.

Usage

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

<?= \diplodok\Gallerywidget\GalleryWidget::widget([
        'title_gallery' => 'Заголовок', // опция
        'theme' => 'grid', // опция (по умолчанию тема grid)
        'photos' => [
			['thumb' => '/thumb/images/1.jpg', 'src' => '/images/1.jpg', 'alt' => '', 'description' => 'опция'],
			['thumb' => '/thumb/images/2.jpg', 'src' => '/images/2.jpg', 'alt' => '', 'description' => 'опция'],
			['thumb' => '/thumb/images/video.jpg', 'src' => '/video/video.mp4', 'alt' => '', 'description' => 'опция']
		]); ?>

Темы: grid, tiles, tilesgrid, slider, default, compact, carousel