定制 wcj343169893/yii2-lightgallery 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wcj343169893/yii2-lightgallery

Composer 安装命令:

composer require wcj343169893/yii2-lightgallery

包简介

widget lightgallery

README 文档

README

php version pkg version license quality build

Description

This Widget is based on LightGallery for use in Yii2 Framework. See full documentattion

Installation

The preferred way to install this extension is through composer.

Either run

composer require wcj343169893/yii2-lightgallery

or add

"wcj343169893/yii2-lightgallery": "*"

to the require section of your composer.json file.

Usage

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

<?php
    echo \wcj343169893\lightgallery\LightGallery::widget([
        'items' => [
            [
                'thumb' => '../thumb/image_1.jpg',
                'src' => '../big/image_1.jpg',
                'caption' => '<h4> caption </h4><p> ... </p>',
                'imgOptions' => [
                    'width' => '100%',
                    'alt' => 'description'
                ]
            ],
            [
                'thumb' => '../thumb/image_2.jpg',
                'src' => '../big/image_2.jpg'
            ]
        ],
        // more plugins: 
        'plugins' => ['lgZoom', 'lgThumbnail']
    ]);
?>

To add plugins just add their name to the plugins option plugins =>['lgZoom], see the full list. For other LightGallery options use pluginOptions, see documentation.

dynamika soluções web This project is under LGPL V3.0 license.

统计信息

  • 总下载量: 4.7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-only
  • 更新时间: 2024-05-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固