kotchuprik/yii-fotorama-widget

Fotorama widget for Yii

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Type:yii-extension

pkg:composer/kotchuprik/yii-fotorama-widget

dev-master 2014-04-21 14:40 UTC

This package is not auto-updated.

Last update: 2025-10-11 19:38:49 UTC


README

The YiiFotoramaWidget is the wrapper for the Fotorama.

Usage

To call the widget you should use:

<?php $this->beginWidget('ext.yii-fotorama-widget.YiiFotoramaWidget', array(
    // you must specify the version (available versions http://cdnjs.com/libraries/fotorama)
    'version' => '4.5.1',
)); ?>
    <img src="/img/1.jpg"/>
    <img src="/img/2.jpg"/>
    <img src="/img/3.jpg"/>
<?php $this->endWidget(); ?>

To call the widget with the Fotorama options you should use:

<?php $this->beginWidget('ext.yii-fotorama-widget.YiiFotoramaWidget', array(
    'version' => '4.5.1',
    'options' => array(
        'nav' => 'thumbs',
    ),
    'htmlOptions' => array(
        'class' => 'anotherCssClass',
    ),
)); ?>
    <img src="/img/1.jpg"/>
    <img src="/img/2.jpg"/>
    <img src="/img/3.jpg"/>
<?php $this->endWidget(); ?>