bupy7/yii2-flexslider 问题修复 & 功能扩展

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

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

bupy7/yii2-flexslider

最新稳定版本:v1.0.1

Composer 安装命令:

composer require bupy7/yii2-flexslider

包简介

This is widget wrapper of Flexslider https://github.com/woothemes/FlexSlider for Yii2.

README 文档

README

This is widget wrapper of Flexslider https://github.com/woothemes/FlexSlider for Yii2.

##Installation The preferred way to install this extension is through composer.

Either run

$ php composer.phar require bupy7/yii2-flexslider "dev-master"

or add

"bupy7/yii2-flexslider": "dev-master"

to the require section of your composer.json file.

##How use

Added following code to your view:

...

use bupy7\flexslider\FlexSlider;

echo FlexSlider::widget([
    'items' => [
        '<img src="http://placehold.it/900x400&text=323">',
        [
            'content' => '<img src="http://placehold.it/900x400&text=001">',
            'options' => [
                'class' => 'my-class',
            ],
        ],
    ],
]); 

...

##Options of widget

Name Description
$items Items of FlexSlider
$pluginOptions FlexSlider plugin options https://github.com/woothemes/FlexSlider/wiki/FlexSlider-Properties
$tagSlides Slides tag. By default 'ul'.
$tagItem Items tag to slides. By default 'li'.
$options FlexSlider widget options.
$slidesOptions Options of slides tag.

##License

yii2-flexslider is released under the BSD 3-Clause License.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 7
  • 开发语言: JavaScript

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-01-16