iamwebdesigner/yii2-blueimp-gallery 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

iamwebdesigner/yii2-blueimp-gallery

最新稳定版本:0.1.0

Composer 安装命令:

composer require iamwebdesigner/yii2-blueimp-gallery

包简介

BlueImp Gallery Widget

README 文档

README

Yii 2 widget for working with js blueimp gallery plugin.

About

The widget is split into two parts:

  • Widget renderer
  • Items list generator

It is possible to use list generator without rendering component, but make sure you register necessary styles and scripts by calling registerAssets method of items component and pass View class into it.

Installation

Composer command to install this package

composer require iamwebdesigner/yii2-blueimp-gallery

Usage

Using items list generator

<?php
use iamwebdesigner\blueimp\helpers\YouTube;
$items = new YouTube([
	'items' => [ // enter youtube video ids as elements of the array
		'ZXsQAXx_ao0',
		'5-sfG8BV8wU',
		'DdGetnDJKCg',
	]
])->items;

Using whole widget

<?php
use iamwebdesigner\blueimp\BlueImpGallery;
use iamwebdesigner\blueimp\helpers\Image;
echo BlueImpGallery::widget([
    'itemsComponent' => new Image([
        'items' => [ // array of images to use, at key 0 comes image url
            ['/images/54668', 'title' => 'JavaScript'],
            ['/images/r46457', 'title' => 'Ruby'],
            ['/images/t4y5b', 'title' => 'PHP'],
            ['/images/f5h5eg', 'title' => 'C#'],
        ]
    ]),
    'clientOptions' => [ // js plugin options
        'closeOnEscape' => false
    ],
    'showIndicators' => false,
]);
?>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache
  • 更新时间: 2015-10-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固