yii2-widget-fotorama Fotorama widget for Yii2

  1. Usage
  2. Resources

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

Resources

2 0
2 followers
0 downloads
Yii Version: 2.0
License: MIT
Category: User Interface
Developed by: Constantin Chuprik
Created on: Aug 15, 2014
Last updated: 10 years ago

Related Extensions