PHP code example of diplodok / yii2-unitegallery-widget

1. Go to this page and download the library: Download diplodok/yii2-unitegallery-widget library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

diplodok / yii2-unitegallery-widget example snippets


<?= \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' => 'опция']
		]); 

php composer.phar