kotchuprik/yii2-fotorama-widget
Composer 安装命令:
composer require kotchuprik/yii2-fotorama-widget
包简介
Fotorama widget for Yii2
关键字:
README 文档
README
This widget is the wrapper for the Fotorama.
Usage
To call the widget you should use:
<?php $widget = \kotchuprik\fotorama\Widget::begin([ // you must specify the version (available versions http://cdnjs.com/libraries/fotorama) 'version' => '4.5.2', ]); ?> <img src="/img/1.jpg"/> <img src="/img/2.jpg"/> <img src="/img/3.jpg"/> <?php $widget->end(); ?>
To call the widget with the Fotorama options you should use:
<?php $widget = \kotchuprik\fotorama\Widget::begin([ 'version' => '4.5.2', 'options' => [ 'nav' => 'thumbs', ], 'htmlOptions' => [ 'class' => 'anotherCssClass', ], ]); ?> <img src="/img/1.jpg"/> <img src="/img/2.jpg"/> <img src="/img/3.jpg"/> <?php $widget->end(); ?>
统计信息
- 总下载量: 274
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-07-31