farawayslv/yii2-taggallery

以图像源作为标签 和文本的图像画廊

dev-master 2020-01-29 09:00 UTC

This package is auto-updated.

Last update: 2024-09-29 05:29:38 UTC


README

使用标签和文本作为图像源的图像画廊。使用 bootstrap 4、lightbox 和 jquery。

安装

安装此扩展的首选方式是通过 composer

运行以下命令之一:

php composer.phar require --prefer-dist farawayslv/yii2-taggallery "*"

"farawayslv/yii2-taggallery": "*"

将其添加到您的 composer.json 文件的 require 部分。

使用方法

扩展安装后,只需在代码中简单使用即可

<?= \farawayslv\taggallery\GalleryTag::widget([
    'title' => (string) Gallery title. Optional,
    'description' => (string) Gallery description. Optional,
    'content' => (string) Required parameter. Text content with <gallery>/path</gallery> tags
    'inRow' => (Integer) How many images in each row. optional,
    'isDeep' => (Bool) If "true" we get images not only source root directory, but and in all child           directories,
    'pageSize' => (Integer) How many images will be show on one page. Optional,
    'imageClass' => (String) Custom class for images. Optional,
    'imageWrapClass' => (String) Custom class for images containers. Optional,
    'pagerOptions' => (Array) Standart LinkPager options (see Yii2 docs). Optional
]); ?>```