kowap / yii2-lightgallery
lightgallery
1.5.0
2017-07-04 06:40 UTC
Requires
- bower-asset/lightgallery: *
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-09-21 00:49:37 UTC
README
有关画廊的更多信息请点击这里。
安装
安装此扩展的首选方式是通过composer。
运行以下命令:
composer require kowap/yii2-lightgallery
或
"kowap/yii2-lightgallery": "*"
将以下内容添加到您的 composer.json
文件的 require 部分。
使用方法
扩展安装完成后,只需在代码中使用即可。
<?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 ] ]); ?>