kotchuprik/yii2-fotorama-widget Fotorama widget for Yii2

fotorama

yii2-fotorama-widget

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(); ?>

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

  • 1.015 August 2014

Comments



1.0 is the latest of one release



MIT license
Stats
6 github stars & 1 github forks
0 downloads in the last day
0 downloads in the last 30 days
272 total downloads